{"name":"babel-plugin-dev-expression","version":"0.2.0","description":"A mirror of Facebook's dev-expression Babel plugin","main":"dev-expression.js","repository":{"type":"git","url":"git+https://github.com/4Catalyzer/babel-plugin-dev-expression.git"},"keywords":["facebook","react","babel","dev-expression"],"author":{"name":"Jimmy Jia"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/4Catalyzer/babel-plugin-dev-expression/issues"},"homepage":"https://github.com/4Catalyzer/babel-plugin-dev-expression#readme","gitHead":"dbe0fe82d3713d6ec1704409ce69d1f0d1f1385e","_id":"babel-plugin-dev-expression@0.2.0","scripts":{},"_shasum":"8471b211b9af45b1355042b1bf9b4fb3345bc96f","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"taion","email":"tesrin@gmail.com"},"dist":{"shasum":"8471b211b9af45b1355042b1bf9b4fb3345bc96f","tarball":"http://registry-npm.ywwl.com/babel-plugin-dev-expression/download/babel-plugin-dev-expression-0.2.0.tgz","integrity":"sha512-M1RXjOwh0upNw52Eo9STqNKGPjHexBuwuaPjKgy4agQ5VXa+INz4++OzAWQroGN0zFzGSRrXeMGWybsIE7EqkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoSZ3zeHVzqW3yquVtDn9Z+MCDbXL2zQHp20pyg8iRIgIgPvMCJVZpkxldJVhw7DK2Y0jTxg49N6drxFjV8aRaO3s="}],"size":4915,"noattachment":false,"key":"/babel-plugin-dev-expression/-/babel-plugin-dev-expression-0.2.0.tgz"},"maintainers":[{"name":"taion","email":"tesrin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/babel-plugin-dev-expression-0.2.0.tgz_1457536914821_0.9706632825545967"},"directories":{},"readme":"# babel-plugin-dev-expression [![npm version](https://badge.fury.io/js/babel-plugin-dev-expression.svg)](https://badge.fury.io/js/babel-plugin-dev-expression)\n\nA mirror of Facebook's dev-expression Babel plugin.\n\nThis plugin reduces or eliminates development checks from production code.\n\n## `__DEV__`\n\nReplaces\n\n```js\n__DEV__\n```\n\nwith\n\n```js\nprocess.env.NODE_ENV !== 'production'\n```\n\n**Note:** The `dev-expression` transform does not run when `NODE_ENV` is `test`. As such, if you use `__DEV__`, you will need to define it as a global constant in your test environment.\n\n## `invariant`\n\nReplaces\n\n```js\ninvariant(condition, argument, argument);\n```\n\nwith\n\n```js\nif (!condition) {\n  if (\"production\" !== process.env.NODE_ENV) {\n    invariant(false, argument, argument);\n  } else {\n    invariant(false);\n  }\n}\n```\n\nRecommended for use with https://github.com/zertosh/invariant or smaller https://github.com/alexreardon/tiny-invariant.\n\n## `warning`\n\nReplaces\n\n```js\nwarning(condition, argument, argument);\n```\n\nwith\n\n```js\nif (\"production\" !== process.env.NODE_ENV) {\n  warning(condition, argument, argument);\n}\n```\n\nRecommended for use with https://github.com/r3dm/warning or smaller https://github.com/alexreardon/tiny-warning.\n","publish_time":1457536919638,"_cnpm_publish_time":1457536919638,"dist-tags":{"latest":"0.2.3"}}