{"name":"babel-plugin-minify-constant-folding","version":"0.5.0-alpha.e9f96ffe","description":"Tries to evaluate expressions and inline the result.","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-constant-folding"},"dependencies":{"babel-helper-evaluate-path":"^0.5.0-alpha.e9f96ffe"},"readmeFilename":"README.md","readme":"# babel-plugin-minify-constant-folding\n\nTries to evaluate expressions and inline the result.\n\n## Example\n\n**In**\n\n```javascript\n\"a\" + \"b\"\n2 * 3;\n4 | 3;\n\"b\" + a + \"c\" + \"d\" + g + z + \"f\" + \"h\" + \"i\"\n\n[a, b, c].concat([d, e], f, g, [h]);\n[\"a\", \"b\", \"c\"].join();\n[\"a\", \"b\", \"c\"].join('@');\n[1, 2, 3].length;\n[1, 2, 3][1];\n[1, 2, 3].shift();\n[1, 2, 3].slice(0, 2);\n[a, b, c].pop();\n[a, b, c].reverse();\n\"a,b,c\".split(\",\");\n\"abc\"[0];\n\"abc\".charAt();\n\"abc\".charAt(1);\n\"abc\".length;\n```\n\n**Out**\n\n```javascript\n\"ab\";\n6;\n7;\n\"b\" + a + \"cd\" + g + z + \"fhi\";\n\n[a, b, c, d, e, f, g, h];\n\"a,b,c\";\n\"a@b@c\";\n3;\n2;\n2;\n[1, 2];\nc;\n[c, b, a];\n[\"a\", \"b\", \"c\"];\n\"a\";\n\"a\";\n\"a\";\n\"b\";\n3;\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-minify-constant-folding\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"minify-constant-folding\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins minify-constant-folding script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"minify-constant-folding\"]\n});\n```\n\n## Options\n\n+ `tdz` - Account for TDZ (Temporal Dead Zone)\n","_id":"babel-plugin-minify-constant-folding@0.5.0-alpha.e9f96ffe","dist":{"shasum":"d4b4c444ca9716d3fd34093fc7298b2585e64a73","tarball":"http://registry-npm.ywwl.com/babel-plugin-minify-constant-folding/download/babel-plugin-minify-constant-folding-0.5.0-alpha.e9f96ffe.tgz","fileCount":6,"unpackedSize":11604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6s10CRA9TVsSAnZWagAAG/gP/jtjA186kxEdHv69W0DW\n6TtNdFZhUiERVJzz+FnL924WUvzSPKrFPeS3eYN30dK1LX++WALyU0o0w2dM\nZGP+oKs2MFYS3X3y7o/NBDkZmfBfbvyZQrSJYt39Y8DnpByT17BUigWQmS3+\n3L+7LvF28LPjgPh0cKP9TNjUrTkBxMgMXex6ZpCnQRonybtfy6hCXTRZD8N1\nZgQ5rnWIEziYRbLTqh15g6oWHe4rUlbXER/gnbrPRNgHIhX+gzkmt7CyE4lK\nEkpynQUMJSZhTbUXaJWK9Ytij52RbbjZ7mH/gY8TL/nj7aEil06i8oZkHJjS\n7XM/hN40GJP0e3efjvUPex37kEEY54E3+gH8wmIXxqL0BiK+P0w1BcnwoWrd\nqW8bAZEgREJz8nHPvh9ROuDKlXRF24WiFGrWz4vBIfsQ6bb8DwfqgZ7YhkVm\nOQyjRyDIDZ4oD1oLK1NVBmzeOFY+vKZVBusW5L5sPBuLMz/A+LIbrquhwguT\nbojyW6cD5TawJvE/i0Fm6IMNmhuwIz66VRUf5yiKgA6g92ZrEZKePNSq1IVs\n8OU0oHo+7vPUBlBcf4d8RWfd/G9QNQShBKznb2+5EdV6gUfBXcOjOfPIWQJ0\n7l3oezXbxdBHdmwxg+wK9U9GbOjxARtSPMSbBlBUxhodhVWRA1KJudLnjxfl\nFq5W\r\n=WneG\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-Isjy/CKBsvZmh6dCXFMrkRuwsnkZU8LviKU8rUjgZmwL5cia1EnFFbd1qfcQ2dbJ/KHlbPw2mHpS66HkQP/PWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICW40cqVwelIsfCdRBZI2GJFwPWf1TjxfYroZcBFYW/iAiBINOh2JfhuYw4SLJ/O2VfStoEIooj+DLCbZUlBP1jPMA=="}],"size":3510,"noattachment":false,"key":"/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.5.0-alpha.e9f96ffe.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-constant-folding_0.5.0-alpha.e9f96ffe_1525337460535_0.3647499761567845"},"_hasShrinkwrap":false,"publish_time":1525337460599,"_cnpm_publish_time":1525337460599,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.5.0"}}