$ npm install unescape-js
Unescape special characters encoded with JavaScript escape sequences
npm install --save unescape-js
unescape-js
supports:
\u{XXXXX}
)\UXXXXXXXX
).var unescapeJs = require('unescape-js');
console.log(unescapeJs('Hello,\\nworld!'));
// Hello,
// world!
console.log(unescapeJs('Copyright \\u00A9'));
// Copyright ©
console.log(unescapeJs('\\u{1F604}'));
// 😄
MIT © Ivan Akulov
© 2010 - cnpmjs.org x YWFE | Home | YWFE