Skip to content

themaxsandelin/tramz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tramz

A CLI client for public transit in Sweden to make it super easy for you to search trips and/or stops, and also save them locally to make finding the next bus/tram much easier.

Installation

$ npm install -g tramz

Usage

$tramz [command]

trams [trip]

Will search a trip you have saved locally.

$ tramz homeToWork

tramz [origin] [destination] [via (optional)]

Will search for a trip from origin to destination, with an optional via stop.

$ tramz 'Askims Stationsväg' 'Solrosgatan' 'Nordstan'

This also works for locally saved stops.

$ tramz home work starbucks

Stops

stops

Will list the stops you have saved locally.

$ tramz stops

stops add [string]

Will search for a stop with a name similar to the string you provided and save it for you locally.

$ tramz stops add 'Masthuggstorget'

stops remove [name]

Will remove a stop that you have saved locally based on the name you assigned to it.

$ tramz stops remove home

Trips

trips

Will list the trips you have saved locally.

$ tramz trips

trips add [origin] [destination] [via (optional)]

Will search for a trip from origin to destination, with an optional via stop and then save it locally for you.

$ tramz trips add 'Askims Stationsväg' 'Solrosgatan' 'Nordstan'

trips remove [name]

Will remove a trip that you have saved locally based on the name you assigned to it.

$ tramz trips remove homeToWork

License

MIT © Max Sandelin

About

A command line interface for public transit in Sweden.

Resources

License

Stars

Watchers

Forks

Packages

No packages published