Socket
Socket
Sign inDemoInstall

realpath-native

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    realpath-native

Use the system's native `realpath`


Version published
Weekly downloads
2M
decreased by-0.28%
Maintainers
1
Install size
5.87 kB
Created
Weekly downloads
 

Readme

Source

realpath-native

This module is no longer necessary as all current releases of Node supports fs.realpath.native now.

Use the system's native realpath

NPM Version Linux & Mac Build Status

Greenkeeper Dependency Status

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 you.

The advantage of the native realpath over fs.realpath is that the native one better supports paths on Windows.

On node 8 the function uses the old fs.realpath function.

Install

Install the module with npm:

$ npm install realpath-native

Usage

const realpath = require('realpath-native');

realpath('some-path'); // returns a promise

realpath.sync('some-path');

API

realpath(path)

Returns a promise for the resolved path of the input.

path

Type: string

realpath.sync(path)

Returns the resolved path of the input synchronously.

path

Type: string

Keywords

FAQs

Last updated on 07 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc