https://github.com/lasalefamine/git-user-local
Get Git user info from local git config
https://github.com/lasalefamine/git-user-local
git git-local git-user
Last synced: 11 months ago
JSON representation
Get Git user info from local git config
- Host: GitHub
- URL: https://github.com/lasalefamine/git-user-local
- Owner: LasaleFamine
- License: mit
- Created: 2018-01-27T20:15:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:46:54.000Z (about 3 years ago)
- Last Synced: 2025-03-02T18:51:39.797Z (12 months ago)
- Topics: git, git-local, git-user
- Language: JavaScript
- Size: 649 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# git-user-local
[](https://travis-ci.com/LasaleFamine/git-user-local) [](https://codecov.io/gh/LasaleFamine/git-user-local?branch=master)
> Get Git user info from local git config
## Install
```
$ yarn add git-user-local
```
## Usage
```js
const gitUserLocal = require('git-user-local');
gitUserLocal();
//=> {user: {email: 'awesome@unicorn.com', name: 'Phi'}}
```
## API
### gitUserLocal(path)
#### path
Type: `string`
You can pass a specific path for searching there instead of the homedir.
## License
MIT © [LasaleFamine](https://godev.space)