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
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
26 Stars
13 Commits
10 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Aug 23, 2024
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
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
Found 0/13 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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