{"name":"babel-plugin-minify-simplify","version":"0.5.0-alpha.1cb46b73","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.1cb46b73","babel-helper-is-nodes-equiv":"^0.0.1","babel-helper-to-multiple-sequence-expressions":"^0.5.0-alpha.1cb46b73"},"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.1cb46b73","dist":{"shasum":"f72ed143abaf72c51b6cfa10caca7d2b5e2bcc4b","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-simplify/download/babel-plugin-minify-simplify-0.5.0-alpha.1cb46b73.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/FVQCRA9TVsSAnZWagAA3lEP/3Hez1fr1It7SLmREkSd\nEtMSj/VFzfNonUlnNiH8jffAzkq+PslED37hokvQXNXqSbXiZlKHOKLkixaD\nQYhD45PjRz0fy4yhpgUsidAJwjCpko/t+p+fA84/JpghIwwLUIxsCMXgtV6X\n7El7951jiIY8Pa/JgaZ21Dat0m+oo5sWV8CdD4VmtE1YPYtoPI/v2aVLvwke\nLj3u6crp9ufuvwFJojp7ilbvZWcoB13MA8Ye9KnPdky4W8sYy7OVRAxY3rPr\nBYSJoIpyX1Q6FdYyOvLMW6VYN5fnczuf8tJBWA1RpjF85YNfy4hSe1npp4qH\n7FmYGbAU2KlNxALjOr63GiE+LpTTYgPBvEzQ7QBYkZs9aciZdShlpNkZQrN6\ncELb6wfEk96EDO9P1Swra8uJD7zsouQ82LmD7oEk05GJJW7nge7F52sTeUyf\nZYxhD6f1+RQKUbnl8dZMMkHpwKapXp9abG8VccuFTMzTVCw+7BL8UfZPl+/F\ntLEA7bmvyb/tL7f57mJj9Uki1bTGeTZw2mqjp4gOWT1aVVhavXUEKdo9vc1J\nCWGFFkUr4dNUIZ5VQ6xCKF8NVXQlTK86HRSElbTE2LxG7H3+sBbAw7BqHhr3\n8vuwmxqMalgmC5oFpN10CHat/KzrKaG7KgEME5uLHTclyXJITHPb8K8i9HB/\niTX0\r\n=df+l\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-zRhxgqw1kXgDjCsExT7t/t2qrNldThEtjq42Vl9jZ7mIwdlt8X9VFe3itB3XIGGCC3/4VOEPIfq9zDtC5fthVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOn5FxQNZvmychshmhKn56gs+vm6++SSGZUxwICpn8HQIhALpJ7I9A6REn1hbM2C0KOe1p946uB6j+CXvaDfi0vZ6L"}],"size":13287,"noattachment":false,"key":"/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.0-alpha.1cb46b73.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.1cb46b73_1526486351744_0.30927341354476656"},"_hasShrinkwrap":false,"publish_time":1526486351804,"_cnpm_publish_time":1526486351804,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.1"}}