Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

git-user-info

rexxars24.3kMIT2.0.3TypeScript support: included

Get the user info for the current user from git config, at the project or global scope

git, gitconfig, user, user-info

readme

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.

changelog

2.0.0

  • BREAKING: switch from synchronous to asynchronous API using promises
  • BREAKING: use named export getGitUserInfo instead of default export
  • BREAKING: require node >= 12
  • add typescript definitions