Socket
Socket
Sign inDemoInstall

git-username

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-username - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

7

index.js

@@ -11,4 +11,4 @@ /*!

const gitUrl = require('github-url-from-git');
const log = require('verbalize');
/**

@@ -19,3 +19,8 @@ * Get the username from the GitHub remote origin URL

module.exports = (function() {
if (/\bhas not been defined\b/.test(origin.url())) {
log.warn(" Can't calculate git-username. This probably means that");
log.warn(" a git remote origin has not been defined.");
return '';
}
return url.parse(gitUrl(origin.url())).path.split('/')[1];
})();

5

package.json
{
"name": "git-username",
"description": "Extract the username from a git remote origin URL.",
"version": "0.1.2",
"version": "0.2.0",
"homepage": "https://github.com/jonschlinkert/git-username",

@@ -43,5 +43,6 @@ "author": {

"dependencies": {
"github-url-from-git": "~1.1.1",
"remote-origin-url": "~0.2.1",
"github-url-from-git": "~1.1.1"
"verbalize": "^0.1.2"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc