Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rexxars/git-user-info
Get the user info for the current user from git config, at the project or global scope
https://github.com/rexxars/git-user-info
Last synced: 4 months ago
JSON representation
Get the user info for the current user from git config, at the project or global scope
- Host: GitHub
- URL: https://github.com/rexxars/git-user-info
- Owner: rexxars
- License: mit
- Created: 2015-05-05T09:55:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T06:49:52.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T07:13:05.123Z (4 months ago)
- Language: JavaScript
- Size: 91.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# git-user-info
[](http://browsenpm.org/package/git-user-info)
Get the user info for the current user from git config, at the project or global scope
# Installation
```bash
$ npm install --save git-user-info
```# Usage
```js
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](https://github.com/jonschlinkert/git-user-name)
# License
MIT-licensed. See LICENSE.