terminal-howlongtobeat
v1.0.3
Published
terminal-howlongtobeat is a terminal based application providing game length information from howlongtobeat.com for your favorite video-games.
Downloads
5
Maintainers
Readme
terminal-howlongtobeat
terminal-howlongtobeat is a terminal based application providing game length information from howlongtobeat.com for your favorite video-games!
How to use
CLI usage without npm package installation
$ curl https://terminal-howlongtobeat.herokuapp.com/<Name+of+Game>
Example
$ curl https://terminal-howlongtobeat.herokuapp.com/Baldurs+Gate
CLI usage with npm package
You can also install terminal-howlongtobeat package from npm and run the built-in commands from command line interface (cli)
- install cli globally
npm i terminal-howlongtobeat -g
- run the commands to get information
Available commands
terminal-howlongtobeat --help // to get help
terminal-howlongtobeat --version // to see the version
terminal-howlongtobeat -g [name of game] // to fetch data for provided name
Example
terminal-howlongtobeat -g Dishonored
Tech
- [node.js] - evented I/O for the backend
- [Express] - fast node.js network app framework
- [howlongtobeat] - npm package providing game data [@ckatzorke]
- [cli-table3] - allows to compose cli-optimized tables
Installation
Requires Node.js v8+ to run. Install the dependencies and devDependencies and start the server.
$ git clone "https://github.com/chris-hmmr/terminal-howlongtobeat"
$ npm install
$ npm run serve
Development
Want to contribute? Great! Feel free to open a PR
Support
If you like what you see, feel free to buy me a ☕️.