{"name":"babel-plugin-closure-elimination","version":"1.2.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 ./","prepublish":"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":{"babel-polyfill":"^6.3.14"},"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-preset-env":"^1.6.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-node5":"^1.2.0","babel-regenerator-runtime":"^6.3.13","babel-register":"^6.26.0","lodash":"^4.16.5","mocha":"^2.2.4","should":"^6.0.1"},"gitHead":"7e9659669e3094d1c883943bd31565273718475b","_id":"babel-plugin-closure-elimination@1.2.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.4","_npmUser":{"name":"gvozd","email":"gvozdev.viktor@gmail.com"},"dist":{"integrity":"sha512-J0eTvYno48DcH1tI1ZUnRKD4HNScqYiYUULuZ5Qt2SEFiv1gMYWwkHVrngf/kF3QxJfQhGvm7lvd+AWSzktYNA==","shasum":"79df794f0b9da6b4b727ea746e381df48e32e372","tarball":"http://registry-npm.ywwl.com/babel-plugin-closure-elimination/download/babel-plugin-closure-elimination-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/3OpYTB87V0QHyPRaweipxn1fKj9rrtzvbsb6se1Q7AiEAkeCayNCYqH1RTnptJCQOEWETz4k9aGfd2lol48L9xSQ="}],"size":4921,"noattachment":false,"key":"/babel-plugin-closure-elimination/-/babel-plugin-closure-elimination-1.2.1.tgz"},"maintainers":[{"name":"codemix","email":"charles@codemix.com"},{"name":"gvozd","email":"gvozdev.viktor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-closure-elimination-1.2.1.tgz_1506257539950_0.2170857770834118"},"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":1506257540906,"_cnpm_publish_time":1506257540906,"dist-tags":{"latest":"1.3.2"}}