🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more →
Socket
Book a DemoInstallSign in
Socket

tuben

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tuben

A CLI travel planner for SL (Storstockholms Lokaltrafik)

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

tuben

Coverage Status Known Vulnerabilities npm version

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 watch
  • npm run build: Build to /dist folder
  • npm test: Run tests
  • npm run coverage: Run test coverage using nyc, outputs report to /test/coverage
  • npm 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

Keywords

reseplanerare

FAQs

Package last updated on 07 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts