npm.io
2.0.3 • Published 4 years ago

git-user-info

Licence
MIT
Version
2.0.3
Deps
2
Size
4 kB
Vulns
1
Weekly
0
Stars
1

git-user-info

npm version

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

License

MIT-licensed. See LICENSE.

Keywords