carbon14

0.0.4 • Public • Published

Carbon14 Build Status npm version

Checks how long it takes to beat a given game

Carbon14 is a utility to check how long one needs to beat a game. It uses HowLongToBeat data.

Carbon14

Install

$ npm install --save carbon14

Usage

var carbon14 = require('carbon14');
 
carbon14('apotheon')
  .then(console.log);

CLI

If installed globally, you can use Carbon14 as a command line utility as follows:

$ carbon14 apotheon

Format

Carbon14 returns a promise that, when fulfilled, returns a json containing the available data in a very minimalistic flavour. Note that it omits the unavailable playing times. An example of the object returned is shown below.

[
  {
    "name": "God of War",
    "main": 9,
    "extra": 9.25,
    "completionist": 9.5,
    "combined": 9.75
  },
  {
    "name": "God of War: Origins Collection",
    "solo": 11.5
  }
]

License

MIT

Package Sidebar

Install

npm i carbon14

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • brenolf