diff options
Diffstat (limited to 'node_modules/babel-plugin-transform-simplify-comparison-operators/README.md')
| -rw-r--r-- | node_modules/babel-plugin-transform-simplify-comparison-operators/README.md | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/node_modules/babel-plugin-transform-simplify-comparison-operators/README.md b/node_modules/babel-plugin-transform-simplify-comparison-operators/README.md deleted file mode 100644 index 3cd9f2f9..00000000 --- a/node_modules/babel-plugin-transform-simplify-comparison-operators/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# babel-plugin-transform-simplify-comparison-operators - -Convert `===` and `!==` to `==` and `!=` if their types are inferred to be the same. - -## Example - -**In** - -```javascript -typeof foo === "object"; -``` - -**Out** - -```javascript -typeof foo == "object"; -``` - -## Installation - -```sh -npm install babel-plugin-transform-simplify-comparison-operators --save-dev -``` - -## Usage - -### Via `.babelrc` (Recommended) - -**.babelrc** - -```json -{ - "plugins": ["transform-simplify-comparison-operators"] -} -``` - -### Via CLI - -```sh -babel --plugins transform-simplify-comparison-operators script.js -``` - -### Via Node API - -```javascript -require("@babel/core").transform("code", { - plugins: ["transform-simplify-comparison-operators"] -}); -``` |
