Gathering detailed insights and metrics for match-url-wildcard
Gathering detailed insights and metrics for match-url-wildcard
npm install match-url-wildcard
Typescript
Module System
Node Version
NPM Version
99.6
Supply Chain
98.7
Quality
81.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
64,971,974
Last Day
31,822
Last Week
185,943
Last Month
639,735
Last Year
11,005,549
13 Stars
39 Commits
5 Forks
8 Watching
2 Branches
5 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.5
Package Id
match-url-wildcard@0.0.5
Unpacked Size
10.71 kB
Size
2.52 kB
File Count
5
NPM Version
9.6.7
Node Version
18.17.0
Publised On
18 Aug 2023
Cumulative downloads
Total Downloads
Last day
2.4%
31,822
Compared to previous day
Last week
5.1%
185,943
Compared to previous week
Last month
-18.6%
639,735
Compared to previous month
Last year
-4.7%
11,005,549
Compared to previous year
1
3
expect(matchUrl('google.com.uk', rule)).to.be.false;
expect(matchUrl('docs.google.com', rule)).to.be.false;
expect(matchUrl('http://docs.google.com', rule)).to.be.false;
expect(matchUrl('https://docs.google.com', rule)).to.be.false;
expect(matchUrl('www.docs.google.com', rule)).to.be.false;
expect(matchUrl('http://docs.ggoogle.com', rule)).to.be.false;
expect(matchUrl('http://goooogle.com', rule)).to.be.false;
expect(matchUrl('gogoogle.com', rule)).to.be.false;
expect(matchUrl('http://google.com', rule)).to.be.true;
expect(matchUrl('https://google.com', rule)).to.be.true;
expect(matchUrl('https://google.com/', rule)).to.be.true;
expect(matchUrl('google.com/', rule)).to.be.true;
expect(matchUrl('https://google.com', rule)).to.be.false;
expect(matchUrl('https://google.com/', rule)).to.be.false;
expect(matchUrl('docs.google.com', rule)).to.be.false;
expect(matchUrl('http://docs.google.com', rule)).to.be.false;
expect(matchUrl('https://docs.google.com', rule)).to.be.false;
expect(matchUrl('www.docs.google.com', rule)).to.be.false;
expect(matchUrl('http://docs.ggoogle.com', rule)).to.be.false;
expect(matchUrl('http://google.com', rule)).to.be.true;
expect(matchUrl('google.com/', rule)).to.be.true;
expect(matchUrl('http://google.com', rule)).to.be.false;
expect(matchUrl('https://google.com', rule)).to.be.true;
.forEach(r => {
expect(matchUrl('http://google.com', r)).to.be.false;
expect(matchUrl('https://google.com', r)).to.be.false;
expect(matchUrl('https://google.com/', r)).to.be.false;
expect(matchUrl('google.com/', r)).to.be.false;
expect(matchUrl('http://docs.ggoogle.com', r)).to.be.false;
expect(matchUrl('docs.google.com', r)).to.be.true;
expect(matchUrl('http://docs.google.com', r)).to.be.true;
expect(matchUrl('https://docs.google.com', r)).to.be.true;
expect(matchUrl('www.docs.google.com', r)).to.be.true;
});
.forEach(r => {
expect(matchUrl('http://google.com.uk', r)).to.be.false;
expect(matchUrl('http://google.com', r)).to.be.true;
expect(matchUrl('google.com/', r)).to.be.true;
expect(matchUrl('docs.google.com', r)).to.be.true;
expect(matchUrl('http://docs.google.com', r)).to.be.true;
expect(matchUrl('www.docs.google.com', r)).to.be.true;
});
.forEach(r => {
expect(matchUrl('docs.google.com', r)).to.be.false;
expect(matchUrl('https://docs.google.co.uk', r)).to.be.false;
expect(matchUrl('https://docs.google.uk', r)).to.be.false;
expect(matchUrl('http://google.com', r)).to.be.true;
expect(matchUrl('https://google.co.uk', r)).to.be.true;
expect(matchUrl('google.ru/', r)).to.be.true;
});
.forEach(r => {
expect(matchUrl('http://google.com', r)).to.be.false;
expect(matchUrl('docs.google', r)).to.be.false;
expect(matchUrl('https://docs.googlee.com', r)).to.be.false;
expect(matchUrl('www.docs.google.co.uk', r)).to.be.false;
expect(matchUrl('http://docs.ggoogle.com', r)).to.be.false;
expect(matchUrl('http://___docs.google.com', r)).to.be.false;
expect(matchUrl('docs.google.en', r)).to.be.true;
expect(matchUrl('http://docs.google.co.uk', r)).to.be.true;
});
.forEach(r => {
expect(matchUrl('http://google.com', r)).to.be.false;
expect(matchUrl('docs.google.com', r)).to.be.true;
expect(matchUrl('http://docs.google.com', r)).to.be.true;
expect(matchUrl('www.docs.google.com', r)).to.be.true;
expect(matchUrl('www.my.docs.google.com', r)).to.be.true;
});
.forEach(r => {
expect(matchUrl('http://google.com', r)).to.be.false;
expect(matchUrl('docs.google.com', r)).to.be.false;
expect(matchUrl('http://docs.google.com', r)).to.be.false;
expect(matchUrl('www.docs.google.com', r)).to.be.true;
expect(matchUrl('www.my.docs.google.com.eu', r)).to.be.true;
});
expect(matchUrl('docs.google.com', rule)).to.be.true;
expect(matchUrl('docs.google.eu.com', rule)).to.be.true;
expect(matchUrl('docs.google.ru', rule)).to.be.false;
expect(matchUrl('docs.google.co.uk', rule)).to.be.false;
expect(matchUrl('docs.google.com', rule)).to.be.false;
expect(matchUrl('docs.google.ru', rule)).to.be.false;
expect(matchUrl('my.docs.google.ro.eu.com', rule)).to.be.false;
expect(matchUrl('docs.google.co.uk', rule)).to.be.false;
expect(matchUrl('docs.google.eu.com', rule)).to.be.true;
expect(matchUrl('docs.google.ro.eu.com', rule)).to.be.true;
expect(matchUrl('my.docs.google.eu.com.ru', rule)).to.be.true;
expect(matchUrl('docs.google.com', rule)).to.be.false;
expect(matchUrl('localhost', rule)).to.be.true;
expect(matchUrl('http://localhost', rule)).to.be.true;
expect(matchUrl('my-localhost', rule)).to.be.false;
expect(matchUrl('localhost-my', rule)).to.be.false;
expect(matchUrl('127.0.0.1', rule)).to.be.true;
expect(matchUrl('http://127.0.0.1', rule)).to.be.true;
expect(matchUrl('https://127.0.0.1', rule)).to.be.true;
expect(matchUrl('127.127.0.0', rule)).to.be.false;
expect(matchUrl('127.0.0.2', rule)).to.be.true;
expect(matchUrl('127.0.1.2', rule)).to.be.false;
expect(matchUrl('127.0.0.2', rule)).to.be.true;
expect(matchUrl('128.120.120.0', rule)).to.be.false;
expect(matchUrl('127.0.0.0', rule)).to.be.true;
expect(matchUrl('127.120.120.0', rule)).to.be.true;
expect(matchUrl('google.com', rule)).to.be.false;
expect(matchUrl('google.com:80', rule)).to.be.false;
expect(matchUrl('google.com:81', rule)).to.be.true;
expect(matchUrl('google.com', rule)).to.be.false;
expect(matchUrl('google.com:80', rule)).to.be.false;
expect(matchUrl('google.com:81', rule)).to.be.true;
expect(matchUrl('localhost:3000/features/functional/local', rule)).to.be.true;
expect(matchUrl('http://localhost:3000/features/functional/local', rule)).to.be.true;
expect(matchUrl(null, rule)).to.be.false;
expect(matchUrl('google', rule)).to.be.false;
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 3/28 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
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-01-13
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