{"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}],"keywords":["copy","object","properties","setter","getter"],"dist-tags":{"latest":"2.0.1"},"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"description":"copy an object's properties to another object","readme":"copy-to\n=======\n\n[![Build Status](https://travis-ci.org/node-modules/copy-to.svg?branch=master)](https://travis-ci.org/node-modules/copy-to)\n\ncopy an object's properties to another one, include propertiy, getter and setter.\n\n## Install\n\n```\nnpm install copy-to\n```\n\n## Usage\n\n```js\ncopy(src).to(des);\ncopy(src).toCover(des);\ncopy(src).override(des);\n\ncopy(src).pick('proName1', 'proName2').to(des);\ncopy(src).pick('proName1', 'proName2').toCover(des);\ncopy(src).pick('proName1', 'proName2').override(des);\n\ncopy(src).and(other).to(des);\ncopy(src).and(other).toCover(des);\ncopy(src).and(second).and(third).to(des);\n\ncopy(src).and(other).pick('proName1', 'proName2').to(des);\ncopy(src).and(other).pick('proName1', 'proName2').toCover(des);\ncopy(src).and(second).and(third).pick('proName1', 'proName2').to(des);\n```\n\nIt won't copy access(getter / setter) by default, if you want to copy them, please use:\n\n```js\ncopy(src).withAccess().and(other).to(des);\n```\n\n## Example\n\n```js\nvar copy = require('copy-to');\n\nvar src = {\n  _name: 'foo',\n  set name(val) {\n    this._name = val;\n  },\n  get name() {\n    return this._name;\n  },\n  show: function () {\n    console.log(this._name);\n  }\n};\n\nvar des = {\n  _name: 'bar'\n};\n\ncopy(src).to(des);\ncopy(src).toCover(des);\ncopy(src).pick('_name', 'name').to(des);\ncopy(src).pick('_name', 'name').toCover(des);\n```\n\n## License\nMIT\n","repository":{"type":"git","url":"git://github.com/node-modules/copy-to.git"},"users":{"tunnckocore":true,"samhwang1990":true,"l3au":true,"qqqppp9998":true,"cwagner":true,"monjer":true,"brainpoint":true,"snowdream":true},"bugs":{"url":"https://github.com/node-modules/copy-to/issues"},"license":"MIT","versions":{"0.0.1":{"name":"copy-to","version":"0.0.1","description":"copy an object's properties to another object","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/dead-horse/copy-to.git"},"keywords":["copy","object","properties","setter","getter"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/copy-to/issues"},"homepage":"https://github.com/dead-horse/copy-to","_id":"copy-to@0.0.1","dist":{"shasum":"8535574f1e5302995299996b260b32b2b47145ff","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/copy-to/-/copy-to-0.0.1.tgz","integrity":"sha512-zSpo1BQ50IYUfOoWG2OXRProXCiIMfMCQKjRDyTN+thjXOtM+oa44GUbhhwQVCDChZlGiVkYnDlzLEAXekqz8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBf22jL6ADuI6Dk41Kj5SgzuWsE75OH0M52Sw/URIBVAIhALrSqSeQbTfBCNc5BpKdrhwB1MxY00DzxqB5YGCTgK2K"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"dead_horse@qq.com"},"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}]},"0.0.2":{"name":"copy-to","version":"0.0.2","description":"copy an object's properties to another object","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/dead-horse/copy-to.git"},"keywords":["copy","object","properties","setter","getter"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/copy-to/issues"},"homepage":"https://github.com/dead-horse/copy-to","_id":"copy-to@0.0.2","dist":{"shasum":"4c82fda6a679febe2fe8c725ba07b2e2841327e0","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/copy-to/-/copy-to-0.0.2.tgz","integrity":"sha512-e6kFiAjyLWctplD8H1+r6PZH35iUFD/RZrZiY87IMejZHYqluC7YkIalrXFJhyUAgFdoS/XLfHYybG1EXveqpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBrMTTO9ki179hLHOPrdloxCTyZEPerCkW7Vw5x3+vSAIgWPX+ZB3FkDeNUHa1rM3XVed1ag/tpNnwdB6yAFHq4zw="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"dead_horse@qq.com"},"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}]},"0.0.3":{"name":"copy-to","version":"0.0.3","description":"copy an object's properties to another object","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/dead-horse/copy-to.git"},"keywords":["copy","object","properties","setter","getter"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/copy-to/issues"},"homepage":"https://github.com/dead-horse/copy-to","_id":"copy-to@0.0.3","dist":{"shasum":"1643f8f8b6270a50e641aca1fb570aa214d5bcd7","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/copy-to/-/copy-to-0.0.3.tgz","integrity":"sha512-Qxp//O4oUwlOCwbOQKxtvYEryu9odu3/7zySqoOuHiNi1PXhFdF23OOci0mlGN7ek6qigJNh+FXQy4IBjahiWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFoYnZ4zPbZxY3uAj5A8B9GLRlNiUb9KBakKdE2DirqWAiAlS2sVrtJia2AR8By3zV5OVKs4pSx2kX7ss5/vSGqKuw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"dead_horse@qq.com"},"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}]},"1.0.0":{"name":"copy-to","version":"1.0.0","description":"copy an object's properties to another object","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/node-modules/copy-to.git"},"keywords":["copy","object","properties","setter","getter"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/copy-to/issues"},"homepage":"https://github.com/node-modules/copy-to","_id":"copy-to@1.0.0","dist":{"shasum":"272f8a2ad039b58284b2367cdca3be27842c04fb","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/copy-to/-/copy-to-1.0.0.tgz","integrity":"sha512-xYMQZ2esZPB33c0HA/eG/Z0SoacJ678AoUFyKW/YyLiCE77XVP6cZVbU8c/sX5bPKGJaqkjMP2pJ52LvfIJ3Ow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBd69LywQu51WD1Eo4ZCE8UaB+qcuCRGtqRJKOIRygbKAiEAmoQYwmr2GCuEDFyM7sZE9woOxYGE+R7xHIxIEA8ZcNs="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"dead_horse@qq.com"},"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}]},"1.0.1":{"name":"copy-to","version":"1.0.1","description":"copy an object's properties to another object","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/node-modules/copy-to.git"},"keywords":["copy","object","properties","setter","getter"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/copy-to/issues"},"homepage":"https://github.com/node-modules/copy-to","devDependencies":{"mocha":"*","should":"*"},"_id":"copy-to@1.0.1","dist":{"shasum":"080e25e28206a2904633516781acca45efb081ca","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/copy-to/-/copy-to-1.0.1.tgz","integrity":"sha512-+0O+Sr92gJ641s0lji1t+vfcpYewpEBYiFhTUAijTBtv6XDQ8wzvgVN3I19TWmJlY8SBEjbaLoJX1lulx2WSNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKTylq4oT5JcoHHWRz3Bpamrt3YH1Xn+63LrMQXz9KEAiAP0y2kAgl8Ya1h4O81yfXs6SRHywgfuLB2naznMQ+6lA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"dead_horse@qq.com"},"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}]},"2.0.0":{"name":"copy-to","version":"2.0.0","description":"copy an object's properties to another object","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/node-modules/copy-to.git"},"keywords":["copy","object","properties","setter","getter"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/copy-to/issues"},"homepage":"https://github.com/node-modules/copy-to","devDependencies":{"mocha":"*","should":"*"},"gitHead":"a23a7c7856877d548b2341dda08b319c9ad60ff6","_id":"copy-to@2.0.0","_shasum":"86c67ae8670f662209c703befe2814cad9320b88","_from":".","_npmVersion":"2.0.0-beta.3","_npmUser":{"name":"anonymous","email":"dead_horse@qq.com"},"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}],"dist":{"shasum":"86c67ae8670f662209c703befe2814cad9320b88","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/copy-to/-/copy-to-2.0.0.tgz","integrity":"sha512-y8W0IMJLrMOgr+sx9TzBClK7oEST28FL+jVyBVY0tN/G3uTcqau8ivTjA0iU2Bex4H+dGVUYH6cqgt2HQfqL/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0gQHVTlfvKsVYeGLw2skASEunosQfPNjk7L4H5RNF6gIhAOJdE+q+5rZF84z/2JDNc+bohZXps7bmqPtSL67MjBiI"}]}},"2.0.1":{"name":"copy-to","version":"2.0.1","description":"copy an object's properties to another object","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/node-modules/copy-to.git"},"keywords":["copy","object","properties","setter","getter"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/copy-to/issues"},"homepage":"https://github.com/node-modules/copy-to","devDependencies":{"mocha":"*","should":"*"},"gitHead":"16cc01116fbb05e48ebf96e8e8f9b14cf2a4fba1","_id":"copy-to@2.0.1","_shasum":"2680fbb8068a48d08656b6098092bdafc906f4a5","_from":".","_npmVersion":"2.0.0-beta.3","_npmUser":{"name":"anonymous","email":"dead_horse@qq.com"},"maintainers":[{"name":"anonymous","email":"dead_horse@qq.com"}],"dist":{"shasum":"2680fbb8068a48d08656b6098092bdafc906f4a5","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/copy-to/-/copy-to-2.0.1.tgz","integrity":"sha512-3DdaFaU/Zf1AnpLiFDeNCD4TOWe3Zl2RZaTzUvWiIk5ERzcCodOE20Vqq4fzCbNoHURFHT4/us/Lfq+S2zyY4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNhf6WPX4b0I5kFxgvNnMy4v8X3j1+OaUlgz/XqL6WNAiBfkckdIMgVL+8zEfHAN+RiTZ5ud6MAqUgdse1bn0O+EA=="}]}}},"name":"copy-to","time":{"modified":"2022-06-13T23:18:24.827Z","created":"2014-03-26T15:41:27.477Z","0.0.1":"2014-03-26T15:41:27.477Z","0.0.2":"2014-03-27T02:40:38.180Z","0.0.3":"2014-04-01T09:50:44.031Z","1.0.0":"2014-04-23T17:56:49.082Z","1.0.1":"2014-04-24T05:34:46.367Z","2.0.0":"2014-10-21T16:17:29.179Z","2.0.1":"2014-10-26T06:33:15.488Z"},"readmeFilename":"README.md","homepage":"https://github.com/node-modules/copy-to"}