# encodeuricomponent-tag

> Template literal tag for encoding URI component values

Latest version **1.0.1** (published 2016-10-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install encodeuricomponent-tag
pnpm add encodeuricomponent-tag
yarn add encodeuricomponent-tag
bun add encodeuricomponent-tag
```

## 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.1 |
| Published | 2016-10-11 |
| First published | 2016-10-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Alan Shaw |
| Maintainers | alanshaw |
| Keywords | encodeURIComponent, template, literal, tag, URL, URI, encode |

## Links

- npm: https://www.npmjs.com/package/encodeuricomponent-tag
- Repository: https://github.com/alanshaw/encodeuricomponent-tag
- Homepage: https://github.com/alanshaw/encodeuricomponent-tag#readme
- Issues: https://github.com/alanshaw/encodeuricomponent-tag/issues
- npm.io page: https://npm.io/package/encodeuricomponent-tag

## 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.1 (latest) — 2016-10-11
- 1.0.0 — 2016-10-10

## README

# encodeuricomponent-tag [![dependencies Status](https://david-dm.org/alanshaw/encodeuricomponent-tag/status.svg)](https://david-dm.org/alanshaw/encodeuricomponent-tag)

[Template literal tag](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals) for encoding URI component values.

## Example

```js
const uri = require('encodeuricomponent-tag')
console.log(uri`/category/${'big horses'}?q=${'saddles & bears'}`)
// Output: /category/big%20horses?q=saddles%20%26%20bears
```

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