json-last-commit
v0.0.7
Published
Get some data from the last commit in a json
Downloads
2
Readme
json-last-commit - Get some data from the last commit in a json.
Usage
Sync
var jlc = require("json-last-commit");
var commit = jlc.sync();
console.log(commit);
Async
var jlc = require("json-last-commit");
jlc.async(function(commit){
console.log(commit);
});
Output
{
author: 'wilsonft',
email: '[email protected]',
subject: 'add commit',
ahash: '5f173a6',
hash: '5f173a6cc0cc6c37d91d1305ea0623bdc787ba8d'
}