{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.7195fa98","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.7195fa98","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.7195fa98"},"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.7195fa98","dist":{"shasum":"60af79cb2d1f5eddf8d474b76637d208112d3ea3","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.7195fa98.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/HvQCRA9TVsSAnZWagAAi88P/1EHKB7SBsi9trVbamuA\nTCpz0G56Z2qrflr66XfK2QFZTHKD51bAT7w15L8UcHeYIFC552XYz+JyEnuo\nRhcjIwD20It3hpndYAxztvsfijyHmB2dlztsDNv84T1k1YSNf7/9E+7gnvv2\n0yd9hypXPOI4DKMubp7xPLXLih5ENFbZ6saY5Bki/5IUcw+mZGkzxd4JUnag\nx4wgkcXHQ2ZPH2ZpM5FTgmZcYXvzUWmZVOtI/VSbjXPUHZJEBQMBL6loWIaG\nFTdCyl0uN6gcrk52tG0KViqKF+JK3tVl5naVPpqj8iGYerDctknWpwpstFUs\nLZUP1WYnzK550eP1EGnAVqybUC9M8RPdfl/w3ZoRq+0GDeBqwvbIWI5ZEB2b\nkY8a40D1SYT9792nHpCTKRQzaZ+TKvs7SMgc99+/SuSPKEwR6apvJLl7oGpZ\nDw/Hjv9p1FhHB/ZUI+FKa0ugPt0qTMJ2/l8IKMk0kGYiwdB11t83xqbdwqxX\n4wQDBrPFkyqrViaJh9CPfeTn224/IOGlHE1pdpMnudFxS8IywvbPfzHMORg0\nZ8Nm2wOHACyri4EpWHCoKJ444D/E1fpLUJvL4G8LcjO4m38GRyLE3Q7j03LB\naNMnWrcaqLfczrzr+2rPx82DXsEPeAD0egOumOTLTK+S4rD2MRvLbWsvPzzk\nG8Kt\r\n=TQER\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-JKe3btN/KAQjxOyIBpoPTnQ8p2tq2UmAnOFvkElmKVMyumwd48SYK77/qHwmkjW2yczgVM+mhQVD25bkF5FUoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOWJRydrNiQZkYQXQHgWnM3gf0pvfTWkIeuRSlUIQ7XQIgVyQox8tQq7Tw4ZrMNCDL+vDzXWrVXVQ20q7Wjf79GAk="}],"size":13286,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.7195fa98.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.7195fa98_1526496199338_0.7248656272125873"},"_hasShrinkwrap":false,"publish_time":1526496208608,"_cnpm_publish_time":1526496208608,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}