git-parse-human2
v0.0.1
Published
Parse author and committer names from git commits (fork of git-parse-human)
Downloads
329
Maintainers
Readme
git-parse-human2
Parse author and committer names from git commit data.
var human = require('git-parse-human2');
var committer = 'Chris Dickinson <[email protected]> 1363906748 -0700';
console.log(human(committer));
// outputs the following:
/*
{
name: 'Chris Dickinson',
email: '[email protected]',
timestamp: 1363906748,
timezone: '-0700'
}
*/
API
human(str) -> result object | null
Parse a human, returning an object with their name, their email, the commit timestamp in seconds and the commit timezone offset.
License
MIT