git-user-info
v2.0.3 git gitconfig user user-info
git-user-info
Get the user info for the current user from git config, at the project or global scope
Installation
$ npm install --save git-user-info
Usage
var {getGitUserInfo} = require('git-user-info')
// Default path
console.log(getGitUserInfo())
// Specific path
console.log(getGitUserInfo({path: '/path/to/.gitconfig'}))
Notes
- Heavily inspired by git-user-name
License
MIT-licensed. See LICENSE.
npm i git-user-info
Metadata
- MIT
- >=12.0.0
- Espen Hovlandsdal
- released 3/16/2022