Skip to content

Get latest release information from github repository using github api

License

Notifications You must be signed in to change notification settings

chentsulin/github-latest-release

Repository files navigation

github-latest-release

NPM version Build Status Test coverage Dependency Status

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

About

Get latest release information from github repository using github api

Resources

License

Stars

Watchers

Forks

Packages

No packages published