realpaths-callback
Callback-style version of realpaths:
Like fs.realpath, but resolves multiple paths at once
const realpathsCallback = ; // symlink1 <<===>> /path/to/foo.txt// symlink2 <<===>> /path/to/bar.txt ;
Installation
npm install realpaths-callback
API
const realpathsCallback = ;
realpathsCallback(paths [, cache], 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.
'use strict'; const path = ;const realpaths = ; ;
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.
Related project
- realpaths (Promises/A+ version)
License
Copyright (c) 2015 Shinnosuke Watanabe
Licensed under the MIT License.