{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.9e986477","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.9e986477","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.9e986477"},"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.9e986477","dist":{"shasum":"7e822bd9173f8c398fe65d79de642d996a094783","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.9e986477.tgz","fileCount":11,"unpackedSize":57835,"npm-signature":"-----BEGIN PGP SIGNATURE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6RDcUVw4tUWTvpO4uuYCkufSWriy+teUMPLEHc0"}],"size":13123,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.9e986477.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.9e986477_1525393030292_0.0963216872083843"},"_hasShrinkwrap":false,"publish_time":1525393030401,"_cnpm_publish_time":1525393030401,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}