{"name":"babel-plugin-dev-expression","version":"0.2.1","description":"A mirror of Facebook's dev-expression Babel plugin","files":["*.js","PATENTS"],"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":"45ec24789afbc543cc3cf94b5c7a3c1b8f0d640e","_id":"babel-plugin-dev-expression@0.2.1","scripts":{},"_shasum":"d4a7beefefbb50e3f2734990a82a2486cf9eb9ee","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"taion","email":"tesrin@gmail.com"},"dist":{"shasum":"d4a7beefefbb50e3f2734990a82a2486cf9eb9ee","tarball":"http://registry-npm.ywwl.com/babel-plugin-dev-expression/download/babel-plugin-dev-expression-0.2.1.tgz","integrity":"sha512-vJFu/ZnzKDNFsAqEHho7c76f0z5zlPcdlU0FsDyummCaYkMqbR4/H6fAgpMOznuXtnCFQDPMgo5ArFY4idNmhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHK1vgEufE+avZoPfwrXIWRz6rj4YlhofAEQijk6ierYAiBz28IlJsDBsYTujnGoRXKsFkNt2iISfLgf/dLxflj+5g=="}],"size":3511,"noattachment":false,"key":"/babel-plugin-dev-expression/-/babel-plugin-dev-expression-0.2.1.tgz"},"maintainers":[{"name":"taion","email":"tesrin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-dev-expression-0.2.1.tgz_1457537094202_0.25089043099433184"},"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":1457537096564,"_cnpm_publish_time":1457537096564,"dist-tags":{"latest":"0.2.3"}}