# uri-path

> Convert relative file system paths into safe URI paths

Latest version **1.0.0** (published 2015-10-24) · WTFPL OR MIT license · 0 weekly downloads

## Install

```sh
npm install uri-path
pnpm add uri-path
yarn add uri-path
bun add uri-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 | 2015-10-24 |
| First published | 2014-06-30 |
| Weekly downloads | 0 |
| License | WTFPL OR MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ult Combo |
| Maintainers | ult_combo |
| Keywords | uri, url, relative, file system, fs, path, convert |

## Links

- npm: https://www.npmjs.com/package/uri-path
- Repository: https://github.com/UltCombo/uri-path
- Issues: https://github.com/UltCombo/uri-path/issues
- npm.io page: https://npm.io/package/uri-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) — 2015-10-24
- 0.0.2 — 2014-06-30
- 0.0.1 — 2014-06-30

## README

# uri-path
[![NPM version](https://badge.fury.io/js/uri-path.png)](https://npmjs.org/package/uri-path)
[![Build Status](https://travis-ci.org/UltCombo/uri-path.png?branch=master)](https://travis-ci.org/UltCombo/uri-path)
[![devDependency Status](https://david-dm.org/UltCombo/uri-path/dev-status.png)](https://david-dm.org/UltCombo/uri-path#info=devDependencies)

Convert relative file system paths into safe URI paths

# Install

```
npm install --save uri-path
```

# Usage

```js
var URIpath = require('uri-path');

// Properly encode URI path segments
URIpath('../abc/@#$%¨&()[]{}-_=+ß/môòñ 月 قمر');
// -> '../abc/%40%23%24%25%C2%A8%26()%5B%5D%7B%7D-_%3D%2B%C3%9F/m%C3%B4%C3%B2%C3%B1%20%E6%9C%88%20%D9%82%D9%85%D8%B1'

// Also supports paths with Windows directory separators
URIpath('a\\b\\c');
// -> 'a/b/c'
```

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