revi
v1.0.0
Published
Get short revision, long revision, current branch and count of revision from git repository
Downloads
2
Readme
revi
Get short revision, long revision, current branch and count of revision from git repository.
Install
$ npm install --save revi
Usage
Get all:
var revi = require('revi');
revi.all(function(err, obj) {
if (err) {
throw err;
}
// use:
// obj.short
// obj.long
// obj.branch
// obj.count
});
Get short revision:
var revi = require('revi');
revi.short(function(err, rev) {
if (err) {
throw err;
}
// use rev
});
Get long revision:
var revi = require('revi');
revi.long(function(err, rev) {
if (err) {
throw err;
}
// use rev
});
Get branch:
var revi = require('revi');
revi.branch(function(err, branch) {
if (err) {
throw err;
}
// use branch
});
Get count:
var revi = require('revi');
revi.count(function(err, count) {
if (err) {
throw err;
}
// use count
});
License
MIT © Adroiter