{"_id":"copy-utils","_rev":"10-059a2ae96701f214b9448bf3f0535d3f","name":"copy-utils","description":"Utility functions for copying properties from one JavaScript object to another","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.1":{"name":"copy-utils","version":"0.1.1","description":"Utility functions for copying properties from one JavaScript object to another","main":"index.js","scripts":{"test":"make"},"repository":{"type":"git","url":"git://github.com/radubrehar/copy-utils.git"},"keywords":["copy","utils","utility","copyIf","properties"],"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/copy-utils/issues"},"_id":"copy-utils@0.1.1","dist":{"shasum":"d862a041fccd92700cd4261e143b6504faf73268","tarball":"https://registry.npmjs.org/copy-utils/-/copy-utils-0.1.1.tgz","integrity":"sha512-u14CokA54QrWTdL2UEu7oFQiagOAzBjsHlLAbNV8oolccQBj0cGMrAQJzLQ690H6qFj94w2vocz1zspswbDCAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6NVVyt9z5bofJyaTUeW1p8aUL/FrJTdy5HoSCVbB0pAiEA7MKZbmJofnWnRAPvbmmn/f/M2QglZAuTJtIfJ5JWW+M="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.0.0":{"name":"copy-utils","version":"1.0.0","description":"Utility functions for copying properties from one JavaScript object to another","main":"index.js","scripts":{"test":"make test","test-w":"make test-w","test-debug":"./node_modules/.bin/mocha --debug-brk"},"devDependencies":{"mocha":"~1.21.0","should":"~4.0.4"},"repository":{"type":"git","url":"git://github.com/radubrehar/copy-utils.git"},"keywords":["copy","utils","utility","copyIf","properties"],"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/copy-utils/issues"},"_id":"copy-utils@1.0.0","dist":{"shasum":"bdad0b9545799d787d5d0c4c0b082a2a94e369f7","tarball":"https://registry.npmjs.org/copy-utils/-/copy-utils-1.0.0.tgz","integrity":"sha512-oTvm6T1nSJ+SsoPF0ndZzPfkPh0tHLEp18k6/ABN2cynChXOhxpXNU1E7/Sgn/Da5gyFjRk9Cxa36TaVMkoaSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIElUItIdTTy45SlStbGkKhZOWqz5Ue1CmiklwhYzaRuRAiBRem+fzswvtW+5D8G5MiA0+v3c2THTt1hK2CYYL4ac4Q=="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]}},"readme":"# copy-utils\n\n> Utility functions for copying properties from one JavaScript object to another\n\n## Install\n\n```sh\n$ npm install copy-utils\n```\n\n## Usage\n\n```js\nvar utils = require('copy-utils')\n```\n\n## API\n\nFor all methods below, the first param is the source object from which to copy\n\n### copy(src, dest) -> dest\n\nCopies all properties from source to destination. Returns the destination object.\n\nIf no dest is specified, it will be asigned an empty object.\n\n```js\nutils.copy(src, dest)\nvar person = { name: 'john', age: 5}\nvar clone = {age: 1}\nutils.copy(person, clone) // -> clone.age == 5, clone.name = 'john'\n```\n\n### copyIf(src, dest) -> dest\n\nCopies all properties from source to destination, if the property does not exist into the destination (that is, if the destination has an undefined value in the corresponding key)","maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}],"time":{"modified":"2022-06-13T23:18:37.325Z","created":"2014-08-27T11:28:29.802Z","0.1.1":"2014-08-27T11:28:32.477Z","1.0.0":"2014-09-22T07:06:00.068Z"},"readmeFilename":"README.md","keywords":["copy","utils","utility","copyIf","properties"],"repository":{"type":"git","url":"git://github.com/radubrehar/copy-utils.git"},"author":{"name":"Radu Brehar"},"bugs":{"url":"https://github.com/radubrehar/copy-utils/issues"},"license":"MIT"}