Skip to content

A node.js CLI for reading barcodes on public transport tickets.

License

Notifications You must be signed in to change notification settings

justusjonas74/onlineticket.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onlineticket.js

A node.js CLI for reading barcodes on public transport tickets (e.g. Deutsche Bahn). It's a command line wrapper for my uic-918-3 package. Check out this repository for more informations about the parsing logic etc.

This tool is a JavaScript port of Hagen Fritzsch's Python script onlineticket.

Example

Example

Install

# Install global is recommended
npm install -g onlineticket

Usage

# filename.png is a monchrome 1-bit barcode image.
onlineticket --image path/to/file/filename.png
# Alias
onlineticket -i path/to/file/filename.png

# [Flags:]
# -s --signature --> Try to verify the barcode siganture
onlineticket -is path/to/file/filename.png

Contributing

Feel free to contribute.

About

A node.js CLI for reading barcodes on public transport tickets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published