tuben
v1.0.4
Published
A CLI travel planner for SL (Storstockholms Lokaltrafik)
Downloads
16
Maintainers
Readme
tuben
A CLI travel planner for SL (Storstockholms Lokaltrafik)
Under construction
Installation
npm install tuben -g
yarn global add tuben
# Currently you must supply your own API-keys to be able to perform searches.
STATION_API_KEY=<Trafiklab_Platsuppslag_key>
JOURNEY_API_KEY=<Trafiklab_Reseplanerare3_key>
Example Usage
tuben -f Slussen -t Odenplan
tuben --from "Nacka Station" --to "Uppsala"
Available commands
-V, --version output the version number
-f, --from [from] from destination
-t, --to [to] to destination
-h, --help output usage information
Contribute
Cool that you want to contribute. Follow theese guidelines when submitting bugfixes and additions:
- Fork the repo on Github
- Clone your fork locally
- Make your changes & write tests for them
- Make sure nothing is broken by running
npm test
- Make sure coverage is still good by running
npm run coverage
- Make sure you follow the code style by running
npm run lint
- Commit & push to your fork
- Submit a Pull request
Todo-list
- [ ] Create proxy server that acts as a middle man for all requests and just adds API-keys
- [ ] Use different colors for different subway lines (i.e. green for the green line)
- [ ] Use different colors for the different kindes of buses (blue buses/red buses)
- [ ] Make the cli-table more responsive by using cli-width & do some calculations before printing
- [ ] If departure time spans over multiple dates, divide search result into groups like (Today, Tomorrow)
- [ ] Take time and date as arguments when searching (i.e. make it possible to search for journeys at a specific time/date)
- [ ] Make it pretty!
Available commands
npm run dev
: Start babel file watchnpm run build
: Build to /dist foldernpm test
: Run testsnpm run coverage
: Run test coverage using nyc, outputs report to /test/coveragenpm run lint
: Run eslint
Issues
Feel free to open an issue @ Github if you are experiencing any problems / want to suggest a new feature.
License
MIT