{"name":"babel-plugin-closure-elimination","version":"1.3.1","description":"Removes closures from your JavaScript in the name of performance.","main":"lib/index.js","scripts":{"build":"babel -d ./lib ./src","build-eliminated":"cd src && babel --plugins ../lib -d ../lib ./","prepublishOnly":"npm run test","pretest":"npm run build && npm run build-eliminated","test":"mocha test/index.js","watch":"mocha --watch"},"repository":{"type":"git","url":"git+https://github.com/codemix/babel-plugin-closure-elimination.git"},"keywords":["babel","babel-plugin","closure-elimination","closure","optimization"],"author":{"name":"Charles Pick","email":"charles@codemix.com"},"license":"MIT","bugs":{"url":"https://github.com/codemix/babel-plugin-closure-elimination/issues"},"homepage":"https://github.com/codemix/babel-plugin-closure-elimination","dependencies":{},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-generator":"^6.26.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-async-to-generator":"^6.24.1","babel-plugin-transform-es2015-destructuring":"^6.23.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-regenerator":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-node5":"^1.2.0","babel-regenerator-runtime":"^6.5.0","babel-register":"^6.26.0","lodash":"^4.17.15","mocha":"^4.0.1","should":"^13.1.2"},"gitHead":"975a00cd790de885a7ada2931d49108cd18f5fb8","_id":"babel-plugin-closure-elimination@1.3.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-9B85Xh/S32Crdq8K398NZdh2Sl3crBMTpsy8k7OEij41ZztPYc1CACIZ8D1ZNTHuj62HWaStXkevIOF+DjfuWg==","shasum":"c5143ae2cceed6e8451c71ca164bbe1f84852087","tarball":"http://registry-npm.ywwl.com/babel-plugin-closure-elimination/download/babel-plugin-closure-elimination-1.3.1.tgz","fileCount":4,"unpackedSize":9955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoTcMCRA9TVsSAnZWagAAo3UP/0qA3on2sJbqFLri98OI\nUo3ejWZ7XjBeREPhYFsuU74tXDlJvFPi2B9EBq5NmitWFudypknWRt81dk7I\nygmCe18UqXMw6GuSwjbtAHJnVEdInfwpS0rWNNx+Lj0P8lv64rChmQbrK2tE\njudd1g+q0cf3CrTSF+29Nb8cj7Whfu8sEnuCU3a1otm2xvIaJs/5vhvd225N\nmTKQQRv81AxsA4Re2xrNeO6OKAkJcWddhpWl8AFZToiGkGRG5DF6enQ3I5V3\nc8oj7wI0nqY9o7pRB6uu78HoYHqK2zhNA0YyCyM/EKZjGLoclx2gUwRJQcCg\nvezbWKYTGj17wAsG0vPafs581hLlaCknAn5PMK2BXr4lcyu6WBPVxCo3aLNu\nEZwLYD7nqfUAl8HjPh8GT5sKKy77LdCmfPuXTjAm4PTigT46dTTaaoJx/jK+\nsOnxWUziHNCafHS9z9Qeuv9aImes5/s0VLQO+ji2TPRrkcMVo4tuFctTtPuN\nBW63BRgWQr0yrUXecbqJfHkAx+K8VakCpgreYL8/y80AFxC4O+paoR7m7InU\n9OxyWgEk9CouDIPoSa+mqTuR+bGN62tEipgWiYh/Qv+VOL3KFnRx3u/KJ3DL\nwqkGNfjt71iJLGlNSCrlc25PIbtaLzI4NY2fRbKvz1uNW+Xp+lxW7GDKPHjl\nkV1N\r\n=d+JV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDA0hwYJO3qggaDj9ILRnfEb98UTsEwd5Di5xWBy1VmlAiEA3nsMc9csHynfEp+A/dDScQ3k2J+jncy64Jwoh3BYpGw="}],"size":3748,"noattachment":false,"key":"/babel-plugin-closure-elimination/-/babel-plugin-closure-elimination-1.3.1.tgz"},"maintainers":[{"email":"charles@codemix.com","name":"charlespick"},{"email":"gajus@gajus.com","name":"gajus"},{"email":"gvozdev.viktor@gmail.com","name":"gvozd"}],"_npmUser":{"name":"gvozd","email":"gvozdev.viktor@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-closure-elimination_1.3.1_1587623692157_0.09232984332599758"},"_hasShrinkwrap":false,"readme":"# Babel Closure Elimination\n\nThis is a [Babel](https://babeljs.io/) plugin that eliminates unnecessary closures from your JavaScript in the name of performance.\n\n[![Build Status](https://travis-ci.org/codemix/babel-plugin-closure-elimination.svg)](https://travis-ci.org/codemix/babel-plugin-closure-elimination)\n\n> Note: Now requires Babel 6.\n\n# What?\n\nTurns code like this:\n```js\nfunction demo (input) {\n  return input.map(item => item + 1).map(item => item + 2);\n}\n```\nInto code like this:\n```js\nfunction _ref(item) {\n  return item + 1;\n}\n\nfunction _ref2(item) {\n  return item + 2;\n}\n\nfunction demo(input) {\n  return input.map(_ref).map(_ref2);\n}\n\n```\n\n# Why?\n\nBecause it's faster and more memory efficient in [most JavaScript engines](http://jsperf.com/closure-elimination), and means you can safely use arrow functions without a performance penalty in most cases.\n\n# Installation\n\nFirst, install via [npm](https://npmjs.org/package/babel-plugin-closure-elimination).\n```sh\nnpm install --save-dev babel-plugin-closure-elimination\n```\nThen, in your babel configuration (usually in your `.babelrc` file), add `\"closure-elimination\"` to your list of plugins:\n```json\n{\n  \"plugins\": [\"closure-elimination\"]\n}\n```\n\n\n# License\n\nPublished by [codemix](http://codemix.com/) under a permissive MIT License, see [LICENSE.md](./LICENSE.md).\n\n","publish_time":1587623692306,"_cnpm_publish_time":1587623692306,"dist-tags":{"latest":"1.3.2"}}