unescape-js
Unescape JavaScript special characters
Last updated 9 years ago by iamakulov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install unescape-js 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.4                                ...           latest (5 years ago)

12 Versions

  • 1.1.4                                ...           5 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.8                                ...           8 years ago
  • 1.0.7                                ...           8 years ago
  • 1.0.5                                ...           9 years ago
  • 1.0.4                                ...           9 years ago
  • 1.0.3                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 12
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 12
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE