{"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":{"integrity":"sha512-ZSSpRfpR07E2TtrZcBfGdRxyU7mI4YugIgpS3XusW+C6J5ltKiFPDFDqN3GQRQ4kge9NGbupKVqmg5XCOpZo/Q==","shasum":"ad503c36107e4ffb7b691703d9a7d215da58ba65","tarball":"http://registry-npm.ywwl.com/@babel/plugin-check-constants/download/@babel/plugin-check-constants-7.0.0-beta.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCruRobQmWzuXa5EFXIGGg6ydQnHh67vB4ouCYGmO4d/AIga33jM4gJpUHUB9Zq0LjCnA+iOPbTg8s1T1nVyZenZwk="}],"size":1304,"noattachment":false,"key":"/@babel/plugin-check-constants/-/@babel/plugin-check-constants-7.0.0-beta.4.tgz"},"maintainers":[{"name":"hzoo","email":"hi@henryzoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-check-constants-7.0.0-beta.4.tgz_1509388444883_0.605296469759196"},"directories":{},"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","publish_time":1509388445208,"_cnpm_publish_time":1509388445208,"dist-tags":{"latest":"7.0.0-beta.38"}}