{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.2ec8ff72","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.2ec8ff72","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.2ec8ff72"},"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.2ec8ff72","dist":{"shasum":"ee19f9256511d0a37f22eae24c9fe33028fa2a22","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.2ec8ff72.tgz","fileCount":11,"unpackedSize":58673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBB6pCRA9TVsSAnZWagAAolEP/14Fi3bVjsUZT6ehWoT8\nFFBMJQPWuhT1kPo2ctcT9RHNgEJXZJ0l60oXktXUELPDa/x1W37W+rQnrz0N\nZCSd/vkkLk0K2koytP3msHyZC1Em9lekCQ/Xso6Fv1+Xr+D1sfQpc2O4rxbW\nZPWAlrmb+TKbtC6voKnCyI80PmV4CsPBpakQQxHb3gTrARstUOii3lChu72X\n8zmyKd0kKIhToNwCjWb0xDgTnnDpvQvpfY5mGqMb8c+UdIXsxOek6rg9idDO\nrP8PoCVgM+/TD7z87NExI+krBBMxReRYBFpvqJYD8+ij/Mok1QLhhakYmSKz\nhE8xxTWqmDhO/Bz6nQSRsJ7Ue82LK9MsAfs5EfBX/vCye+9BMdQuLlgSuZ5i\nSKxMpuQP7OWs7FbwGtSLbscEAcN59hiXkuyDZob/DbHbktHwLCPNvwNNHVLy\nk8wF4cHDWVSd9rgIgnyxuPtWbjiBb+Gake7JQ48t1m8vZZ4MdIs7hZsf0Jbj\nGzRZfgPsQdm/FFOcGOq/cqTo1cFtFkgAyj7VgEA3miwA99sYB8qqzwI6p19J\nKN/u4tpCpfmYpaEyvpnE6gMRG30UyfeIyWO32WRUURkQ9RXqIkdKi/uCqliq\nTFIBeiQLPDh9t8yF5oe5sSHkqO3leNeU0Tcm3w+PPYhnYm+dwutQSVSu6Vch\nnweV\r\n=rYDK\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-oxNcP6TMrjOstR3IjJ3JsTt4SFnMPpNrxnt4Q0scpUMkoazXYo/tVyRN36gUk16X/38syF1HS5OFZ3u23HrlOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZ/ex+VIPnmOjAwVOP336Qyx9G8b2uhT7F/dAc+xYQIwIgDVkNTfur83kTYMlp26alm0e9oIyeP8awmYYHcQUOJUs="}],"size":13331,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.2ec8ff72.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.2ec8ff72_1526996648845_0.7237684764311751"},"_hasShrinkwrap":false,"publish_time":1526996648932,"_cnpm_publish_time":1526996648932,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}