3.0.0 • Published 4 years ago

realpath-native v3.0.0

Weekly downloads
5,407,522
License
MIT
Repository
github
Last release
4 years ago

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

archetype-librarykilli8n-react-native-fast-imagespecify-importsbabel-specify-imports@icanpm/api-mastergql_din_modreact-native-slider-kf@infinitebrahmanuniverse/nolb-realexpand-react-bridge@everything-registry/sub-chunk-2630@eliteswap/token-lists@bezael-challenge/innoit-date-formatsuperset-plugin-chart-hello-world2@batbayar/superset-plugin-chart-hello-worldsushi-sdk-ftm@behzadebrhm/utils@bhzdbash/utils@donapot/mylibtesthot-zone-vuees-react-bridge@alexshmyrkov/react-rangerindoiex-sdktwine-libtwine-libraryhexyun.helpersu-librarygrids-over-polygon@cute-apocalypse/react-treetestapaex-ikon-components-library@ansonhkg/utilsget-dev-pathsgamura_jest-clidskcorenewfrdrk-js-semaphorewebchetestnpm_lmn@cryptocode99/token-lists@qandq/plugins-common@poscredit/plugin-chart-boris@poondestroyer/sig@epigraph/epigraph-analytics@projectbabelfish/defikingdoms-sdk@react-18-pdf/root@thinkincoin-libs/token-lists@torswap/tor-token-lists@smartpartner/postdirekt-autocomplete@rps-engine/core@summonlabs/use-ada-handle-resolver@traitsniper/web3-react-connector@traitsniper/web3-react-v6-connector@superset-plugins-sm/superset-plugin-chart-hello-worldant-design-draggable-modal-4ant-design-draggable-modal-fixant-design-draggable-modal-fix-2polen-web-components-reactbirken-react-native-community-image-editorpyreswap-sdkcandlelabssdkcfb-cms-demoreact-angular-component@xswap/token-listsdiscord.js-bycondiscordjs-con-selfresponsive-react-appregression-external-dtodataormreact-plugin-package-corereact-router-v5-v6-bridged-features@zh0st/evm-chains@udooku/react-image-comparison-sliderbabel-plugin-specify-importsb2x-utilsbackend-testing-coreasync-busastra-ufo-sdkaxonv2sdkreact-native-handcheque-enginereact-native-template-nascam-templatereact-native-version-managerreact-native-template-vifecotrader-dex-sdkreact-rect-progressbar@hproinformatica/functions@hawkingnetwork/react-native-tab-view@hazyflame/vue-jitsi-meet@humanity.cash/types@inti-ar/evm-chainsmoonwalkerswap-default-token-listsmetro-tsconfig-pathsnewerty-clinewerty-confignewerty-resolvenewerty-runtimemama-exporter@livecycle.io/rrweb-snapshot@neuraiproject/chainsnumhandler@mageplaza/react-carousel
3.0.0

4 years ago

2.0.0

4 years ago

1.1.0

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.0.0

6 years ago

1.0.0

6 years ago