{"_id":"babel-plugin-constant-folding","_rev":"59913","name":"babel-plugin-constant-folding","description":"Compile static constants (ie. code that we can statically determine to be constant at runtime)","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"}],"time":{"modified":"2021-06-03T10:19:33.000Z","created":"2015-06-15T15:25:03.275Z","1.0.1":"2015-06-15T15:25:03.275Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/babel-plugins/babel-plugin-constant-folding.git"},"versions":{"1.0.1":{"name":"babel-plugin-constant-folding","version":"1.0.1","description":"Compile static constants (ie. code that we can statically determine to be constant at runtime)","repository":{"type":"git","url":"git+https://github.com/babel-plugins/babel-plugin-constant-folding.git"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test"},"keywords":["babel-plugin"],"gitHead":"13140f3f8cb59e6faddb68c9170e86faff85febf","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-constant-folding/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-constant-folding#readme","_id":"babel-plugin-constant-folding@1.0.1","_shasum":"8361d364c98e449c3692bdba51eff0844290aa8e","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"8361d364c98e449c3692bdba51eff0844290aa8e","size":1484,"noattachment":false,"key":"/babel-plugin-constant-folding/-/babel-plugin-constant-folding-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-constant-folding/download/babel-plugin-constant-folding-1.0.1.tgz"},"directories":{},"publish_time":1434381903275,"_cnpm_publish_time":1434381903275,"_hasShrinkwrap":false}},"readme":"# babel-plugin-constant-folding\n\nCompile static constants (ie. code that we can statically determine to be constant at runtime)\n\n## Installation\n\n```sh\n$ npm install babel-plugin-constant-folding\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"constant-folding\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins constant-folding script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"constant-folding\"]\n});\n```\n","_attachments":{},"homepage":"https://github.com/babel-plugins/babel-plugin-constant-folding#readme","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-constant-folding/issues"},"license":"MIT"}