# unescape-js

> Unescape JavaScript special characters

Latest version **1.1.4** (published 2019-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install unescape-js
pnpm add unescape-js
yarn add unescape-js
bun add unescape-js
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2019-11-17 |
| First published | 2016-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/unescape-js) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 41 |
| Author | Ivan Akulov |
| Maintainers | iamakulov |
| Keywords | unescape, escape sequences, special characters |

## Links

- npm: https://www.npmjs.com/package/unescape-js
- Repository: https://github.com/iamakulov/unescape-js
- Homepage: https://github.com/iamakulov/unescape-js#readme
- Issues: https://github.com/iamakulov/unescape-js/issues
- npm.io page: https://npm.io/package/unescape-js

## Dependencies (1)

- [string.fromcodepoint](https://npm.io/package/string.fromcodepoint.md) ^0.2.1

## Recent versions

- 1.1.4 (latest) — 2019-11-17
- 1.1.3 — 2019-11-17
- 1.1.1 — 2018-10-05
- 1.1.0 — 2017-11-20
- 1.0.8 — 2016-12-25
- 1.0.7 — 2016-12-25
- 1.0.5 — 2016-04-15
- 1.0.4 — 2016-04-15
- 1.0.3 — 2016-04-15
- 1.0.2 — 2016-04-15
- 1.0.1 — 2016-04-15
- 1.0.0 — 2016-04-15

## README

# unescape-js

[![npm](https://img.shields.io/npm/v/unescape-js.svg?maxAge=2592000&style=flat-square)](https://www.npmjs.com/package/unescape-js) [![Travis branch](https://img.shields.io/travis/iamakulov/unescape-js/master.svg?maxAge=2592000&style=flat-square)](https://travis-ci.org/iamakulov/unescape-js) [![Coveralls](https://img.shields.io/coveralls/iamakulov/unescape-js.svg?maxAge=2592000&style=flat-square)](https://coveralls.io/github/iamakulov/unescape-js)

> Unescape special characters encoded with [JavaScript escape sequences](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Using_special_characters_in_strings)

## Install

```
npm install --save unescape-js
```
    
## Usage

`unescape-js` supports:
* all JavaScript escape sequences described [on the according MDN page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Using_special_characters_in_strings) including ES2015 Unicode code point escapes (`\u{XXXXX}`)
*  Python-style escape sequences (`\UXXXXXXXX`).

```js
var unescapeJs = require('unescape-js');

console.log(unescapeJs('Hello,\\nworld!'));
// Hello,
// world!

console.log(unescapeJs('Copyright \\u00A9'));
// Copyright ©

console.log(unescapeJs('\\u{1F604}'));
// 😄
```

## License

MIT © [Ivan Akulov](http://iamakulov.com)

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