{"_id":"obj-extend","_rev":"324168","name":"obj-extend","description":"Extend objects easily in node.js","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"mlmorg","email":"matt@mlmorg.com"}],"time":{"modified":"2021-06-04T01:53:15.000Z","created":"2012-10-19T19:05:00.920Z","0.1.0":"2012-10-19T19:05:00.920Z"},"users":{},"author":{"name":"Matt Morgan","email":"matt@mlmorg.com"},"repository":{"type":"git","url":"https://github.com/mlmorg/obj-extend"},"versions":{"0.1.0":{"name":"obj-extend","version":"0.1.0","author":{"name":"Matt Morgan","email":"matt@mlmorg.com"},"description":"Extend objects easily in node.js","homepage":"https://github.com/mlmorg/obj-extend","repository":{"type":"git","url":"https://github.com/mlmorg/obj-extend"},"main":"./lib/obj-extend","directories":{"lib":"./lib"},"engines":{"node":"*"},"license":"MIT","_id":"obj-extend@0.1.0","dist":{"shasum":"bb448a4775fb95eb34a781f908bbac2df23dbb5b","size":1679,"noattachment":false,"key":"/obj-extend/-/obj-extend-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/obj-extend/download/obj-extend-0.1.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"mlmorg","email":"mlmorg@gmail.com"},"maintainers":[{"name":"mlmorg","email":"matt@mlmorg.com"}],"publish_time":1350673500920,"_cnpm_publish_time":1350673500920,"_hasShrinkwrap":false}},"readme":"# obj-extend\n\nWhen called, this module simply sets all of the properties of each source\nobject onto the destination object (the first argument). Every property with\nthe same name is overridden in the order in which they were passed.\n\n## Installation\n\n``` bash\n$ npm install obj-extend\n```\n\n## Usage\n\n``` javascript\nvar extend = require('obj-extend');\n\nvar Person = function (name) {\n  this.name = name;\n};\n\nPerson.prototype = extend(events.EventEmitter.prototype, {\n\n  emitName: function () {\n    this.emit('name', this.name);\n  }\n\n});\n```\n","_attachments":{},"homepage":"https://github.com/mlmorg/obj-extend","license":"MIT"}