0.0.12 • Published 8 years ago

github-module-version v0.0.12

Weekly downloads
26
License
VOL
Repository
github
Last release
8 years ago

github-module-version Build Status

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 = require('github-module-version')
var module = {
	user: 'github-user',
	repo: 'repo-name'
}
moduleVersion(module, function(err, data) {
	// data object
})

Or you can use it as a promise:

var moduleVersion = require('github-module-version')
var module = {
	user: 'github-user',
	repo: 'repo-name'
}
moduleVersion(module).then(function(data) {
	// data object
}, function(err) {
	// err object
})

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
	}
}

license

VOL

0.0.12

8 years ago

0.0.11

8 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago