Skip to content

alex-trask/print-gtfs-rt-cli

 
 

Repository files navigation

print-gtfs-rt-cli

Read a GTFS Realtime feed from stdin, print human-readable or as JSON.

npm version build status ISC-licensed chat with me on Gitter support me on Patreon

Installing

npm install -g print-gtfs-rt-cli

Or use npx. ✨

Usage

Usage:
    cat gtfs-rt-feed.pbf | print-gtfs-rt
Options:
	--length-prefixed  -l  Read input as length-prefixed.
	                       See https://www.npmjs.com/package/length-prefixed-stream
	--json  -j             Output JSON instead of a pretty represenation.
Examples:
    curl 'https://example.org/gtfs-rt.pbf' | print-gtfs-rt

Contributing

If you have a question or have difficulties using print-gtfs-rt-cli, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Example feed

The example feed is taken from the Swiss open GTFS-RT feed, licensed under their open data license.

About

Read a GTFS Realtime feed from stdin, print human-readable or as JSON.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%