Skip to content

mohamedhayibor/we-love-bike-bikes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

we-love-bike-bikes

This module is a command line tool that gets you the real-time info on stations. Particularly the number of bikes available for rent and the number of available docks.

Installation

  > npm install -g we-love-bike-bikes

Don't forget the "-g" to install it globally. (then you can run the bikes command anywhere)

Usage

On your terminal:

  > bikes `station-id`

Basically the bikes command and whatever station you want to check.

At first, you will obviously not know the id of a particular station. Run the command this command below to the list of all stations ids and names:

  > bikes

You can get that with the command bikes. It is a deliberate api design decision. The reality is that you most frequently use only 3 to 4 stations anyways. By your fourth use, you will know the id by heart (one or two digits). Then you can pretty much make the query in less a second. (Will save you a lot of time).

Api

No api to mess with. Enter the command bikes and the station-id and get an instant update (number of bikes and docks available). Enter bikes only to get the updated list of stations ids and name.

Thanks to Ekerda for his awesome project.

few lines of code.

License

MIT © Mohamed Hayibor

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published