Awesome
github-latest-release
Get latest release information from github repository using github api
Install
$ npm install github-latest-release
Usage
var latest = require('github-latest-release')
latest('atom', 'electron')
.then(console.log.bind(console))
//=>
{
"id": 1,
"tag_name": "v1.0.0",
"target_commitish": "master",
"name": "v1.0.0",
"draft": false,
"prerelease": false,
"created_at": "2013-02-27T19:35:32Z",
"published_at": "2013-02-27T19:35:32Z"
}
CLI
$ npm install -g github-latest-release
$ github-latest-release atom electron
API
githubLatestRelease(owner, repo [, cb])
owner
Required
Type: string
repository owner.
repo
Required
Type: string
repository name.
cb
Optional
Type: function (err, res)
If no callback given, will return promise.
License
MIT © C.T. Lin