# unix-path-resolve

> Cross platform resolve that always returns a UNIX style `/` seperated path

Latest version **1.0.2** (published 2022-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install unix-path-resolve
pnpm add unix-path-resolve
yarn add unix-path-resolve
bun add unix-path-resolve
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-01-06 |
| First published | 2021-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/unix-path-resolve
- Repository: https://github.com/mafintosh/unix-path-resolve
- Issues: https://github.com/mafintosh/unix-path-resolve/issues
- npm.io page: https://npm.io/package/unix-path-resolve

## Recent versions

- 1.0.2 (latest) — 2022-01-06
- 1.0.1 — 2021-12-23

## README

# unix-path-resolve

Cross platform resolve that always returns a UNIX style `/` seperated path

```
npm install unix-path-resolve
```

Mostly useful for resolving modules cross platform

## Usage

``` js
const resolve = require('unix-path-resolve')

resolve('/foo/bar', '../baz') // /foo/baz
resolve('/foo/bar', '/baz/foo') // /baz/foo
resolve('/a/b/c', '../../../../d') // throws since its out of bounds
resolve('a', 'b') // throws since none of them are absolute
resolve('/a/b/c', '..\\d') // /a/b/d
resolve('/a/b/c', 'c:\\foo\\bar') // /foo/bar
resolve('file:///a/b', './c') // /a/b/c
```

## License

MIT

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