unescape-js

Unescape special characters encoded by JavaScript escape sequences

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}).

”`js var unescapeJs = require(‘unescape-js’);

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

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

console.log(unescapeJs(’\u{1F604}‘)); //

Related Repositories

unescape-js

unescape-js

Unescape special characters encoded by JavaScript escape sequences ...