{"name":"babel-plugin-transform-property-literals","version":"6.10.0-alpha.36b27d42","description":"Turn valid property key literals to plain identifiers","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"amasad"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-plugin-transform-property-literals"},"dependencies":{"esutils":"^2.0.2"},"readmeFilename":"README.md","readme":"# babel-plugin-transform-property-literals\n\nThis plugin allows Babel to transform valid identifier property key literals into identifiers.\n\n## Example\n\n**In**\n\n```javascript\nvar foo = {\n  // changed\n  \"bar\": function () {},\n  \"1\": function () {},\n\n  // not changed\n  \"default\": 1,\n  [a]: 2,\n  foo: 1\n};\n```\n\n**Out**\n\n```javascript\nvar foo = {\n  bar: function () {},\n  1: function () {},\n\n  \"default\": 1,\n  [a]: 2,\n  foo: 1\n};\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-transform-property-literals --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"transform-property-literals\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-property-literals script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"transform-property-literals\"]\n});\n```\n","_id":"babel-plugin-transform-property-literals@6.10.0-alpha.36b27d42","dist":{"shasum":"8c045749f4e689910df3e4f11a43e84846f0921b","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-property-literals/download/babel-plugin-transform-property-literals-6.10.0-alpha.36b27d42.tgz","fileCount":7,"unpackedSize":5209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/JBhCRA9TVsSAnZWagAAqHkQAICQLPzT2dlAZsV/Mwuy\nAOvQl6wf73jDngEJwC7fBVcWgLroJPFkPTuJUJuAMXzARCpEQ16XZTYzi+Ve\niujYjWscqcrLkIGatGFh2Dn17Y4hbHP3FRgCo3hZMv2pp2adgWCD18KIjQjS\n1YGyaN356jqo8twBkIjMKTPYfHYmcHMpuohykPQE4IM7UuFYFh4pgtrIfc7a\n3FKX1sIGPpN9BiYiQfeEjfAOolMzULNpc6ZKy7NWksOsPjAVQ/mInZudMYgF\nlRTwyVdxC9tBYD+yhyFkpBZ3k6mrcUTa9wqxjQsmNPPW/HeHGI8rECxdxLr9\n8/uPmNrVImszab3j1qCBpZRJWg7TTr8S/xCXgYDBge0ky/tQTjdnxiTz8yS4\nwTxmOnvFTGKXGEKTUiP7izSrbJtpwP8yxwhyDWmXD0CCPU+nqyYmPnTFvqHr\nktNAPuIBBLhfS8iMApyKamxFRWrBNmfvrmpUA0A8Y8J1NP5CN362rRiYRocn\nS4CYTv7kQGLxJAxFl7KpSL3kr3tJxva4R8q3sABW845PdBX4G7TcEScJ3hHo\njOJYMcCupT83xwYs9ypv6ZihwtQMLnlfrChrZBw1LA7OheYIbAfDLI6IsTxn\n6my0vHYZS4DmftEIIBnWFG4cmQDR5LiPVHVOmwDd7BEPOlepD9dpSobOBIpi\n2IIi\r\n=5QPQ\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-ZQpr/6Yq3t7WzSwc7XqL5ArsDVcjHfJVU7FRndOH4XtfEWvCiEIskva7ZJyIm3OkLGIWEEpwfVjAZStnOPylaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjJz2SwTDajgnQYRYOMnS/eKdmK9kHOQU/MAM+1eiByAiB5Jj/lAlIWL6jBaGPQKJVfdkonJorZvBe1KSZEMAnh6g=="}],"size":2124,"noattachment":false,"key":"/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.10.0-alpha.36b27d42.tgz"},"maintainers":[{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"hi@henryzoo.com","name":"hzoo"},{"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-property-literals_6.10.0-alpha.36b27d42_1526501472769_0.9992536842426725"},"_hasShrinkwrap":false,"publish_time":1526501472829,"_cnpm_publish_time":1526501472829,"dist-tags":{"canary":"6.10.0-alpha.9","latest":"6.9.4","prerelease":"0.0.3"}}