Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-url-from-username-repo

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-url-from-username-repo - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

2

index.js

@@ -6,5 +6,5 @@ module.exports = getUrl

if (/^[\w-]+\/[\w\.-]+$/.test(r))
return "git://github.com/" + r
return "https://github.com/" + r
else
return null
}
{
"name": "github-url-from-username-repo",
"version": "0.1.0",
"version": "0.2.0",
"description": "Create urls from username/repo",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,3 +7,3 @@ var assert = require("assert")

var url = getUrl("visionmedia/express")
assert.equal("git://github.com/visionmedia/express", url)
assert.equal("https://github.com/visionmedia/express", url)
})

@@ -23,3 +23,3 @@

var url = getUrl("component/downloader.js")
assert.equal("git://github.com/component/downloader.js", url)
assert.equal("https://github.com/component/downloader.js", url)
})

@@ -29,3 +29,3 @@

var url = getUrl("component/.downloader.js")
assert.equal("git://github.com/component/.downloader.js", url)
assert.equal("https://github.com/component/.downloader.js", url)
})

@@ -35,4 +35,4 @@

var url = getUrl("component/-dow-nloader.j-s")
assert.equal("git://github.com/component/-dow-nloader.j-s", url)
assert.equal("https://github.com/component/-dow-nloader.j-s", url)
})
})
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