Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unescape-js

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unescape-js

Unescape JavaScript special characters

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
847K
increased by6.68%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 17 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc