Installations
npm install slash-to-regexp
Developer Guide
Typescript
Yes
Module System
CommonJS
Min. Node Version
>=16.13.0
Node Version
20.18.0
NPM Version
10.9.0
Score
63.7
Supply Chain
66.8
Quality
76.5
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (99.03%)
Shell (0.97%)
Developer
airkro
Download Statistics
Total Downloads
11,238
Last Day
1
Last Week
18
Last Month
204
Last Year
4,021
GitHub Statistics
1 Stars
21 Commits
1 Forks
3 Watching
8 Branches
1 Contributors
Bundle Size
499.00 B
Minified
294.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.1.0
Package Id
slash-to-regexp@0.1.0
Unpacked Size
3.53 kB
Size
1.81 kB
File Count
5
NPM Version
10.9.0
Node Version
20.18.0
Publised On
24 Oct 2024
Total Downloads
Cumulative downloads
Total Downloads
11,238
Last day
-75%
1
Compared to previous day
Last week
20%
18
Compared to previous week
Last month
-50%
204
Compared to previous month
Last year
73.2%
4,021
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No dependencies detected.
slash-to-regexp
Convert path with slash into regexp.
Installation
1npm install slash-to-regexp
Usage
1const slashToRegexp = require('slash-to-regexp'); 2 3slashToRegexp('node_modules/core-js'); 4// output /node_modules[\\/]core-js/ 5 6slashToRegexp('node_modules\\\\core-js', 'g'); 7// output /node_modules[\\/]core-js/g 8 9slashToRegexp('/node_modules/decimal.js/'); 10// output /[\\/]node_modules[\\/]decimal\.js[\\/]/
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
Reason
Found 0/20 approved changesets -- score normalized to 0
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/bring-it.yaml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bring-it.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/Airkro/frontend-toolkit/bring-it.yaml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bring-it.yaml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/Airkro/frontend-toolkit/bring-it.yaml/master?enable=pin
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
3.3
/10
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