Skip to content

terminal-howlongtobeat is a terminal based application to get the game length data from https://howlongtobeat.com

License

Notifications You must be signed in to change notification settings

chris-hmmr/terminal-howlongtobeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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! :)