# clean-up-path

> Make paths absolute and normalize them.

Latest version **1.0.0** (published 2018-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install clean-up-path
pnpm add clean-up-path
yarn add clean-up-path
bun add clean-up-path
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-02-15 |
| First published | 2018-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jo Liss |
| Maintainers | joliss |
| Keywords | fs, path |

## Links

- npm: https://www.npmjs.com/package/clean-up-path
- Repository: https://github.com/broccoli/node-clean-up-path
- Homepage: https://github.com/broccoli/node-clean-up-path#readme
- Issues: https://github.com/broccoli/node-clean-up-path/issues
- npm.io page: https://npm.io/package/clean-up-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

- 1.0.0 (latest) — 2018-02-15

## README

# node-clean-up-path

[![Build Status](https://travis-ci.org/broccolijs/node-clean-up-path.svg?branch=master)](https://travis-ci.org/broccolijs/node-clean-up-path)

## Installation

```bash
npm install --save clean-up-path
```

## Usage

```js
let cleanUpPath = require("clean-up-path");

let absolutePath = cleanUpPath(somePath);

// Now safely use p as a symlink target, etc.
```

`cleanUpPath(p)` is similar to
[`path.resolve(p)`](https://nodejs.org/docs/latest/api/path.html#path_path_resolve_paths),
but it is faster for paths that are already resolved, and on Windows it turns
LFS paths (`c:\foo`) into long UNC paths (`\\?\c:\foo`) to deal with path length
limitations.

Unlike `path.resolve`, it does not guarantee that the returned path contains no
`..` or `.` segments.

## Contributing

Clone this repo and run the tests like so:

```
npm install
npm test
```

Issues and pull requests are welcome. If you change code, be sure to re-run
`npm test`. Oftentimes it's useful to add or update tests as well.

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