Gathering detailed insights and metrics for is-regex
Gathering detailed insights and metrics for is-regex
Gathering detailed insights and metrics for is-regex
Gathering detailed insights and metrics for is-regex
npm install is-regex
99.3
Supply Chain
82.5
Quality
75.9
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
24 Stars
153 Commits
11 Forks
5 Watching
1 Branches
4 Contributors
Updated on 06 Oct 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-6.7%
7,060,281
Compared to previous day
Last week
2%
42,104,344
Compared to previous week
Last month
16.6%
168,810,537
Compared to previous month
Last year
3.8%
1,692,810,095
Compared to previous year
2
Is this value a JS regex? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
1var isRegex = require('is-regex');
2var assert = require('assert');
3
4assert.notOk(isRegex(undefined));
5assert.notOk(isRegex(null));
6assert.notOk(isRegex(false));
7assert.notOk(isRegex(true));
8assert.notOk(isRegex(42));
9assert.notOk(isRegex('foo'));
10assert.notOk(isRegex(function () {}));
11assert.notOk(isRegex([]));
12assert.notOk(isRegex({}));
13
14assert.ok(isRegex(/a/g));
15assert.ok(isRegex(new RegExp('a', 'g')));
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
5 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
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