{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.b4285271","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.b4285271","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.b4285271"},"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.b4285271","dist":{"shasum":"b12b083d2ae8a25fda4a4d434ef1bc141a3b9922","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.b4285271.tgz","fileCount":11,"unpackedSize":57835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6OkxCRA9TVsSAnZWagAAzz8P/3V8qD1UILHl6SKe/jp8\nRsiA7p85f0MGxxKZRwnvvi/9zyznZ6V9vrswkPOoYbo5ZPK1i3L2OqwZMPu5\nS9GFg8PmpdHhdqktvfJzfey6PkMVctxTUuKrMknCjA1C2c+P0y6iSZPUonwP\nC8Mr0INdewuxDVPX9A3lT9yPZMD+k76L6MLlUeg+d1tZCZpJWGsB1WwH01sK\n760DMjYgQz9A6svjdIu1WTJCXlf5fNDbm/Si5EWwTY6mqj8dp9J8QeoGt2u8\n5xtPgsCRTE44nolfcV4+OIAqhB/PHuu/qePcop5xFOo2RrWgheM1HpvHJ4/Q\n710qZqkP7GSAYEHX9ImWJ6GVvLKztReFJdDPFAb4qQpInUmStMVAoO1R8zNY\nt+LGoOp7VwQmkMXvAZxbE+ttNSiP9aib4S5K7g0uHmMRo5yMwEL50SHUElML\n/7jT/x+n/ygtSTkcrmLAyDE0M8lVhyQcd4AX0GwCNEX1Yt4b4sOoGm9s08mb\nyz7ZjNYbxlNS1r+/hXP6C+YH5u/qMYavSTyapKWM4ChK7jOlrRusVOZq5wlX\nsXX7BYRGawRiO7AAvhMRHJJYTZpeen3t8whefL3xB6m0NT+lEkZLZ0crqgRY\nFN55ySoC8IuLjIRqyFKFpkkaewlGotGTVAeMnClvQRxLA+A56zmNaP+PuLuC\nOE6Q\r\n=r2IO\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-GAP2CBZhgUtODWXgcHRRwkGPK4S/ZEomVYS0WUjphe0GUb6529Qq5E/8OMB44aKT/dBm9ZiYT9RnoS72r74efw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL0ECT1d1QyTH+xgNf2jaGdorI/4BpSIW6JZocUwwHDwIgdvFK8pwgeXy0CB9oxcrVV5X35MveiRAP9PJfCLsYgqA="}],"size":13124,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.b4285271.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.b4285271_1525213489249_0.08810419398559577"},"_hasShrinkwrap":false,"publish_time":1525213489395,"_cnpm_publish_time":1525213489395,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}