aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/plugin-syntax-numeric-separator/README.md
blob: 3976234f96fd95a136e21d0210ac38a61bd7d339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# @babel/plugin-syntax-numeric-separator

> Allow parsing of Numeric Literals (Decimal, Binary, Hex and Octal) that contain a _NumericLiteralSeparator_.


## Installation

```sh
npm install --save-dev @babel/plugin-syntax-numeric-separator
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "plugins": ["@babel/plugin-syntax-numeric-separator"]
}
```

### Via CLI

```sh
babel --plugins @babel/plugin-syntax-numeric-separator script.js
```

### Via Node API

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