terminal-howlongtobeat

1.0.3 • Public • Published

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

image

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)

  1. install cli globally
npm i terminal-howlongtobeat -g
  1. 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

image

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 ☕️.

Buy Me A Coffee

Enjoy! :)

Package Sidebar

Install

npm i terminal-howlongtobeat

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

42.3 kB

Total Files

11

Last publish

Collaborators

  • chrishmmr