0.0.7 • Published 8 years ago

json-last-commit v0.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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: 'wilsonft83@gmail.com',
	subject: 'add commit',
	ahash: '5f173a6',
	hash: '5f173a6cc0cc6c37d91d1305ea0623bdc787ba8d' 
 }