{"name":"babel-plugin-transform-dev-warning","version":"0.1.3","description":"Remove development warning from production code","main":"lib/index.js","scripts":{"test":"istanbul test _mocha","build":"rm -rf lib && mkdir lib && babel src --out-dir lib","prepublish":"npm run build"},"repository":{"type":"git","url":"https://github.com/oliviertassinari/babel-plugin-transform-dev-warning.git"},"keywords":["babel","babel-plugin","warning","dev"],"author":{"name":"Olivier Tassinari","url":"https://github.com/oliviertassinari"},"license":"MIT","bugs":{"url":"https://github.com/oliviertassinari/babel-plugin-transform-dev-warning/issues"},"devDependencies":{"@babel/cli":"^7.0.0-beta.35","@babel/core":"^7.0.0-beta.35","@babel/preset-env":"^7.0.0-beta.35","@babel/register":"^7.0.0-beta.35","babel-eslint":"^8.0.0","eslint":"^4.1.0","istanbul":"^0.4.5","mocha":"^4.0.0"},"_id":"babel-plugin-transform-dev-warning@0.1.3","dist":{"shasum":"de0c846ba6a98ecfef64a44af0cd4dc87487970d","integrity":"sha512-FNy5JXbNnGEQ/WRN7DkfuDP+/i5/xbybjYT70pCtQxfhVgZFiHYeGzenW9IM3pBSTxCOQOyY9b8nV+jw9ep3Pw==","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-dev-warning/download/babel-plugin-transform-dev-warning-0.1.3.tgz","fileCount":17,"unpackedSize":6788,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCqnMBPaJ0dxlo/T7YBRtHehQm+2asOXDZnPkm+vLDvHgIge1B668KTbpDpG3EOQUe8tZRB8uOKi/aN3FGXZUdmXd8="}],"size":2899,"noattachment":false,"key":"/babel-plugin-transform-dev-warning/-/babel-plugin-transform-dev-warning-0.1.3.tgz"},"_npmUser":{"name":"oliviertassinari","email":"olivier.tassinari@gmail.com"},"directories":{},"maintainers":[{"name":"oliviertassinari","email":"olivier.tassinari@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/babel-plugin-transform-dev-warning_0.1.3_1758380551908_0.23528976809901736"},"_hasShrinkwrap":false,"readme":"# Babel Plugin for removing warning call\n\n[![Build Status](https://travis-ci.org/oliviertassinari/babel-plugin-transform-dev-warning.svg?branch=master)](https://travis-ci.org/oliviertassinari/babel-plugin-transform-dev-warning)\n[![npm version](https://img.shields.io/npm/v/babel-plugin-transform-dev-warning.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-dev-warning)\n[![npm downloads](https://img.shields.io/npm/dm/babel-plugin-transform-dev-warning.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-dev-warning)\n\nThis plugin removes development warning from production code.\nIt's recommended to be used with https://github.com/BerkeleyTrue/warning.\n\n## Example\n\n**In**\n```js\nwarning(condition, argument, argument);\n```\n\n**Out**\n```js\nif (process.env.NODE_ENV !== 'production') {\n  warning(condition, argument, argument);\n}\n```\n\n## Installation\n\n```sh\n$ npm install --save-dev babel-plugin-transform-dev-warning\n```\n\n## Usage\n\n#### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"env\": {\n    \"production\": {\n      \"plugins\": [\"transform-dev-warning\"]\n    }\n  }\n}\n```\n\n#### Via CLI\n\n```sh\n$ babel --plugins transform-dev-warning script.js\n```\n\n#### Via Node API\n\n```js\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"transform-dev-warning\"]\n});\n```\n\n## License\n\nMIT\n","publish_time":1758380552114,"_cnpm_publish_time":1758380552114,"dist-tags":{"latest":"0.1.3"}}