github-module-version
For a Github repo, get the most recent commit that changed the properties.json
file.
Returns the commit information, and the entire properties.json
object.
using
Install it the normal way:
npm install github-module-version
You can use it with a callback:
var moduleVersion = var module = user: 'github-user' repo: 'repo-name'
Or you can use it as a promise:
var moduleVersion = var module = user: 'github-user' repo: 'repo-name'
The data object is an object with the commit and the properties.json
object, e.g.:
var data = commit: sha: // hash of commit properties: version: // version at the commit