Gathering detailed insights and metrics for fs.realpath
Gathering detailed insights and metrics for fs.realpath
Gathering detailed insights and metrics for fs.realpath
Gathering detailed insights and metrics for fs.realpath
Use node's fs.realpath, but fall back to the JS implementation if the native one fails
npm install fs.realpath
Typescript
Module System
Node Version
NPM Version
99.6
Supply Chain
76.5
Quality
74.9
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
10,090,943,586
Last Day
8,416,276
Last Week
53,245,863
Last Month
221,184,937
Last Year
2,431,700,773
NOASSERTION License
26 Stars
13 Commits
10 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Aug 23, 2024
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
fs.realpath@1.0.0
Size
4.33 kB
NPM Version
3.9.1
Node Version
4.4.4
Published on
Jun 15, 2016
Cumulative downloads
Total Downloads
Last Day
14.4%
8,416,276
Compared to previous day
Last Week
10.2%
53,245,863
Compared to previous week
Last Month
-3.4%
221,184,937
Compared to previous month
Last Year
11.6%
2,431,700,773
Compared to previous year
A backwards-compatible fs.realpath for Node v6 and above
In Node v6, the JavaScript implementation of fs.realpath was replaced with a faster (but less resilient) native implementation. That raises new and platform-specific errors and cannot handle long or excessively symlink-looping paths.
This module handles those cases by detecting the new errors and falling back to the JavaScript implementation. On versions of Node prior to v6, it has no effect.
1var rp = require('fs.realpath') 2 3// async version 4rp.realpath(someLongAndLoopingPath, function (er, real) { 5 // the ELOOP was handled, but it was a bit slower 6}) 7 8// sync version 9var real = rp.realpathSync(someLongAndLoopingPath) 10 11// monkeypatch at your own risk! 12// This replaces the fs.realpath/fs.realpathSync builtins 13rp.monkeypatch() 14 15// un-do the monkeypatching 16rp.unmonkeypatch()
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
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