This module is no longer necessary as all current releases of Node supports
Use the system's native
Node 9.3 added
fs.realpath(Sync).native. On older Nodes you have to use
process.binding to access the same function. This module does that check for
The advantage of the native
fs.realpath is that the native one
better supports paths on Windows.
On node 8 the function uses the old
Install the module with
$ npm install realpath-native
const realpath = ;; // returns a promiserealpath;
Returns a promise for the resolved path of the input.
Returns the resolved path of the input synchronously.