{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.55276695","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.55276695","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.55276695"},"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\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.55276695","dist":{"shasum":"49f48026be3688e8f3d3cfb7c0039b60a40f198f","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.55276695.tgz","fileCount":11,"unpackedSize":60972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6KgxCRA9TVsSAnZWagAAK6sQAJopRowxFG8GULm1wo1p\nbkaC4+lfqk2QwTyLEiZ0QXu5+S/2Ffip9CmSfcYvbRK3zc+uQBdQWo2jaQe4\nYLt4RtcXbZU97Cmn+1pU1eyt3ZCs9h2zy3D+cTzizEVxd1uVwbRpJQCPdqC/\nvcyPuHqYhDsGSMmkxmn/C0pWJ0xc26TmJFlzOo4Yv7BZo0yfTz2iR0/06rGA\nfy07SxPWVkGz9/sZHnzYXBWlh2NlUXaG6Waus7+MV2VASIMswJmHauGnKRdl\n4q0nnerzjsuFXEtu1z3bfCfYap8/WxnBoC1rybjLjh8JbSRKWDIsjHSNGqCM\nLdqa3miKV3GVqcE4XEkPP+ZWPtv0TJ4rAReUeeTmmZ3Jtptx75uMi2ywH3ja\nrnz1wVLCCmS1ENpfJhXBglxP9///VRXAz53ZbV1rMvDRp3WuI+7w82xLSzf4\nzQQa3Cg4m1x2ekfz4HBgRsql7MQbdZrF1Hhq3rQJtuLzxE96ILGgI7YpJPzF\npcJSl6OpBvMdiXenGxJNcntLNs/xji2/g0C5CnA3c1m0gReG6ygqHW0K6UsY\nRypyeYGx8eeEEE1XRwwYwO3IX1qnfcAxjgAuN4Iatdd68v+CJM4cqE+RsZsQ\n9dGUVs8AtS5CUZyx4PCKcLttod5TIOCO+2o4dLaNvSc5kowVZ6eDSlaZHoXV\nizy9\r\n=Wup3\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-XHCyGHCydd0AgMJuuoQtLut6iOWShS3tLp8940rFonwebCQzUA7q2KXMqAbx8LBjwJUOelMtZ9JJi/4lRE+dOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBONRgvu9VWP6Ui4c8o2RSfyOxCkGYQ8s7G16iQ5CaWoAiEAly+kORl/oXrCiv0h5aDcgAuYtj+V+ruId92eYxe90jY="}],"size":13689,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.55276695.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.55276695_1525196849106_0.8653834666657403"},"_hasShrinkwrap":false,"publish_time":1525196849209,"_cnpm_publish_time":1525196849209,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}