# universal-path

> Cross-platform universal node.js `path` module replacement that works better with Windows.

Latest version **0.1.0** (published 2016-08-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install universal-path
pnpm add universal-path
yarn add universal-path
bun add universal-path
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-08-12 |
| First published | 2016-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Paul Miller |
| Maintainers | paulmillr |
| Keywords | path, syspath, universal, windows |

## Links

- npm: https://www.npmjs.com/package/universal-path
- Repository: https://github.com/paulmillr/universal-path
- Homepage: https://github.com/paulmillr/universal-path#readme
- Issues: https://github.com/paulmillr/universal-path/issues
- npm.io page: https://npm.io/package/universal-path

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

- 0.1.0 (latest) — 2016-08-12

## README

# universal-path

Cross-platform universal node.js `path` module replacement that works better with Windows.

## Usage

```javascript
const sysPath = require('universal-path');

// Two additional helper methods.
sysPath.slashes(path)   // Converts win32 path to unit path.
sysPath.unslashes(path) // Converts unix path to win32 path.

// Methods from node.js `path`.
sysPath.isAbsolute()
sysPath.basename()
sysPath.sep()

// Methods from node.js `path`; `slashes` is executed on the output.
sysPath.normalize()
sysPath.relative()
sysPath.resolve()
sysPath.join()
sysPath.dirname()
```

## License

MIT

Copyright (c) 2016 Paul Miller (http://paulmillr.com)

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