Gathering detailed insights and metrics for fast-decode-uri-component
Gathering detailed insights and metrics for fast-decode-uri-component
Gathering detailed insights and metrics for fast-decode-uri-component
Gathering detailed insights and metrics for fast-decode-uri-component
npm install fast-decode-uri-component
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
29 Stars
41 Commits
3 Forks
5 Watching
1 Branches
3 Contributors
Updated on 26 May 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-9.2%
872,362
Compared to previous day
Last week
1.6%
4,957,056
Compared to previous week
Last month
12%
20,180,830
Compared to previous month
Last year
95.2%
201,825,663
Compared to previous year
4
Decodes strings encoded by encodeURI
and encodeURIComponent
, without throwing errors on invalid escapes, instead, it returns null
.
npm install fast-decode-uri-component
1const fastDecode = require('fast-decode-uri-component')
2
3console.log(fastDecode('test')) // 'test'
4console.log(fastDecode('%25')) // '%'
5console.log(fastDecode('/test/hel%2Flo')) // '/test/hel/lo'
6
7console.log(fastDecode('/test/hel%"Flo')) // null
8console.log(fastDecode('%7B%ab%7C%de%7D')) // null
9console.log(fastDecode('%ab')) // null
You can find the benchmark file here.
# fast-decode-uri-component
ok ~539 ms (0 s + 539114308 ns)
# decodeURIComponent
ok ~6.06 s (6 s + 62305153 ns)
This project has been forked from jridgewell/safe-decode-uri-component
because I wanted to change the behaviour of the library on invalid inputs, plus change some internals.
All the credits before the commit 53000fe
goes to the jridgewell/safe-decode-uri-component
project contributors.
Since the commit 9673ab7
the project will be maintained by @delvedor.
Licensed under MIT.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/29 approved changesets -- score normalized to 0
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 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