JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10393
  • Score
    100M100P100Q127520F
  • License MIT

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

Package Exports

  • git-user-info

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

npm versionBuild StatusCoverage StatusCode Climate

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 gitUserInfo = require('git-user-info');

// Default path
console.log(gitUserInfo());

// Specific path
console.log(gitUserInfo({ path: '/path/to/.gitconfig' }))

Notes

  • Operations are synchronous (for now, feel free to contribute async version)
  • Heavily inspired/stolen from git-user-name

License

MIT-licensed. See LICENSE.