103 lines
4.0 KiB
JSON
103 lines
4.0 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "babel-plugin-check-es2015-constants@^6.5.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "babel-plugin-check-es2015-constants",
|
||
|
"name": "babel-plugin-check-es2015-constants",
|
||
|
"rawSpec": "^6.5.0",
|
||
|
"spec": ">=6.5.0 <7.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/babel-preset-react-native"
|
||
|
]
|
||
|
],
|
||
|
"_from": "babel-plugin-check-es2015-constants@>=6.5.0 <7.0.0",
|
||
|
"_id": "babel-plugin-check-es2015-constants@6.22.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/babel-plugin-check-es2015-constants",
|
||
|
"_nodeVersion": "6.9.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "packages-12-west.internal.npmjs.com",
|
||
|
"tmp": "tmp/babel-plugin-check-es2015-constants-6.22.0.tgz_1484872418811_0.9349760548211634"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "hzoo",
|
||
|
"email": "hi@henryzoo.com"
|
||
|
},
|
||
|
"_npmVersion": "3.10.10",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "babel-plugin-check-es2015-constants@^6.5.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "babel-plugin-check-es2015-constants",
|
||
|
"name": "babel-plugin-check-es2015-constants",
|
||
|
"rawSpec": "^6.5.0",
|
||
|
"spec": ">=6.5.0 <7.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/babel-preset-fbjs",
|
||
|
"/babel-preset-react-native"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz",
|
||
|
"_shasum": "35157b101426fd2ffd3da3f75c7d1e91835bbf8a",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "babel-plugin-check-es2015-constants@^6.5.0",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/babel-preset-react-native",
|
||
|
"dependencies": {
|
||
|
"babel-runtime": "^6.22.0"
|
||
|
},
|
||
|
"description": "Compile ES2015 constants to ES5",
|
||
|
"devDependencies": {
|
||
|
"babel-helper-plugin-test-runner": "^6.22.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "35157b101426fd2ffd3da3f75c7d1e91835bbf8a",
|
||
|
"tarball": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz"
|
||
|
},
|
||
|
"keywords": [
|
||
|
"babel-plugin"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "lib/index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "amasad",
|
||
|
"email": "amjad.masad@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "hzoo",
|
||
|
"email": "hi@henryzoo.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "jmm",
|
||
|
"email": "npm-public@jessemccarthy.net"
|
||
|
},
|
||
|
{
|
||
|
"name": "loganfsmyth",
|
||
|
"email": "loganfsmyth@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "sebmck",
|
||
|
"email": "sebmck@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "thejameskyle",
|
||
|
"email": "me@thejameskyle.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "babel-plugin-check-es2015-constants",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# babel-plugin-check-es2015-constants\n\nValidate 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[Try in REPL](http://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=es2015&experimental=false&loose=false&spec=false&code=const%20a%20%3D%201%3B%0Aa%20%3D%202%3B&playground=true)\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-check-es2015-constants\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n \"plugins\": [\"check-es2015-constants\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins check-es2015-constants script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n plugins: [\"check-es2015-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 [`transform-es2015-block-scoping`](http://babeljs.io/docs/plugins/transform-es2015-block-scoping/).\n",
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-check-es2015-constants"
|
||
|
},
|
||
|
"scripts": {},
|
||
|
"version": "6.22.0"
|
||
|
}
|