1.0.0 • Published 8 years ago

git-parse-human v1.0.0

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

git-parse-human

parse author and committer names from git commit data.

var human = require('git-parse-human')
  , committer = 'Chris Dickinson <christopher.s.dickinson@gmail.com> 1363906748 -0700'

human(committer) // {name, email, time, tzoff}

API

human(str) -> result object | null

parse a human, returning an object with their name, their email, the commit timestamp in MS and the commit timezone offset in MS.

License

MIT