{"_id":"forward-object","_rev":"231664","name":"forward-object","description":"Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:34.000Z","created":"2015-08-07T01:05:29.724Z","0.1.1":"2015-08-07T14:55:54.538Z","0.1.0":"2015-08-07T01:05:29.724Z"},"users":{},"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/forward-object.git"},"versions":{"0.1.1":{"name":"forward-object","description":"Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.","version":"0.1.1","homepage":"https://github.com/doowb/forward-object","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/forward-object.git"},"bugs":{"url":"https://github.com/doowb/forward-object/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"verb":{"related":{"list":[]}},"gitHead":"e860c22bf55f31e58ee8d48eaed450075069f72f","_id":"forward-object@0.1.1","_shasum":"e04f80aaefd1d91fa60daaa1014628c403d68b0c","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.0","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"e04f80aaefd1d91fa60daaa1014628c403d68b0c","size":2347,"noattachment":false,"key":"/forward-object/-/forward-object-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/forward-object/download/forward-object-0.1.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1438959354538,"_cnpm_publish_time":1438959354538,"_hasShrinkwrap":false},"0.1.0":{"name":"forward-object","description":"Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.","version":"0.1.0","homepage":"https://github.com/doowb/forward-object","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/forward-object.git"},"bugs":{"url":"https://github.com/doowb/forward-object/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"verb":{"related":{"list":[]}},"gitHead":"ecefcc45e81cbedc6d9dd0ee5c3da555b8dd0f99","_id":"forward-object@0.1.0","_shasum":"2260d1e718c69437b992bb35ebef885cd3f8f700","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.0","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"2260d1e718c69437b992bb35ebef885cd3f8f700","size":2211,"noattachment":false,"key":"/forward-object/-/forward-object-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/forward-object/download/forward-object-0.1.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1438909529724,"_cnpm_publish_time":1438909529724,"_hasShrinkwrap":false}},"readme":"# forward-object [![NPM version](https://badge.fury.io/js/forward-object.svg)](http://badge.fury.io/js/forward-object)  [![Build Status](https://travis-ci.org/doowb/forward-object.svg)](https://travis-ci.org/doowb/forward-object)\n\n> Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i forward-object --save\n```\n\n## Usage\n\n```js\nvar forwardObject = require('forward-object');\n```\n\n## API\n\n### [forward](index.js#L37)\n\nCopy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.\n\n**Params**\n\n* `receiver` **{Object}**: Object to receive properties.\n* `provider` **{Object}**: Object providing properties.\n* `keys` **{Array}**: Optional array of keys to foward.\n* `returns` **{Object}**: Modified `receiver` object with properties from `provider`\n\n**Example**\n\n```js\nvar receiver = {};\nvar provider = {\n  name: 'provider',\n  upper: function (str) {\n    return '[' + this.name + '] ' + str.toUpperCase();\n  }\n};\nvar receiver = forward(receiver, provider);\nreceiver.name = 'receiver';\nconsole.log(receiver.upper('foo'));\n//=> [provider] FOO\n```\n\n## Related projects\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/forward-object/issues/new)\n\n## Author\n\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb)\n\n## License\n\nCopyright © 2015 Brian Woodward\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 07, 2015._","_attachments":{},"homepage":"https://github.com/doowb/forward-object","bugs":{"url":"https://github.com/doowb/forward-object/issues"},"license":"MIT"}