# nanopath

> A tiny isomorphic port of Node@17.8.0 path module.

Latest version **2.0.1** (published 2022-11-24) · 0 weekly downloads

## Install

```sh
npm install nanopath
pnpm add nanopath
yarn add nanopath
bun add nanopath
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2022-11-24 |
| First published | 2022-04-01 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 98.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | fabiospampinato |
| Keywords | path, isomorphic, tiny, posix, win32, linux, mac, windows, web |

## Links

- npm: https://www.npmjs.com/package/nanopath
- Repository: https://github.com/fabiospampinato/nanopath
- Homepage: https://github.com/fabiospampinato/nanopath#readme
- Issues: https://github.com/fabiospampinato/nanopath/issues
- npm.io page: https://npm.io/package/nanopath

## 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

- 2.0.1 (latest) — 2022-11-24
- 2.0.0 — 2022-04-15
- 1.0.0 — 2022-04-01

## README

# NanoPath

A tiny isomorphic port of Node@17.8.0 path module.

This library relies on TypeScript's type system for checking the validity of arguments.

## Install

```sh
npm install --save nanopath
```

## Usage

It works just like Node's path module.

```ts
import path from 'nanopath'; // Implementation depending on the current platform
import posix from 'nanopath/posix'; // Implementation for POSIX paths
import win32 from 'nanopath/win32'; // Implementation for Windows paths
import web from 'nanopath/web'; // Alias for "nanopath/posix"

path.posix === posix // => true
path.win32 === win32 // => true

posix.posix // => undefined
posix.win32 // => undefined

win32.posix // => undefined
win32.win32 // => undefined

web.posix // => undefined
web.win32 // => undefined
```

## License

- Library (Parts): MIT © Fabio Spampinato
- Library (Parts): © [Node.js](https://github.com/nodejs/node/blob/master/LICENSE)
- Test suite (Parts): © [Node.js](https://github.com/nodejs/node/blob/master/LICENSE)

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