★ wanayoo — archive 1999 https://www.npmjs.com/package/git-user-nameNouvelle recherche | Portail wanayoo

git-user-name

Get a user's name from git config at the project or global scope, depending on what git uses in the current context.

git-user-name

Get a user's name from git config at the project or global scope, depending on what git uses in the current context.

Install with npm

npm i git-user-name --save
var gitUserName = require('git-user-name');
console.log(gitUserName());
//=> jonschlinkert 
  • git-config-path: Resolve the path to the user's global .gitconfig.
  • parse-git-config: Parse .git/config into a JavaScript object. sync or async.
  • git-username: Get the username from a git remote origin URL.
  • git-repo-name: Get the repository name from the git remote origin URL.
  • git-branch: Get the current branch for a local git repository.

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Install dev dependencies.

npm i -d && npm test

Jon Schlinkert

Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 31, 2015.