babel-plugin-syntax-numeric-separator

Allow parsing of Decimal, Binary, Hex and Octal literals that contain a Numeric Literal Separator

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-syntax-numeric-separator
7.0.0-alpha.116 years ago6 years agoMinified + gzip package size for babel-plugin-syntax-numeric-separator in KB

Readme

babel-plugin-syntax-numeric-separator
Allow parsing of Numeric Literals (Decimal, Binary, Hex and Octal) that contain a NumericLiteralSeparator.

Installation

npm install --save-dev babel-plugin-syntax-numeric-separator

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["syntax-numeric-separator"]
}

Via CLI

babel --plugins syntax-numeric-separator script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-numeric-separator"]
});