Get latest release information from github repository using github api
$ npm install github-latest-release
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"
}
$ npm install -g github-latest-release
$ github-latest-release atom electron
Required
Type: string
repository owner.
Required
Type: string
repository name.
Optional
Type: function (err, res)
If no callback given, will return promise.
MIT © C.T. Lin