|
пре 5 месеци | |
---|---|---|
.. | ||
.nyc_output | пре 5 месеци | |
dist | пре 5 месеци | |
src | пре 5 месеци | |
test | пре 5 месеци | |
.travis.yml | пре 5 месеци | |
LICENSE | пре 5 месеци | |
README.md | пре 5 месеци | |
package.json | пре 5 месеци |
Unescape special characters encoded with JavaScript escape sequences
npm install --save unescape-js
unescape-js
supports:
\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}'));
// 😄
MIT © Ivan Akulov