{"name":"babel-plugin-closure-elimination","version":"0.0.2","description":"Removes closures from your JavaScript in the name of performance.","main":"lib/index.js","scripts":{"build":"babel -d ./lib ./src","prepublish":"npm run build","pretest":"npm run build","test":"mocha","watch":"mocha --watch"},"repository":{"type":"git","url":"https://github.com/codemix/babel-plugin-closure-elimination"},"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","devDependencies":{"mocha":"^2.2.4","should":"^6.0.1","babel":"^5.5.0"},"_id":"babel-plugin-closure-elimination@0.0.2","_shasum":"6217020f5d2cfdad6dc5f949616bd873c7036953","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"codemix","email":"charles@codemix.com"},"maintainers":[{"name":"codemix","email":"charles@codemix.com"}],"dist":{"shasum":"6217020f5d2cfdad6dc5f949616bd873c7036953","tarball":"http://registry-npm.ywwl.com/babel-plugin-closure-elimination/download/babel-plugin-closure-elimination-0.0.2.tgz","integrity":"sha512-jLeNJ510lIOdmjsGwn9dUG3W177+gbJAWD0xlKOrrgRyqrf6Lhz6dV1QwUkTV4kn9djhOM7k7gLAvxewCm/XZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCweAr5MMVh63z5wz5tXHzSEbchyT6anylpmrAmuyLIvwIhAJDWlJ6ZmVT8WPC84FlGbqdL0w1ZYvkTRsg0x6T897AR"}],"size":6418,"noattachment":false,"key":"/babel-plugin-closure-elimination/-/babel-plugin-closure-elimination-0.0.2.tgz"},"directories":{},"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":1442419359329,"_cnpm_publish_time":1442419359329,"dist-tags":{"latest":"1.3.2"}}