# realpath-native

> Use the system's native `realpath`

Latest version **3.0.0** (published 2020-05-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install realpath-native
pnpm add realpath-native
yarn add realpath-native
bun add realpath-native
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2020-05-07 |
| First published | 2017-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Simen Bekkhus |
| Maintainers | simenb |
| Keywords | realpath |

## Links

- npm: https://www.npmjs.com/package/realpath-native
- Repository: https://github.com/SimenB/realpath-native
- Homepage: https://github.com/SimenB/realpath-native#readme
- Issues: https://github.com/SimenB/realpath-native/issues
- npm.io page: https://npm.io/package/realpath-native

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2020-05-07
- 2.0.0 — 2020-01-22
- 1.1.0 — 2019-02-12
- 1.0.2 — 2018-09-05
- 1.0.1 — 2018-07-04
- 0.0.0 — 2018-07-04
- 1.0.0 — 2017-12-17

## README

# 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][npm-image]][npm-url]
[![Linux & Mac Build Status][travis-image]][travis-url]

[![Greenkeeper Dependency Status][greenkeeper-image]][greenkeeper-url]

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`:

```sh
$ npm install realpath-native
```

## Usage

```js
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`

[npm-url]: https://npmjs.org/package/realpath-native
[npm-image]: https://img.shields.io/npm/v/realpath-native.svg
[travis-url]: https://travis-ci.org/SimenB/realpath-native
[travis-image]: https://img.shields.io/travis/SimenB/realpath-native/master.svg
[greenkeeper-url]: https://greenkeeper.io/
[greenkeeper-image]: https://badges.greenkeeper.io/SimenB/realpath-native.svg

---
_Source: https://npm.io/package/realpath-native · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
