Skip to content

brenolf/carbon14

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

As of Jan. 19, 2017, this package is no longer working due to change on How Long To Beat HTML source code.

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

About

A utility to check how long it takes to beat a given game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published