crackwatch
![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)
Node.js unofficial client to Crackwatch.com API
Crackwatch.com keeps you updated with the crack status of the games you follow.
Install
npm install --save crackwatch
Usage
const {getCracks, getGames} = require('crackwatch')
getCracks()
.then(console.log)
.catch(console.error)
getCracks({page: 2})
.then(console.log)
.catch(console.error)
getGames()
.then(console.log)
.catch(console.error)
getGames({page: 1, is_aaa: true})
.then(console.log)
.catch(console.error)
Methods
More info on the available API on crackwatch API page.
getCracks()
: Get latest cracks list. It's equivalent a getCracks({page: 0})
.getGames()
: Get latest games list. It's equivalent a getGames({page: 0})
.
Requests should be limited to a rate of 1 per second.
Options
The default values are shown after each option key.
{
page: 0,
sort_by: "release_date",
is_sort_inverted: (none),
is_aaa: (none),
is_released: (none),
is_cracked: (none),
}
Author
Rocco Musolino (@roccomuso)
License
MIT