Socket
Socket
Sign inDemoInstall

git-username

Package Overview
Dependencies
10
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-username

Get the username from a git remote origin URL.


Version published
Weekly downloads
64K
decreased by-19.8%
Maintainers
1
Install size
66.2 kB
Created
Weekly downloads
 

Readme

Source

git-username NPM version Build Status

Get the username from a git remote origin URL.

Install with npm

npm i git-username --save

Usage

var username = require('git-username')();
//=> jonschlinkert

Optionally pass a CWD as the second argument:

var username = require('git-username')('foo');

Run tests

Install dev dependencies:

npm i -d && npm test

Contributing

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

  • 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 git email address of the current user.
  • 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) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on February 27, 2015.

Keywords

FAQs

Last updated on 27 Feb 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc