Package Exports
- git-user-info
- git-user-info/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-user-info) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.