| 1 |
{ |
| 2 |
"_id": "object-copy", |
| 3 |
"_rev": "2-855916efe3abb123539dd32015338ded", |
| 4 |
"name": "object-copy", |
| 5 |
"description": "Copy static properties, prototype properties, and descriptors from one object to another.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.0.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.0": { |
| 11 |
"name": "object-copy", |
| 12 |
"description": "Copy static properties, prototype properties, and descriptors from one object to another.", |
| 13 |
"version": "0.1.0", |
| 14 |
"homepage": "https://github.com/jonschlinkert/object-copy", |
| 15 |
"author": { |
| 16 |
"name": "Jon Schlinkert", |
| 17 |
"url": "https://github.com/jonschlinkert" |
| 18 |
}, |
| 19 |
"repository": { |
| 20 |
"type": "git", |
| 21 |
"url": "git+https://github.com/jonschlinkert/object-copy.git" |
| 22 |
}, |
| 23 |
"bugs": { |
| 24 |
"url": "https://github.com/jonschlinkert/object-copy/issues" |
| 25 |
}, |
| 26 |
"license": "MIT", |
| 27 |
"files": [ |
| 28 |
"index.js" |
| 29 |
], |
| 30 |
"main": "index.js", |
| 31 |
"engines": { |
| 32 |
"node": ">=0.10.0" |
| 33 |
}, |
| 34 |
"scripts": { |
| 35 |
"test": "mocha" |
| 36 |
}, |
| 37 |
"dependencies": { |
| 38 |
"copy-descriptor": "^0.1.0", |
| 39 |
"define-property": "^0.2.5", |
| 40 |
"kind-of": "^3.0.3" |
| 41 |
}, |
| 42 |
"devDependencies": { |
| 43 |
"gulp-format-md": "*", |
| 44 |
"mocha": "*" |
| 45 |
}, |
| 46 |
"keywords": [ |
| 47 |
"copy", |
| 48 |
"object" |
| 49 |
], |
| 50 |
"verb": { |
| 51 |
"layout": "default", |
| 52 |
"plugins": [ |
| 53 |
"gulp-format-md" |
| 54 |
], |
| 55 |
"related": { |
| 56 |
"list": [] |
| 57 |
}, |
| 58 |
"reflinks": [ |
| 59 |
"verb" |
| 60 |
] |
| 61 |
}, |
| 62 |
"gitHead": "15b972a4a7137f6bf47886c68e73a2fffa8eacf2", |
| 63 |
"_id": "[email protected]", |
| 64 |
"_shasum": "7e7d858b781bd7c991a41ba975ed3812754e998c", |
| 65 |
"_from": ".", |
| 66 |
"_npmVersion": "3.8.9", |
| 67 |
"_nodeVersion": "6.2.0", |
| 68 |
"_npmUser": { |
| 69 |
"name": "jonschlinkert", |
| 70 |
"email": "[email protected]" |
| 71 |
}, |
| 72 |
"maintainers": [ |
| 73 |
{ |
| 74 |
"name": "jonschlinkert", |
| 75 |
"email": "[email protected]" |
| 76 |
} |
| 77 |
], |
| 78 |
"dist": { |
| 79 |
"shasum": "7e7d858b781bd7c991a41ba975ed3812754e998c", |
| 80 |
"tarball": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz" |
| 81 |
}, |
| 82 |
"_npmOperationalInternal": { |
| 83 |
"host": "packages-12-west.internal.npmjs.com", |
| 84 |
"tmp": "tmp/object-copy-0.1.0.tgz_1465495667685_0.612287495052442" |
| 85 |
}, |
| 86 |
"directories": {} |
| 87 |
}, |
| 88 |
"1.0.0": { |
| 89 |
"name": "object-copy", |
| 90 |
"description": "Copy static properties, prototype properties, and descriptors from one object to another.", |
| 91 |
"version": "1.0.0", |
| 92 |
"homepage": "https://github.com/jonschlinkert/object-copy", |
| 93 |
"author": { |
| 94 |
"name": "Jon Schlinkert", |
| 95 |
"url": "https://github.com/jonschlinkert" |
| 96 |
}, |
| 97 |
"repository": { |
| 98 |
"type": "git", |
| 99 |
"url": "git+https://github.com/jonschlinkert/object-copy.git" |
| 100 |
}, |
| 101 |
"bugs": { |
| 102 |
"url": "https://github.com/jonschlinkert/object-copy/issues" |
| 103 |
}, |
| 104 |
"license": "MIT", |
| 105 |
"files": [ |
| 106 |
"index.js" |
| 107 |
], |
| 108 |
"main": "index.js", |
| 109 |
"engines": { |
| 110 |
"node": ">=0.10.0" |
| 111 |
}, |
| 112 |
"scripts": { |
| 113 |
"test": "mocha" |
| 114 |
}, |
| 115 |
"dependencies": { |
| 116 |
"copy-descriptor": "^0.1.1", |
| 117 |
"define-property": "^1.0.0", |
| 118 |
"kind-of": "^5.0.0" |
| 119 |
}, |
| 120 |
"devDependencies": { |
| 121 |
"gulp-format-md": "^0.1.12", |
| 122 |
"mocha": "^3.4.2" |
| 123 |
}, |
| 124 |
"keywords": [ |
| 125 |
"copy", |
| 126 |
"object" |
| 127 |
], |
| 128 |
"verb": { |
| 129 |
"layout": "default", |
| 130 |
"plugins": [ |
| 131 |
"gulp-format-md" |
| 132 |
], |
| 133 |
"related": { |
| 134 |
"list": [ |
| 135 |
"copy-descriptor", |
| 136 |
"define-property", |
| 137 |
"kind-of" |
| 138 |
] |
| 139 |
}, |
| 140 |
"reflinks": [ |
| 141 |
"verb" |
| 142 |
] |
| 143 |
}, |
| 144 |
"gitHead": "de31ea69653f62d98e3dad3496af541fc279aa05", |
| 145 |
"_id": "[email protected]", |
| 146 |
"_npmVersion": "5.0.3", |
| 147 |
"_nodeVersion": "7.7.3", |
| 148 |
"_npmUser": { |
| 149 |
"name": "jonschlinkert", |
| 150 |
"email": "[email protected]" |
| 151 |
}, |
| 152 |
"maintainers": [ |
| 153 |
{ |
| 154 |
"name": "jonschlinkert", |
| 155 |
"email": "[email protected]" |
| 156 |
} |
| 157 |
], |
| 158 |
"dist": { |
| 159 |
"integrity": "sha512-aOrmvYlQQ7sB/vVo65iqSvGBbqXPLkz90viy6/Tg9sLvwalib9wguMIuGViFEC5S5KJkEAdSKOTobbtxnLCUQg==", |
| 160 |
"shasum": "b87092f787590dedca2d134493f46c1d3351956c", |
| 161 |
"tarball": "https://registry.npmjs.org/object-copy/-/object-copy-1.0.0.tgz" |
| 162 |
}, |
| 163 |
"_npmOperationalInternal": { |
| 164 |
"host": "s3://npm-registry-packages", |
| 165 |
"tmp": "tmp/object-copy-1.0.0.tgz_1498391294174_0.4766365101095289" |
| 166 |
}, |
| 167 |
"directories": {} |
| 168 |
} |
| 169 |
}, |
| 170 |
"readme": "# object-copy [](https://www.npmjs.com/package/object-copy) [](https://npmjs.org/package/object-copy) [](https://npmjs.org/package/object-copy) [](https://travis-ci.org/jonschlinkert/object-copy)\n\n> Copy static properties, prototype properties, and descriptors from one object to another.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save object-copy\n```\n\n## Usage\n\n```js\nvar copy = require('object-copy');\n```\n\n## API\n\n### [copy](index.js#L32)\n\nCopy static properties, prototype properties, and descriptors from one object to another.\n\n**Params**\n\n* `receiver` **{Object}**\n* `provider` **{Object}**\n* `omit` **{String|Array}**: (optional) One or more properties to omit\n* `filter` **{Function}**: (optional) Called on each key before copying the property. If the function returns false, the property will not be copied.\n* `returns` **{Object}**\n\n**Example**\n\n```js\nfunction App() {}\nvar proto = App.prototype;\nApp.prototype.set = function() {};\nApp.prototype.get = function() {};\n\nvar obj = {};\ncopy(obj, proto);\n\n// filter out keys\ncopy(obj, proto, function(key) {\n return key !== 'index';\n});\n```\n\n## About\n\n### Related projects\n\n* [copy-descriptor](https://www.npmjs.com/package/copy-descriptor): Copy a descriptor from object A to object B | [homepage](https://github.com/jonschlinkert/copy-descriptor \"Copy a descriptor from object A to object B\")\n* [define-property](https://www.npmjs.com/package/define-property): Define a non-enumerable property on an object. | [homepage](https://github.com/jonschlinkert/define-property \"Define a non-enumerable property on an object.\")\n* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of \"Get the native type of a value.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 25, 2017._", |
| 171 |
"maintainers": [ |
| 172 |
{ |
| 173 |
"name": "jonschlinkert", |
| 174 |
"email": "[email protected]" |
| 175 |
} |
| 176 |
], |
| 177 |
"time": { |
| 178 |
"modified": "2017-06-25T11:48:15.080Z", |
| 179 |
"created": "2016-06-09T18:07:50.184Z", |
| 180 |
"0.1.0": "2016-06-09T18:07:50.184Z", |
| 181 |
"1.0.0": "2017-06-25T11:48:15.080Z" |
| 182 |
}, |
| 183 |
"homepage": "https://github.com/jonschlinkert/object-copy", |
| 184 |
"keywords": [ |
| 185 |
"copy", |
| 186 |
"object" |
| 187 |
], |
| 188 |
"repository": { |
| 189 |
"type": "git", |
| 190 |
"url": "git+https://github.com/jonschlinkert/object-copy.git" |
| 191 |
}, |
| 192 |
"author": { |
| 193 |
"name": "Jon Schlinkert", |
| 194 |
"url": "https://github.com/jonschlinkert" |
| 195 |
}, |
| 196 |
"bugs": { |
| 197 |
"url": "https://github.com/jonschlinkert/object-copy/issues" |
| 198 |
}, |
| 199 |
"license": "MIT", |
| 200 |
"readmeFilename": "README.md", |
| 201 |
"_attachments": {} |
| 202 |
} |