aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/plugin-syntax-numeric-separator
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/plugin-syntax-numeric-separator')
-rw-r--r--node_modules/@babel/plugin-syntax-numeric-separator/README.md36
-rw-r--r--node_modules/@babel/plugin-syntax-numeric-separator/lib/index.js28
-rw-r--r--node_modules/@babel/plugin-syntax-numeric-separator/package.json20
3 files changed, 84 insertions, 0 deletions
diff --git a/node_modules/@babel/plugin-syntax-numeric-separator/README.md b/node_modules/@babel/plugin-syntax-numeric-separator/README.md
new file mode 100644
index 00000000..3976234f
--- /dev/null
+++ b/node_modules/@babel/plugin-syntax-numeric-separator/README.md
@@ -0,0 +1,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"]
+});
+```
diff --git a/node_modules/@babel/plugin-syntax-numeric-separator/lib/index.js b/node_modules/@babel/plugin-syntax-numeric-separator/lib/index.js
new file mode 100644
index 00000000..54ec6313
--- /dev/null
+++ b/node_modules/@babel/plugin-syntax-numeric-separator/lib/index.js
@@ -0,0 +1,28 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+
+function _helperPluginUtils() {
+ const data = require("@babel/helper-plugin-utils");
+
+ _helperPluginUtils = function _helperPluginUtils() {
+ return data;
+ };
+
+ return data;
+}
+
+var _default = (0, _helperPluginUtils().declare)(api => {
+ api.assertVersion(7);
+ return {
+ manipulateOptions(opts, parserOpts) {
+ parserOpts.plugins.push("numericSeparator");
+ }
+
+ };
+});
+
+exports.default = _default; \ No newline at end of file
diff --git a/node_modules/@babel/plugin-syntax-numeric-separator/package.json b/node_modules/@babel/plugin-syntax-numeric-separator/package.json
new file mode 100644
index 00000000..e5ba3525
--- /dev/null
+++ b/node_modules/@babel/plugin-syntax-numeric-separator/package.json
@@ -0,0 +1,20 @@
+{
+ "name": "@babel/plugin-syntax-numeric-separator",
+ "version": "7.0.0-beta.47",
+ "description": "Allow parsing of Decimal, Binary, Hex and Octal literals that contain a Numeric Literal Separator",
+ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-numeric-separator",
+ "license": "MIT",
+ "main": "lib/index.js",
+ "keywords": [
+ "babel-plugin"
+ ],
+ "dependencies": {
+ "@babel/helper-plugin-utils": "7.0.0-beta.47"
+ },
+ "peerDependencies": {
+ "@babel/core": "7.0.0-beta.47"
+ },
+ "devDependencies": {
+ "@babel/core": "7.0.0-beta.47"
+ }
+}