{"name":"babel-plugin-transform-inline-consecutive-adds","version":"0.5.0-alpha.2ed85317","description":"This plugin inlines consecutive property assignments, array pushes, etc.","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"shinew"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-plugin-transform-inline-consecutive-adds"},"readmeFilename":"README.md","readme":"# babel-plugin-transform-inline-consecutive-adds\n\nThis plugin inlines consecutive property assignments, array pushes, etc.\n\n## Example\n\n**In**\n\n```javascript\nconst foo = {};\nfoo.a = 42;\nfoo.b = [\"hi\"];\nfoo.c = bar();\nfoo.d = \"str\";\n\n...\nconst bar = [];\nbar.push(1);\nbar.push(2);\n```\n\n**Out**\n\n```javascript\nconst foo = {\n  a: 42,\n  b: [\"hi\"],\n  c: bar(),\n  d: \"str\"\n};\n\n...\nconst bar = [1, 2];\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-transform-inline-consecutive-adds --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"transform-inline-consecutive-adds\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-inline-consecutive-adds script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"transform-inline-consecutive-adds\"]\n});\n```\n","_id":"babel-plugin-transform-inline-consecutive-adds@0.5.0-alpha.2ed85317","dist":{"shasum":"9fe324106dd447d4d550a24d72540d7e7579de70","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-inline-consecutive-adds/download/babel-plugin-transform-inline-consecutive-adds-0.5.0-alpha.2ed85317.tgz","fileCount":10,"unpackedSize":14686,"integrity":"sha512-bPse92+wpNhs+tcJW0YvMumwNmKRuJ1yI0PMzWadb1LbplaHEg6qv6rTcpb6a7YZDPiimtcM00VpCDigUefSsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCetclw8LKPmjo/Dw2k+UFLsxwNxH8175AR2eBvDLRNcQIhALOhHJJCD6h2tytlN++PBK4ohTb9sB+oPAlEf1LuydEe"}],"size":4286,"noattachment":false,"key":"/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.5.0-alpha.2ed85317.tgz"},"maintainers":[{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"kangax@gmail.com","name":"kangax"},{"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-transform-inline-consecutive-adds_0.5.0-alpha.2ed85317_1531863502317_0.19072239111628164"},"_hasShrinkwrap":false,"publish_time":1531863502376,"_cnpm_publish_time":1531863502376,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.4.3"}}