{"_id":"@babel/plugin-check-constants","_rev":"31217","name":"@babel/plugin-check-constants","description":"Compile ES2015 constants to ES5","dist-tags":{"latest":"7.0.0-beta.38"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"time":{"modified":"2021-06-03T10:05:11.000Z","created":"2017-10-30T18:34:05.208Z","7.0.0-beta.38":"2018-01-17T16:31:37.196Z","7.0.0-beta.37":"2018-01-08T16:02:17.872Z","7.0.0-beta.36":"2017-12-25T19:04:14.971Z","7.0.0-beta.35":"2017-12-14T21:47:31.275Z","7.0.0-beta.34":"2017-12-02T14:38:58.416Z","7.0.0-beta.33":"2017-12-01T14:17:05.140Z","7.0.0-beta.32":"2017-11-12T13:32:59.493Z","7.0.0-beta.31":"2017-11-03T20:03:09.309Z","7.0.0-beta.5":"2017-10-30T20:55:53.030Z","7.0.0-beta.4":"2017-10-30T18:34:05.208Z"},"users":{},"repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"versions":{"7.0.0-beta.38":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.38","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.38"},"devDependencies":{"@babel/core":"7.0.0-beta.38","@babel/helper-plugin-test-runner":"7.0.0-beta.38"},"_id":"@babel/plugin-check-constants@7.0.0-beta.38","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"bbda6306d45a4f097ccb416c0b52d6503f6502cf","size":1259,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.38.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.38.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.38.tgz_1516206697128_0.9261006319429725"},"directories":{},"publish_time":1516206697196,"_hasShrinkwrap":false,"_cnpm_publish_time":1516206697196},"7.0.0-beta.37":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.37","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.37"},"devDependencies":{"@babel/core":"7.0.0-beta.37","@babel/helper-plugin-test-runner":"7.0.0-beta.37"},"_id":"@babel/plugin-check-constants@7.0.0-beta.37","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"dfed9eed66a047f41d900e114b90858888e08222","size":1257,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.37.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.37.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.37.tgz_1515427337792_0.01104034180752933"},"directories":{},"publish_time":1515427337872,"_hasShrinkwrap":false,"_cnpm_publish_time":1515427337872},"7.0.0-beta.36":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.36","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.36"},"devDependencies":{"@babel/core":"7.0.0-beta.36","@babel/helper-plugin-test-runner":"7.0.0-beta.36"},"_id":"@babel/plugin-check-constants@7.0.0-beta.36","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"03aba1e17029f4d55f9bc9c13e1e82f289ab4773","size":1254,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.36.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.36.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.36.tgz_1514228653877_0.17604618147015572"},"directories":{},"publish_time":1514228654971,"_hasShrinkwrap":false,"_cnpm_publish_time":1514228654971},"7.0.0-beta.35":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.35","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.35"},"devDependencies":{"@babel/core":"7.0.0-beta.35","@babel/helper-plugin-test-runner":"7.0.0-beta.35"},"_id":"@babel/plugin-check-constants@7.0.0-beta.35","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"18cca7d9fbba746171c879ced7c69defbdc8bc11","size":1255,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.35.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.35.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.35.tgz_1513288051156_0.3165036451537162"},"directories":{},"publish_time":1513288051275,"_hasShrinkwrap":false,"_cnpm_publish_time":1513288051275},"7.0.0-beta.34":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.34","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.34"},"devDependencies":{"@babel/core":"7.0.0-beta.34","@babel/helper-plugin-test-runner":"7.0.0-beta.34"},"_id":"@babel/plugin-check-constants@7.0.0-beta.34","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"29d2a42967087913c9140f1f35a085d95869a07e","size":1257,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.34.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.34.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.34.tgz_1512225537555_0.7022463455796242"},"directories":{},"publish_time":1512225538416,"_hasShrinkwrap":false,"_cnpm_publish_time":1512225538416},"7.0.0-beta.33":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.33","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.33"},"devDependencies":{"@babel/core":"7.0.0-beta.33","@babel/helper-plugin-test-runner":"7.0.0-beta.33"},"_id":"@babel/plugin-check-constants@7.0.0-beta.33","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"2435f7ab7bb3d1e4eb775841e6df935b52c5bdd3","size":1259,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.33.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.33.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.33.tgz_1512137824216_0.4142640708014369"},"directories":{},"publish_time":1512137825140,"_hasShrinkwrap":false,"_cnpm_publish_time":1512137825140},"7.0.0-beta.32":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.32","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.32"},"devDependencies":{"@babel/core":"7.0.0-beta.32","@babel/helper-plugin-test-runner":"7.0.0-beta.32"},"_id":"@babel/plugin-check-constants@7.0.0-beta.32","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"0a99744c55bfeb2ad77f94210f8dff2af435fa5b","size":1315,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.32.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.32.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.32.tgz_1510493578572_0.36883083800785244"},"directories":{},"publish_time":1510493579493,"_hasShrinkwrap":false,"_cnpm_publish_time":1510493579493},"7.0.0-beta.31":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.31","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.31"},"devDependencies":{"@babel/core":"7.0.0-beta.31","@babel/helper-plugin-test-runner":"7.0.0-beta.31"},"_id":"@babel/plugin-check-constants@7.0.0-beta.31","_npmVersion":"5.5.1","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"09c7278bf655ac4c50125a84efe186a224eeccdb","size":1303,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.31.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.31.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.31.tgz_1509739389233_0.06922363606281579"},"directories":{},"publish_time":1509739389309,"_hasShrinkwrap":false,"_cnpm_publish_time":1509739389309},"7.0.0-beta.5":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.5","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":">=7.0.0-beta.4 <7.0.0-rc.0"},"devDependencies":{"@babel/helper-plugin-test-runner":"7.0.0-beta.5"},"_id":"@babel/plugin-check-constants@7.0.0-beta.5","_npmVersion":"5.5.1","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"8621308c247aafcc1356b893097fa23e23effc02","size":1313,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.5.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.5.tgz_1509396952952_0.039575939532369375"},"directories":{},"publish_time":1509396953030,"_hasShrinkwrap":false,"_cnpm_publish_time":1509396953030},"7.0.0-beta.4":{"name":"@babel/plugin-check-constants","version":"7.0.0-beta.4","description":"Compile ES2015 constants to ES5","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"peerDependencies":{"@babel/core":"7.0.0-beta.3"},"devDependencies":{"@babel/helper-plugin-test-runner":"7.0.0-beta.4"},"_id":"@babel/plugin-check-constants@7.0.0-beta.4","_npmVersion":"5.5.1","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"ad503c36107e4ffb7b691703d9a7d215da58ba65","size":1304,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.4.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.4.tgz_1509388444883_0.605296469759196"},"directories":{},"publish_time":1509388445208,"_hasShrinkwrap":false,"_cnpm_publish_time":1509388445208}},"readme":"# @babel/plugin-check-constants\n\n> Validate ES2015 constants (prevents reassignment of const variables).\n\n## Example\n\n**In**\n\n```js\nconst a = 1;\na = 2;\n```\n\n**Out**\n\n```bash\nrepl: \"a\" is read-only\n  1 | const a = 1;\n> 2 | a = 2;\n    | ^\n```\n\n\n## Installation\n\n```sh\nnpm install --save-dev @babel/plugin-check-constants\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"@babel/check-constants\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins @babel/check-constants script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"@babel/check-constants\"]\n});\n```\n\n## Note\n\nThis check will only validate consts. If you need it to compile down to `var` then you must also install and enable [`@babel/plugin-transform-block-scoping`](http://babeljs.io/docs/plugins/transform-block-scoping/).\n","_attachments":{},"license":"MIT"}