Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

atb-cli

bendiksolheim7MIT0.3.0

A small CLI to ATBs bus routes in Trondheim

atb, cli, trondheim

readme

atb-cli

Small CLI to ATBs bus API in Trondheim. Use it to retrieve real time information about bus stops.

Installation

Use from your command line: npm install -g atb-cli

Use from your own project: npm install atb-cli

Usage (command line)

atb [stop-id] lists real-time data for this specific stop

atb [stop-name] lists matching stops with corresponding stop-id

Usage (code)

Nothing really stops you from using this in your own application. If this is interesting, look in the code for usage. api.js contains the API it self, while index.js contains simple usage. Make an issue if you have questions.

Bugs, improvements, contribution, etc..

Open an issue. I accept pull requests fixing small issues, but please discuss it first if it changes parts of the functionality.

Credits

API originally by ATB. API wrapper by link Tri Nguyen