{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.6889f45d","description":"> Simplifies code for minification by reducing statements into expressions and making expressions uniform where possible.","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"amasad"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-plugin-minify-simplify"},"dependencies":{"babel-helper-flip-expressions":"^0.5.0-alpha.6889f45d","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.6889f45d"},"readmeFilename":"README.md","readme":"# babel-plugin-minify-simplify\n\n> Simplifies code for minification by reducing statements into expressions and making expressions uniform where possible.\n\n## Example\n\n### Reduce statement into expression\n\n**In**\n\n```js\nfunction foo() {\n  if (x) a();\n}\nfunction foo2() {\n  if (x) a();\n  else b();\n}\n```\n\n**Out**\n\n```js\nfunction foo() {\n  x && a();\n}\nfunction foo2() {\n  x ? a() : b();\n}\n```\n\n### Make expression as uniform as possible for better compressibility\n\n**In**\n\n```js\nundefined\nfoo['bar']\nNumber(foo)\n```\n\n**Out**\n\n```js\nvoid 0\nfoo.bar\n+foo\n```\n\n\n## Installation\n\n```sh\nnpm install babel-plugin-minify-simplify --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"minify-simplify\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins minify-simplify script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"minify-simplify\"]\n});\n```\n","_id":"babel-plugin-minify-simplify@0.5.0-alpha.6889f45d","dist":{"shasum":"33f6e42773e2435c735e75c4cb1259f43deaf81d","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.6889f45d.tgz","fileCount":11,"unpackedSize":58566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+gKGCRA9TVsSAnZWagAA/4QP/j30ekkvEbffey7EAPU7\nZQV3kDwROVMaZFo9jbFD2KtS4mBjHOC/HY1JrM73YDbv1Dh5LR8t8S0xCkiN\nS2XcKG9ci2tujWSbKZRu0pzOd7ozelpRTSPPa/1LrUc0OAypOiC0Id3UzfPP\n+ll3dWNLzFqFZBsUwHA8FioPNptqBqNeEgOoRQsO2E0gqqO36QLpIMor0Fk6\n/suHMHr7LxL+R0IY3Oixd0idFp5GlRWCwpThJ4IZZJFNqe10Oci5Z0N3eGUv\nYmYV5N4f4WUagjyQg2pWgRGAMtzdxltd0Mm4U2nw310+RAAw0/4E3Y+RQjFT\nuueuyL2BT8HRanNgckCFbBUJUnoUwHBncHcdcOuOCyLLQ8eWNlD1QN7akXDB\nAHUhCmJTSzFbaNxdsvde8qPIqYonQ+SoUDSmevb9pMpp0bk3fIucAxArmVK2\nlavFvJF+ir6vrRV47gJLzLstJNUKOo5GYHxu6tTXLRREafgk/+C8sYhWPfto\nt3ZR/SuNKPya+CEGzlIOqPnCtRzhVq063SHiaULMlRxCw1Pk/uh7/Ll2JpuN\nlc1b2HOoTN30tTS2y/EQQAUMiGkeq45A9a2M5ali7PxJtVdmteEgW2hkM+Jt\nTieFrXyUJCgMhrzWbh3gzPr4UyIT+bEvOg+J3EK2yL8yRaAEed/AAbra002S\nBNFP\r\n=lMHR\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-2iL87x/n6bOdcv7eEPx/Lnb/TLfMoBwVWQEdVvIvBjj2LEsjKNvhDtDdBbKhuPg9Uaw7iF2kwXTe2+qUv6sD6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL/caxUd7mHE2861cx5ZJdTpDrU3Fk5MAagrdK8LleCQIgJNJqdZosTskldq+LaBBT3z752uZ/ZYDB039gNvv8o6A="}],"size":13291,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.6889f45d.tgz"},"maintainers":[{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"loganfsmyth@gmail.com","name":"loganfsmyth"},{"email":"vignesh.shanmugam22@gmail.com","name":"vignesh.shanmugam"}],"_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-minify-simplify_0.5.0-alpha.6889f45d_1526334085744_0.9119666940757187"},"_hasShrinkwrap":false,"publish_time":1526334085822,"_cnpm_publish_time":1526334085822,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}