# pretty-path

> Prettify paths

Latest version **1.0.2** (published 2015-08-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install pretty-path
pnpm add pretty-path
yarn add pretty-path
bun add pretty-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.2 |
| Published | 2015-08-24 |
| First published | 2015-08-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Akiva Lipshitz |
| Maintainers | theideasmith |
| Keywords | pretty, path |

## Links

- npm: https://www.npmjs.com/package/pretty-path
- Repository: https://github.com/theideasmith/pretty-path
- Homepage: https://github.com/theideasmith/pretty-path#readme
- Issues: https://github.com/theideasmith/pretty-path/issues
- npm.io page: https://npm.io/package/pretty-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.2 (latest) — 2015-08-24
- 1.0.1 — 2015-08-24
- 1.0.0 — 2015-08-23

## README

#pretty-path
[![NPM](https://nodei.co/npm/<pretty-path>.png)](https://nodei.co/npm/<pretty-path>/)


## Usage

Quite simple as of now. Pass it a filepath
 and it will try to transform the path into its most syntactically correct form.

```javascript
var ppath = require('pretty-path')

ppath('x/y/z') // --> ./x/y/z
ppath('x/y/z') // --> /x/y/z
ppath('./////x/y/z') // --> ./x/y/z
ppath('././././x/y/z') // --> ./x/y/z
```

I realize it is limited in its functionality. Updates will come soon.

## Contributions

Any ideas you have - follow them and see them to fruition. Submit a pull request with unit tests and your commit should be merged in no time

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