{"name":"babel-plugin-closure-elimination","version":"1.3.2","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":"dfec66f090366c13f32ecb6be5dff70255190fe5","_id":"babel-plugin-closure-elimination@1.3.2","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-GJnezbVp5ejiwh74fXJPznsrrWHR9bTuJV20FhXivbgEtg1WyNG/9KaDyHEpfU7G9iB6Gy+F2UffYLZ7DJh+Jw==","shasum":"2c9a90360bdf888fd3b3694391a745a70ce18c34","tarball":"http://registry-npm.ywwl.com/babel-plugin-closure-elimination/download/babel-plugin-closure-elimination-1.3.2.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\nwsFcBAEBCAAQBQJfRZi1CRA9TVsSAnZWagAAmHkP/jZqqLtCwY6jWKE+LsTc\n9JqJkY4Wyy0uusM3RxJ8vFd9FWhYBqNL/o7Nt2SDeHutLSCwKfDaaTe3/PFP\nFc9D62UzDivpFH06nno6RFkG9xsms7qQjvJ4lWfrF0/DQimvn7+R1iUYQv2f\n7fapfR+bB5V1awrrzuve1bTjIi4jtU/7eoR2+74OnAKNNMzfFdEoie7vbOT5\nebeHEhyNHxbudyBE6uVjm9jw0MbTG8KBsuAIBkRK7dC/wtPcS4h7uicSooBJ\nCAwti92s3d62j6yT6CUqBR8NV2vAQfyqjAny58zjI8fYn/Ptms1EIUXRtbU7\nLDy/GJbS6Yi4DpKSGzSKUMRmAWFfS0XBwDkiHySHen7g0WEP6jDjxHdKqRgS\nYSISKQr64kIvYW8HciUKHLB9npR8G/Tg4TCmTvMigOvJuYDYIzF+gZ0aU08d\n8MqHD3lEEIDStvPGRRLLNmjKKb2Gf4ErbuRXUu5VdtjITjh9pk1KH2W2GNQF\nSjpc1wjKAwESwKKFndKRpRXtOLGR6SWzbg4YNTMKLqoSkGh4luFit4jVBQ40\ndO2HyGap+CdUuAhVc/4DeLHHFRsPWb6efZH7WTRxO834NqNdNNhbrDis3Rfp\nMYRwUDX9HJOUKRYFRw4M8XEPPi6g00w7jamq7kS8u5I8WTM187U8G7WOIHIq\ntMic\r\n=wV8X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcRakqPwM0ef/ZgCtW3mqADDQ0L/JAkN8PqF4lARqMqAiEAzumSNgqlZ2ZpPUJVXrEtUeUNxd7AhobFRajSpI9oczg="}],"size":3747,"noattachment":false,"key":"/babel-plugin-closure-elimination/-/babel-plugin-closure-elimination-1.3.2.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.2_1598396596950_0.3852290572165742"},"_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":1598396597077,"_cnpm_publish_time":1598396597077,"dist-tags":{"latest":"1.3.2"}}