{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.85c9b6d8","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.85c9b6d8","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.85c9b6d8"},"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.85c9b6d8","dist":{"shasum":"a6c21cb6c483ec5184f3f0ed34403cf1d87a28b8","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.85c9b6d8.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+v8hCRA9TVsSAnZWagAA1SIP/0dTM6FR3amoQla9aoA7\nymAbkDnnJ2NmfZOiJnDn6upBzxomtwmN0BrDh9HMZ5/1Qi5ViaAQmdK3p4Gg\nYQq1w+EUb36s53mkqKDMjoqQMAg6H5/IXgRS0fN7U4R4V7HXmNyCAFbAgE/l\ngtJy0Zd6ZWBcE2YqbBhDI07okp8wKY12riRUkqkZNa46Uu+EeUzwggGp/F0m\n7UZ/BSJNBl3/cFgpbmZRwk17w/EWiA/czU5wOytspweZM1duIhtg0YIv/VWz\n4wCNr22V55m3OtgvwQ+8GwcQNjDf8oUJ1spP8dsu8y88hGKCbh6Ch/H8gRpS\nSaO52ahh9lrS74CM/BBx6ARnedFw0xjSMnen8xWM10FRq2sOryi7Iap8XwMv\nCYT54sF29IYsSGNGmuOb60wcQse/MzwVdvICFNuzAV76n0aR7gaRTq9NpVgi\nqm7khkAFz3dXBqqYQOK0erjgAoLDZZ7oOAG3A0iJini64b4dW6WKkqxCCL8C\nNdDomZae2cOfdEqRRZAiPfRxftNc0A8TM3Px3HK5ShBjSJpVium6AwNNNBl4\nkVMVd/BxGjupw76F4VkGXm7xgBTD4TtEcY1YE1N7GVnxHmEZHRilb/EBbp9+\nkUnYmfrx3PBaadS7NMmD2m+my1IQKia0uJkNFhpMeyjd4sGjKVpAPSonkLWb\nGT/2\r\n=0xTd\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-FeSqTTH/lfYnGwxlkQeMxNyEOT+/BVqOS4IWt62ciYvok8TR/svpNFfofhRYgN51eqooYx7YKTYb2nQk9cp0BQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICGyKaX6fQ5NArB80Z2dsd3Ga1tCQMPJ9JR7e2qDIe93AiAXilcm9xh+u+CNcsQWGWFvHQcImFZERXS1MZ8bY+G9Zg=="}],"size":13285,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.85c9b6d8.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.85c9b6d8_1526398753241_0.392332597335868"},"_hasShrinkwrap":false,"publish_time":1526398753701,"_cnpm_publish_time":1526398753701,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}