Get Git user info from local git config
$ yarn add git-user-local
const gitUserLocal = require('git-user-local');
gitUserLocal();
//=> {user: {email: 'awesome@unicorn.com', name: 'Phi'}}
Type: string
You can pass a specific path for searching there instead of the homedir.
MIT © LasaleFamine