Gathering detailed insights and metrics for realpaths-callback
Gathering detailed insights and metrics for realpaths-callback
Gathering detailed insights and metrics for realpaths-callback
Gathering detailed insights and metrics for realpaths-callback
npm install realpaths-callback
Typescript
Module System
Node Version
NPM Version
64.9
Supply Chain
89.1
Quality
73.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Mar 21, 2016
Latest Version
1.0.0
Package Id
realpaths-callback@1.0.0
Size
2.69 kB
NPM Version
3.3.10
Node Version
5.0.0
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
4
Callback-style version of realpaths:
Like fs.realpath, but resolves multiple paths at once
1const realpathsCallback = require('realpaths-callback'); 2 3// symlink1 <<===>> /path/to/foo.txt 4// symlink2 <<===>> /path/to/bar.txt 5 6realpaths(['symlink1', 'symlink2'], (err, paths) => { 7 if (err) { 8 throw err; 9 } 10 11 paths; //=> ['/path/to/foo.txt', '/path/to/bar.txt'] 12});
npm install realpaths-callback
1const realpathsCallback = require('realpaths-callback');
paths: Array
of strings (file paths)
cache: Object
(used as fs.realpath
cache)
callback: Function
(called after the paths are resolved)
It's API is very similar to fs.realpath
. The only difference is realpaths-callback takes an array as its first argument and resolves multiple paths at once.
1'use strict'; 2 3const path = require('path'); 4const realpaths = require('realpaths-callback'); 5 6realpaths(['symlink1', 'symlink2'], { 7 cache: { 8 [path.resolve('symlink1')]: '/path/to/foo.txt', 9 [path.resolve('symlink2')]: '/path/to/bar.txt' 10 } 11}, (err, paths) => { 12 if (err) { 13 throw err; 14 } 15 paths; //=> ['/path/to/foo.txt', '/path/to/bar.txt'] 16});
If at least one of the paths cannot be resolved, it immediately passes an error to its callback function without considering the rest of paths.
Copyright (c) 2015 Shinnosuke Watanabe
Licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/3 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
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
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