JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 940580
  • Score
    100M100P100Q182527F
  • License MIT

Unescape JavaScript special characters

Package Exports

  • unescape-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (unescape-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

unescape-js

npm Travis branch Coveralls

Unescape special characters encoded with JavaScript escape sequences

Install

npm install --save unescape-js

Usage

unescape-js supports:

  • all JavaScript escape sequences described on the according MDN page including ES2015 Unicode code point escapes (\u{XXXXX})
  • Python-style escape sequences (\UXXXXXXXX).
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