Package Exports
- git-username
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-username) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
git-username 
Extract the username from a git remote origin URL.
This differs from git-user-name, which provides name of the current user from git config.
Install
Install with npm:
npm i git-username --save
Usage
var username = require('git-username');
console.log(username);
//=> jonschlinkert
Related
Here are a few related projects:
- git-branch: Get the current branch for a local git repository
- git-repo-name: Get the repository name from the git remote origin URL
- git-user-email: Get the current user's git email address.
- git-user-name: Get the name of the current user from git config, at the project or global scope, depending on what git uses in the current context.
- git-username: Get the username from a git remote origin URL.
- github-repo-url: Extract a GitHub project's URL from its git repository URL.
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on April 04, 2014.