1.0.0 • Published 4 years ago

git-user-local v1.0.0

Weekly downloads
57
License
MIT
Repository
github
Last release
4 years ago

git-user-local

Build Status codecov

Get Git user info from local git config

Install

$ yarn add git-user-local

Usage

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