101 lines
4.5 KiB
JSON
101 lines
4.5 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "babel-plugin-transform-object-rest-spread@^6.5.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "babel-plugin-transform-object-rest-spread",
|
||
|
"name": "babel-plugin-transform-object-rest-spread",
|
||
|
"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-transform-object-rest-spread@>=6.5.0 <7.0.0",
|
||
|
"_id": "babel-plugin-transform-object-rest-spread@6.26.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/babel-plugin-transform-object-rest-spread",
|
||
|
"_nodeVersion": "6.9.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/babel-plugin-transform-object-rest-spread-6.26.0.tgz_1502898851290_0.09631218598224223"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "hzoo",
|
||
|
"email": "hi@henryzoo.com"
|
||
|
},
|
||
|
"_npmVersion": "4.6.1",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "babel-plugin-transform-object-rest-spread@^6.5.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "babel-plugin-transform-object-rest-spread",
|
||
|
"name": "babel-plugin-transform-object-rest-spread",
|
||
|
"rawSpec": "^6.5.0",
|
||
|
"spec": ">=6.5.0 <7.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/babel-preset-fbjs",
|
||
|
"/babel-preset-react-native",
|
||
|
"/react-native"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz",
|
||
|
"_shasum": "0f36692d50fef6b7e2d4b3ac1478137a963b7b06",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "babel-plugin-transform-object-rest-spread@^6.5.0",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/babel-preset-react-native",
|
||
|
"dependencies": {
|
||
|
"babel-plugin-syntax-object-rest-spread": "^6.8.0",
|
||
|
"babel-runtime": "^6.26.0"
|
||
|
},
|
||
|
"description": "Compile object rest and spread to ES5",
|
||
|
"devDependencies": {
|
||
|
"babel-helper-plugin-test-runner": "^6.22.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "0f36692d50fef6b7e2d4b3ac1478137a963b7b06",
|
||
|
"tarball": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz"
|
||
|
},
|
||
|
"keywords": [
|
||
|
"babel-plugin"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "lib/index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "thejameskyle",
|
||
|
"email": "me@thejameskyle.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "sebmck",
|
||
|
"email": "sebmck@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "danez",
|
||
|
"email": "daniel@tschinder.de"
|
||
|
},
|
||
|
{
|
||
|
"name": "hzoo",
|
||
|
"email": "hi@henryzoo.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "loganfsmyth",
|
||
|
"email": "loganfsmyth@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "babel-plugin-transform-object-rest-spread",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# babel-plugin-transform-object-rest-spread\n\n> This plugin allows Babel to transform rest properties for object destructuring assignment and spread properties for object literals.\n\n## Example\n\n### Rest Properties\n\n```js\nlet { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };\nconsole.log(x); // 1\nconsole.log(y); // 2\nconsole.log(z); // { a: 3, b: 4 }\n```\n\n### Spread Properties\n\n```js\nlet n = { x, y, ...z };\nconsole.log(n); // { x: 1, y: 2, a: 3, b: 4 }\n```\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-transform-object-rest-spread\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n \"plugins\": [\"transform-object-rest-spread\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-object-rest-spread script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n plugins: [\"transform-object-rest-spread\"]\n});\n```\n\n## Options\n\n### `useBuiltIns`\n\n`boolean`, defaults to `false`.\n\nBy default, this plugin uses Babel's `extends` helper which polyfills `Object.assign`. Enabling this option will use `Object.assign` directly.\n\n**.babelrc**\n\n```json\n{\n \"plugins\": [\n [\"transform-object-rest-spread\", { \"useBuiltIns\": true }]\n ]\n}\n```\n\n**In**\n\n```js\nz = { x, ...y };\n```\n\n**Out**\n\n```js\nz = Object.assign({ x }, y);\n```\n\n## References\n\n* [Proposal: Object Rest/Spread Properties for ECMAScript](https://github.com/sebmarkbage/ecmascript-rest-spread)\n* [Spec](http://sebmarkbage.github.io/ecmascript-rest-spread)\n",
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-rest-spread"
|
||
|
},
|
||
|
"scripts": {},
|
||
|
"version": "6.26.0"
|
||
|
}
|