{"bugs":{"url":"https://github.com/babel/minify/issues"},"dist":{"shasum":"1bcd85b83b095381badd022d0616094ea8753f78","tarball":"https://registry.npmjs.org/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.5.0-alpha.bce578e2.tgz","fileCount":5,"integrity":"sha512-fCXmWKim1LgrGeS9oYwYxOYpjE0fOh79AehfoYh2G1B/h3udKHVPs0L7An9O9bB6MiuDwXnnhaiW7ONYaH7roQ==","signatures":[{"sig":"MEUCIAIUUp25rDmXdGTO8cOuCKs3G2B8BKWuIWJDhaoTtJhNAiEAzWpV7i4VuJnN3KBrcuoqKirBq164Nv6iQpPKTc/TOwE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+ZKECRA9TVsSAnZWagAAt4UP/0yWAVnMKOtEWDtT/rLg\nhm67HE1dkzIx75vbuTb81Eg199nYMGIMjJozxJF3r+1Z1+OzbZ7QK7Q7AtZS\nsWzp8H76dIgHS8mNCwS3I9CJF1qxgEl1LYpwhhOgMEx9L77qgjnJyOMGC2Ar\nsbds4yGmYc5hSrVnroNYgitL1RejaWLOYIXCXKN/z+cn5haIDEfDpDwhmk1R\nxJxPZs2E93SMa/qebuQ8s5nNM2ikxh8CvCzlZoJRZgzB/V3pnMI3PKsTO1xA\n702yUZ9UEzbcFAcpli9vfKBcSpA4beSEZgOhBii3+DJEUPoTxLYkY+wBQSUV\nACbM3pCauw9LJjh6bK661/RNn5WzaYHSvjnfrutZ/U/9qlbmuIsgC5vOkuVA\ngueTfls9IUFymffgZAykRZd4sU4/8QhoWZVsvzIT6PU+TPhxPIu9pwvF2FXO\nIrwkW49I8GHvtXxVNJEIWgD71BgvtAs/amn1hbYgjLq1ku8aivgT6Cfce/vI\nchI9zQpvDC8rCrBMnjX9/Ofg3IX+CTSvOYSUuhvqphUhBBgwmO9QPvrt0Cyo\nuAhBAWd/+kpzIHqj+kRwoaZbzBwXBh0Lq/F0ZYCUgKFsjE833uKmu93PvPNb\nVuOkiUDvM+/WX4eQfhTGtgRQBTV9K5MtymCvhhDEe+nayQlvNMm7pSWn/9kN\nTREo\r\n=TepS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"babel-plugin-minify-replace","author":{"name":"amasad"},"readme":"# babel-plugin-minify-replace\n\nConfigurable \"search and replace\" plugin. Replaces matching nodes in the tree with a given replacement node. For example you can replace `process.NODE_ENV` with `\"production\"`.\n\n## Example\n\n**Options**\n\n```javascript\n[\n  {\n    identifierName: \"__DEV__\",\n    replacement: {\n      type: \"numericLiteral\",\n      value: 0,\n    },\n  },\n]\n```\n\n**In**\n\n```javascript\nif (!__DEV__) {\n  foo();\n}\nif (a.__DEV__) {\n  foo();\n}\n```\n\n**Out**\n\n```javascript\nif (!0) {\n  foo();\n}\nif (a.__DEV__) {\n  foo();\n}\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-minify-replace --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n// without options\n{\n  \"plugins\": [\"minify-replace\"]\n}\n```\n\n```json\n// with options\n{\n  \"plugins\": [\n    [\"minify-replace\", {\n      \"replacements\": [{\n        \"identifierName\": \"__DEV__\",\n        \"replacement\": {\n          \"type\": \"booleanLiteral\",\n          \"value\": true\n        }\n      }]\n    }]\n  ]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins minify-replace script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"minify-replace\"]\n});\n```\n","license":"MIT","_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"homepage":"https://github.com/babel/minify#readme","keywords":["babel-plugin"],"repository":{"url":"https://github.com/babel/minify/tree/master/packages/babel-plugin-minify-replace","type":"git"},"description":"Configurable \"search and replace\" plugin. Replaces matching nodes in the tree with a given replacement node. For example you can replace `process.NODE_ENV` with `\"production\"`.","directories":{},"maintainers":[{"name":"babeljs","email":"asciiguyfieri@gmail.com"},{"name":"boopathi","email":"me@boopathi.in"},{"name":"hzoo","email":"hi@henryzoo.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"vignesh.shanmugam","email":"vignesh.shanmugam22@gmail.com"}],"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/babel-plugin-minify-replace_0.5.0-alpha.bce578e2_1526305411855_0.13301003452645999","host":"s3://npm-registry-packages"},"_id":"babel-plugin-minify-replace@0.5.0-alpha.bce578e2","version":"0.5.0-alpha.bce578e2"}