miraks / babel-plugin-strict-equality

Transform `==` and `!=` to `===` and `!==`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

babel-plugin-strict-equality

Transform == and != to === and !==

Installation

$ npm install --save-dev babel-plugin-strict-equality

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["strict-equality"]
}

Via CLI

$ babel --plugins strict-equality script.js

Via Node API

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

License

MIT

About

Transform `==` and `!=` to `===` and `!==`

License:MIT License


Languages

Language:JavaScript 100.0%