GT2/GT2-Android/node_modules/babel-plugin-transform-es20.../package.json

104 lines
5.1 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "babel-plugin-transform-es2015-computed-properties@^6.5.0",
"scope": null,
"escapedName": "babel-plugin-transform-es2015-computed-properties",
"name": "babel-plugin-transform-es2015-computed-properties",
"rawSpec": "^6.5.0",
"spec": ">=6.5.0 <7.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-preset-react-native"
]
],
"_from": "babel-plugin-transform-es2015-computed-properties@>=6.5.0 <7.0.0",
"_id": "babel-plugin-transform-es2015-computed-properties@6.24.1",
"_inCache": true,
"_location": "/babel-plugin-transform-es2015-computed-properties",
"_nodeVersion": "6.9.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz_1491578362134_0.8491923431865871"
},
"_npmUser": {
"name": "hzoo",
"email": "hi@henryzoo.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "babel-plugin-transform-es2015-computed-properties@^6.5.0",
"scope": null,
"escapedName": "babel-plugin-transform-es2015-computed-properties",
"name": "babel-plugin-transform-es2015-computed-properties",
"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-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz",
"_shasum": "6fe2a8d16895d5634f4cd999b6d3480a308159b3",
"_shrinkwrap": null,
"_spec": "babel-plugin-transform-es2015-computed-properties@^6.5.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-preset-react-native",
"dependencies": {
"babel-runtime": "^6.22.0",
"babel-template": "^6.24.1"
},
"description": "Compile ES2015 computed properties to ES5",
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.24.1"
},
"directories": {},
"dist": {
"shasum": "6fe2a8d16895d5634f4cd999b6d3480a308159b3",
"tarball": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.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-transform-es2015-computed-properties",
"optionalDependencies": {},
"readme": "# babel-plugin-transform-es2015-computed-properties\n\n> Compile ES2015 computed properties to ES5\n\n## Example\n\n**In**\n\n```js\nvar obj = {\n [\"x\" + foo]: \"heh\",\n [\"y\" + bar]: \"noo\",\n foo: \"foo\",\n bar: \"bar\"\n};\n```\n\n**Out**\n\n```js\nvar _obj;\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nvar obj = (\n _obj = {},\n _defineProperty(_obj, \"x\" + foo, \"heh\"),\n _defineProperty(_obj, \"y\" + bar, \"noo\"),\n _defineProperty(_obj, \"foo\", \"foo\"),\n _defineProperty(_obj, \"bar\", \"bar\"),\n _obj\n);\n```\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-transform-es2015-computed-properties\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\nWithout options:\n\n```json\n{\n \"plugins\": [\"transform-es2015-computed-properties\"]\n}\n```\n\nWith options:\n\n```json\n{\n \"plugins\": [\n [\"transform-es2015-computed-properties\", {\n \"loose\": true\n }]\n ]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-es2015-computed-properties script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n plugins: [\"transform-es2015-computed-properties\"]\n});\n```\n\n## Options\n\n### `loose`\n\n`boolean`, defaults to `false`\n\nJust like method assignment in classes, in loose mode, computed property names\nuse simple assignments instead of being defined. This is unlikely to be an issue\nin production code.\n\n#### Example\n\n***In***\n\n```js\nvar obj = {\n [\"x\" + foo]: \"heh\",\n [\"y\" + bar]: \"noo\",\n foo: \"foo\",\n bar: \"bar\"\n};\n```\n\n***Out***\n\n```js\nvar _obj;\n\nvar obj = (\n _obj = {},\n _obj[\"x\" + foo] = \"heh\",\n _obj[\"y\" + bar] = \"noo\",\n _obj.foo = \"foo\",\n _obj.bar = \"bar\",\n _obj\n);\n```\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-computed-properties"
},
"scripts": {},
"version": "6.24.1"
}