Get the user info for the current user from git config, at the project or global scope
$ npm install --save git-user-info
var gitUserInfo = require('git-user-info');
// Default path
console.log(gitUserInfo());
// Specific path
console.log(gitUserInfo({ path: '/path/to/.gitconfig' }))
- Operations are synchronous (for now, feel free to contribute async version)
- Heavily inspired/stolen from git-user-name
MIT-licensed. See LICENSE.