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

babel-plugin-transform-es2015-literals

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-literals

Compile ES2015 unicode string and number literals to ES5

  • 7.0.0-alpha.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
643K
decreased by-62.34%
Maintainers
6
Weekly downloads
 
Created
Source

babel-plugin-transform-es2015-literals

Compile ES2015 unicode string and number literals to ES5

Example

In

var b = 0b11; // binary integer literal
var o = 0o7; // octal integer literal
const u = 'Hello\u{000A}\u{0009}!'; // unicode string literals, newline and tab

Out

var b = 3; // binary integer literal
var o = 7; // octal integer literal
const u = 'Hello\n\t!'; // unicode string literals, newline and tab

Installation

npm install --save-dev babel-plugin-transform-es2015-literals

Usage

.babelrc

{
  "plugins": ["transform-es2015-literals"]
}

Via CLI

babel --plugins transform-es2015-literals script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-literals"]
});

Keywords

FAQs

Package last updated on 17 Apr 2017

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