| 1 |
{ |
| 2 |
"_id": "copy-descriptor", |
| 3 |
"_rev": "2-503acfee57f93a8cf946ed478a39472d", |
| 4 |
"name": "copy-descriptor", |
| 5 |
"description": "Copy a descriptor from object A to object B", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "0.1.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.0": { |
| 11 |
"name": "copy-descriptor", |
| 12 |
"description": "Copy a descriptor from object A to object B", |
| 13 |
"version": "0.1.0", |
| 14 |
"homepage": "https://github.com/jonschlinkert/copy-descriptor", |
| 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/copy-descriptor.git" |
| 22 |
}, |
| 23 |
"bugs": { |
| 24 |
"url": "https://github.com/jonschlinkert/copy-descriptor/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 |
"devDependencies": { |
| 38 |
"gulp-format-md": "^0.1.4", |
| 39 |
"mocha": "*" |
| 40 |
}, |
| 41 |
"keywords": [ |
| 42 |
"copy", |
| 43 |
"descriptor" |
| 44 |
], |
| 45 |
"verb": { |
| 46 |
"related": { |
| 47 |
"list": [ |
| 48 |
"is-accessor-descriptor", |
| 49 |
"is-data-descriptor", |
| 50 |
"is-descriptor", |
| 51 |
"is-plain-object", |
| 52 |
"isobject" |
| 53 |
] |
| 54 |
}, |
| 55 |
"plugins": [ |
| 56 |
"gulp-format-md" |
| 57 |
], |
| 58 |
"layout": "default" |
| 59 |
}, |
| 60 |
"gitHead": "b229b64ef949a9b2c7bc812015891521da32659c", |
| 61 |
"_id": "[email protected]", |
| 62 |
"_shasum": "85b03cf2870a42c34feabb2da433874d279130bb", |
| 63 |
"_from": ".", |
| 64 |
"_npmVersion": "3.3.6", |
| 65 |
"_nodeVersion": "5.0.0", |
| 66 |
"_npmUser": { |
| 67 |
"name": "jonschlinkert", |
| 68 |
"email": "[email protected]" |
| 69 |
}, |
| 70 |
"maintainers": [ |
| 71 |
{ |
| 72 |
"name": "jonschlinkert", |
| 73 |
"email": "[email protected]" |
| 74 |
} |
| 75 |
], |
| 76 |
"dist": { |
| 77 |
"shasum": "85b03cf2870a42c34feabb2da433874d279130bb", |
| 78 |
"tarball": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.0.tgz" |
| 79 |
}, |
| 80 |
"directories": {} |
| 81 |
}, |
| 82 |
"0.1.1": { |
| 83 |
"name": "copy-descriptor", |
| 84 |
"description": "Copy a descriptor from object A to object B", |
| 85 |
"version": "0.1.1", |
| 86 |
"homepage": "https://github.com/jonschlinkert/copy-descriptor", |
| 87 |
"author": { |
| 88 |
"name": "Jon Schlinkert", |
| 89 |
"url": "https://github.com/jonschlinkert" |
| 90 |
}, |
| 91 |
"repository": { |
| 92 |
"type": "git", |
| 93 |
"url": "git+https://github.com/jonschlinkert/copy-descriptor.git" |
| 94 |
}, |
| 95 |
"bugs": { |
| 96 |
"url": "https://github.com/jonschlinkert/copy-descriptor/issues" |
| 97 |
}, |
| 98 |
"license": "MIT", |
| 99 |
"files": [ |
| 100 |
"index.js" |
| 101 |
], |
| 102 |
"main": "index.js", |
| 103 |
"engines": { |
| 104 |
"node": ">=0.10.0" |
| 105 |
}, |
| 106 |
"scripts": { |
| 107 |
"test": "mocha" |
| 108 |
}, |
| 109 |
"devDependencies": { |
| 110 |
"gulp-format-md": "^0.1.9", |
| 111 |
"mocha": "^2.5.3" |
| 112 |
}, |
| 113 |
"keywords": [ |
| 114 |
"copy", |
| 115 |
"descriptor" |
| 116 |
], |
| 117 |
"verb": { |
| 118 |
"toc": false, |
| 119 |
"layout": "default", |
| 120 |
"tasks": [ |
| 121 |
"readme" |
| 122 |
], |
| 123 |
"plugins": [ |
| 124 |
"gulp-format-md" |
| 125 |
], |
| 126 |
"related": { |
| 127 |
"list": [ |
| 128 |
"is-accessor-descriptor", |
| 129 |
"is-data-descriptor", |
| 130 |
"is-descriptor", |
| 131 |
"is-plain-object", |
| 132 |
"isobject" |
| 133 |
] |
| 134 |
}, |
| 135 |
"lint": { |
| 136 |
"reflinks": true |
| 137 |
}, |
| 138 |
"reflinks": [ |
| 139 |
"verb-readme-generator", |
| 140 |
"verb" |
| 141 |
] |
| 142 |
}, |
| 143 |
"gitHead": "572c31416d4538b7ba5f52e2bb0765ac237f79e2", |
| 144 |
"_id": "[email protected]", |
| 145 |
"_shasum": "676f6eb3c39997c2ee1ac3a924fd6124748f578d", |
| 146 |
"_from": ".", |
| 147 |
"_npmVersion": "3.8.9", |
| 148 |
"_nodeVersion": "6.2.0", |
| 149 |
"_npmUser": { |
| 150 |
"name": "jonschlinkert", |
| 151 |
"email": "[email protected]" |
| 152 |
}, |
| 153 |
"maintainers": [ |
| 154 |
{ |
| 155 |
"name": "jonschlinkert", |
| 156 |
"email": "[email protected]" |
| 157 |
} |
| 158 |
], |
| 159 |
"dist": { |
| 160 |
"shasum": "676f6eb3c39997c2ee1ac3a924fd6124748f578d", |
| 161 |
"tarball": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz" |
| 162 |
}, |
| 163 |
"_npmOperationalInternal": { |
| 164 |
"host": "packages-16-east.internal.npmjs.com", |
| 165 |
"tmp": "tmp/copy-descriptor-0.1.1.tgz_1465497122701_0.666076025692746" |
| 166 |
}, |
| 167 |
"directories": {} |
| 168 |
} |
| 169 |
}, |
| 170 |
"readme": "# copy-descriptor [](https://www.npmjs.com/package/copy-descriptor) [](https://npmjs.org/package/copy-descriptor) [](https://travis-ci.org/jonschlinkert/copy-descriptor)\n\nCopy a descriptor from object A to object B\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install copy-descriptor --save\n```\n\n## Usage\n\n```js\nvar copy = require('copy-descriptor');\n```\n\n## API\n\n### [copy](index.js#L50)\n\nCopy a descriptor from one object to another.\n\n**Params**\n\n* `receiver` **{Object}**: The target object\n* `provider` **{Object}**: The provider object\n* `from` **{String}**: The key to copy on provider.\n* `to` **{String}**: Optionally specify a new key name to use.\n* `returns` **{Object}**\n\n**Example**\n\n```js\nfunction App() {\n this.cache = {};\n}\nApp.prototype.set = function(key, val) {\n this.cache[key] = val;\n return this;\n};\nObject.defineProperty(App.prototype, 'count', {\n get: function() {\n return Object.keys(this.cache).length;\n }\n});\n\ncopy(App.prototype, 'count', 'len');\n\n// create an instance\nvar app = new App();\n\napp.set('a', true);\napp.set('b', true);\napp.set('c', true);\n\nconsole.log(app.count);\n//=> 3\nconsole.log(app.len);\n//=> 3\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [is-accessor-descriptor](https://www.npmjs.com/package/is-accessor-descriptor): Returns true if a value has the characteristics of a valid JavaScript accessor descriptor. | [homepage](https://github.com/jonschlinkert/is-accessor-descriptor \"Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.\")\n* [is-data-descriptor](https://www.npmjs.com/package/is-data-descriptor): Returns true if a value has the characteristics of a valid JavaScript data descriptor. | [homepage](https://github.com/jonschlinkert/is-data-descriptor \"Returns true if a value has the characteristics of a valid JavaScript data descriptor.\")\n* [is-descriptor](https://www.npmjs.com/package/is-descriptor): Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… [more](https://github.com/jonschlinkert/is-descriptor) | [homepage](https://github.com/jonschlinkert/is-descriptor \"Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors.\")\n* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object \"Returns true if an object was created by the `Object` constructor.\")\n* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject \"Returns true if the value is an object and not an array or null.\")\n\n## Contributing\n\nThis document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs).\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). Or visit the [verb-readme-generator](https://github.com/verbose/verb-readme-generator) project to submit bug reports or pull requests for the readme layout template.\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-readme-generator && verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/copy-descriptor/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on June 09, 2016._", |
| 171 |
"maintainers": [ |
| 172 |
{ |
| 173 |
"name": "jonschlinkert", |
| 174 |
"email": "[email protected]" |
| 175 |
} |
| 176 |
], |
| 177 |
"time": { |
| 178 |
"modified": "2016-06-09T18:32:05.080Z", |
| 179 |
"created": "2015-12-28T10:28:49.609Z", |
| 180 |
"0.1.0": "2015-12-28T10:28:49.609Z", |
| 181 |
"0.1.1": "2016-06-09T18:32:05.080Z" |
| 182 |
}, |
| 183 |
"homepage": "https://github.com/jonschlinkert/copy-descriptor", |
| 184 |
"keywords": [ |
| 185 |
"copy", |
| 186 |
"descriptor" |
| 187 |
], |
| 188 |
"repository": { |
| 189 |
"type": "git", |
| 190 |
"url": "git+https://github.com/jonschlinkert/copy-descriptor.git" |
| 191 |
}, |
| 192 |
"author": { |
| 193 |
"name": "Jon Schlinkert", |
| 194 |
"url": "https://github.com/jonschlinkert" |
| 195 |
}, |
| 196 |
"bugs": { |
| 197 |
"url": "https://github.com/jonschlinkert/copy-descriptor/issues" |
| 198 |
}, |
| 199 |
"license": "MIT", |
| 200 |
"readmeFilename": "README.md", |
| 201 |
"_attachments": {} |
| 202 |
} |