{"name":"babel-plugin-transform-es2015-shorthand-properties","version":"6.1.5","description":"Compile ES2015 shorthand properties to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-shorthand-properties"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-types":"^6.1.5","babel-runtime":"^5.0.0"},"devDependencies":{"babel-helper-plugin-test-runner":"^6.1.5"},"_id":"babel-plugin-transform-es2015-shorthand-properties@6.1.5","scripts":{},"_shasum":"07500a961684281edfd29b05739415b9122d7e0f","_from":".","_npmVersion":"3.3.10","_nodeVersion":"4.1.0","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"dist":{"shasum":"07500a961684281edfd29b05739415b9122d7e0f","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-es2015-shorthand-properties/download/babel-plugin-transform-es2015-shorthand-properties-6.1.5.tgz","integrity":"sha512-2uwX+2VFucigkzx8UPeFkR2Z4CLTo/a2SFKbzDr6oJxU6iruhcNNyN4BB30on6JHDK72+rs3m9Fz4WQLZJjw1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG4LuqSlt5Ox83oe1Lf6i4pC791ZihDoV10wCi4PQGVCAiAz16rkJVYFbeMdM61SBKRpfjHctymFs4kg54JizcY1GQ=="}],"size":1491,"noattachment":false,"key":"/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.1.5.tgz"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"}],"directories":{},"readme":"# babel-plugin-transform-es2015-shorthand-properties\n\n> Compile ES2015 shorthand properties to ES5\n\n## Example\n\n**In**\n\n```js\nvar o = { a, b, c };\n```\n\n**Out**\n\n```js\nvar o = { a: a, b: b, c: c };\n```\n\n**In**\n\n```js\nvar cat = {\n  getName() {\n    return name;\n  }\n};\n```\n\n**Out**\n\n```js\nvar cat = {\n  getName: function () {\n    return name;\n  }\n};\n```\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-transform-es2015-shorthand-properties\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"transform-es2015-shorthand-properties\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-es2015-shorthand-properties script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"transform-es2015-shorthand-properties\"]\n});\n```\n","publish_time":1447311762761,"_cnpm_publish_time":1447311762761,"dist-tags":{"latest":"6.24.1","next":"7.0.0-beta.3"}}