Gathering detailed insights and metrics for github-url-from-git
Gathering detailed insights and metrics for github-url-from-git
npm install github-url-from-git
Typescript
Module System
Node Version
NPM Version
99.8
Supply Chain
98.7
Quality
77.7
Maintenance
100
Vulnerability
100
License
JavaScript (97.99%)
Makefile (2.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
72,616,468
Last Day
76,539
Last Week
401,010
Last Month
1,637,859
Last Year
16,901,829
MIT License
62 Stars
42 Commits
45 Forks
5 Watchers
2 Branches
9 Contributors
Updated on Sep 17, 2024
Minified
Minified + Gzipped
Latest Version
1.5.0
Package Id
github-url-from-git@1.5.0
Size
2.71 kB
NPM Version
3.10.9
Node Version
7.1.0
Published on
Nov 27, 2016
Cumulative downloads
Total Downloads
Last Day
5.5%
76,539
Compared to previous day
Last Week
2%
401,010
Compared to previous week
Last Month
39.6%
1,637,859
Compared to previous month
Last Year
13.2%
16,901,829
Compared to previous year
6
1describe('parse(url)', function () { 2 it('should support git://*', function () { 3 var url = 'git://github.com/jamesor/mongoose-versioner' 4 parse(url).should.equal('https://github.com/jamesor/mongoose-versioner') 5 }) 6 7 it('should support git://*.git', function () { 8 var url = 'git://github.com/treygriffith/cellar.git' 9 parse(url).should.equal('https://github.com/treygriffith/cellar') 10 }) 11 12 it('should support https://*', function () { 13 var url = 'https://github.com/Empeeric/i18n-node' 14 parse(url).should.equal('https://github.com/Empeeric/i18n-node') 15 }) 16 17 it('should support https://*.git', function () { 18 var url = 'https://jpillora@github.com/banchee/tranquil.git' 19 parse(url).should.equal('https://github.com/banchee/tranquil') 20 }) 21 22 it('should return undefined on failure', function () { 23 var url = 'git://github.com/justgord/.git' 24 assert(parse(url) == null) 25 }) 26 27 it('should parse git@github.com:bcoe/thumbd.git', function () { 28 var url = 'git@github.com:bcoe/thumbd.git' 29 parse(url).should.eql('https://github.com/bcoe/thumbd') 30 }) 31 32 it('should parse git@github.com:/bcoe/thumbd.git', function () { 33 var url = 'git@github.com:/bcoe/thumbd.git' 34 parse(url).should.eql('https://github.com/bcoe/thumbd') 35 }) 36 37 it('should parse git@github.com:bcoe/thumbd.git#2.7.0', function () { 38 var url = 'git@github.com:bcoe/thumbd.git#2.7.0' 39 parse(url).should.eql('https://github.com/bcoe/thumbd') 40 }) 41 42 it('should parse git+https://github.com/bcoe/thumbd.git', function () { 43 var url = 'git+https://github.com/bcoe/thumbd.git' 44 parse(url).should.eql('https://github.com/bcoe/thumbd') 45 }) 46 47 it('should parse git+ssh://github.com/bcoe/thumbd.git', function () { 48 var url = 'git+ssh://github.com/bcoe/thumbd.git' 49 parse(url).should.eql('https://github.com/bcoe/thumbd') 50 }) 51 52 it('should parse https://EastCloud@github.com/EastCloud/node-websockets.git', function () { 53 var url = 'https://EastCloud@github.com/EastCloud/node-websockets.git' 54 parse(url).should.eql('https://github.com/EastCloud/node-websockets') 55 }) 56 57 // gist urls. 58 59 it('should parse git@gist urls', function () { 60 var url = 'git@gist.github.com:3135914.git' 61 parse(url).should.equal('https://gist.github.com/3135914') 62 }) 63 64 it('should parse https://gist urls', function () { 65 var url = 'https://gist.github.com/3135914.git' 66 parse(url).should.equal('https://gist.github.com/3135914') 67 }) 68 69 // Handle arbitrary GitHub Enterprise domains. 70 71 it('should parse parse extra GHE urls provided', function () { 72 var url = 'git://github.example.com/treygriffith/cellar.git' 73 parse( 74 url, {extraBaseUrls: ['github.example.com']} 75 ).should.equal('https://github.example.com/treygriffith/cellar') 76 }) 77 78 it('should parse GHE urls with multiple subdomains', function () { 79 var url = 'git://github.internal.example.com/treygriffith/cellar.git' 80 parse( 81 url, {extraBaseUrls: ['github.internal.example.com']} 82 ).should.equal('https://github.internal.example.com/treygriffith/cellar') 83 }) 84}) 85 86describe('re', function () { 87 it('should expose GitHub url parsing regex', function () { 88 parse.re.source.should.equal( 89 /^(?:https?:\/\/|git:\/\/|git\+ssh:\/\/|git\+https:\/\/)?(?:[^@]+@)?(gist.github.com|github.com)(?::\/?|\/)([^/]+\/[^/]+?|[0-9]+)$/.source 90 ) 91 }) 92})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 8/29 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More