{"_id":"delegate-properties","_rev":"76958","name":"delegate-properties","description":"Deep-clone properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:24:47.000Z","created":"2015-08-13T02:43:37.056Z","0.4.0":"2016-08-13T04:11:48.565Z","0.3.0":"2015-09-06T11:04:27.702Z","0.2.1":"2015-08-14T15:26:56.658Z","0.2.0":"2015-08-13T03:33:00.009Z","0.1.2":"2015-08-13T02:49:01.438Z","0.1.1":"2015-08-13T02:43:37.056Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"versions":{"0.4.0":{"name":"delegate-properties","description":"Deep-clone properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.","version":"0.4.0","homepage":"https://github.com/jonschlinkert/delegate-properties","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"*"},"keywords":["define","define-property","delegate","enumerable","key","non","non-enumerable","object","prop","properties","property","value"],"verb":{"related":{"list":["define-property","delegate-object","forward-object","mixin-deep","mixin-object"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-generate-readme"]},"gitHead":"1c8ea95473fcff6e4bc289f208c5d238d574f767","_id":"delegate-properties@0.4.0","_shasum":"aaf972c33d7a55fd7335fd03134780c32d2f12d9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"aaf972c33d7a55fd7335fd03134780c32d2f12d9","size":2819,"noattachment":false,"key":"/delegate-properties/-/delegate-properties-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/delegate-properties/download/delegate-properties-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/delegate-properties-0.4.0.tgz_1471061506904_0.06703447876498103"},"directories":{},"publish_time":1471061508565,"_cnpm_publish_time":1471061508565,"_hasShrinkwrap":false},"0.3.0":{"name":"delegate-properties","description":"Deep-clone properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/delegate-properties","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"clone-deep":"^0.2.2","define-property":"^0.2.5"},"devDependencies":{"mocha":"*"},"keywords":["define","define-property","enumerable","key","non","non-enumerable","object","prop","property","value"],"verb":{"related":{"list":["mixin-deep","mixin-object","define-property","delegate-object","forward-object"]}},"gitHead":"69c6a4285c83c3860e0c75476dab5d0f48bc9c7d","_id":"delegate-properties@0.3.0","_shasum":"5c96c3ec37803d0c70b7633eccbfbc1b6352ec1c","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5c96c3ec37803d0c70b7633eccbfbc1b6352ec1c","size":2463,"noattachment":false,"key":"/delegate-properties/-/delegate-properties-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/delegate-properties/download/delegate-properties-0.3.0.tgz"},"directories":{},"publish_time":1441537467702,"_cnpm_publish_time":1441537467702,"_hasShrinkwrap":false},"0.2.1":{"name":"delegate-properties","description":"Deep-clone properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/delegate-properties","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","prepublish":"browserify -o browser.js -e index.js -s index --bare"},"dependencies":{"clone-deep":"^0.2.1","define-property":"^0.1.3","lazy-cache":"^0.1.0"},"devDependencies":{"mocha":"*"},"keywords":["define","define-property","enumerable","key","non","non-enumerable","object","prop","property","value"],"verb":{"related":{"list":["mixin-deep","mixin-object","define-property","delegate-object","forward-object"]}},"gitHead":"06d834504b06c00fadb5402d328224231625ef2b","_id":"delegate-properties@0.2.1","_shasum":"ab77ce230790eac6fe52b2088191ade5a4fbbd09","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ab77ce230790eac6fe52b2088191ade5a4fbbd09","size":2411,"noattachment":false,"key":"/delegate-properties/-/delegate-properties-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/delegate-properties/download/delegate-properties-0.2.1.tgz"},"directories":{},"publish_time":1439566016658,"_cnpm_publish_time":1439566016658,"_hasShrinkwrap":false},"0.2.0":{"name":"delegate-properties","description":"Deep-clone properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/delegate-properties","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","prepublish":"browserify -o browser.js -e index.js -s index --bare"},"dependencies":{"clone-deep":"^0.2.1","define-property":"^0.1.3"},"devDependencies":{"mocha":"*"},"keywords":["define","define-property","enumerable","key","non","non-enumerable","object","prop","property","value"],"verb":{"related":{"list":["mixin-deep","mixin-object","define-property","delegate-object","forward-object"]}},"gitHead":"06d834504b06c00fadb5402d328224231625ef2b","_id":"delegate-properties@0.2.0","_shasum":"d0b69654bb7d56c3f21b659b992000bc44e1d2a1","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d0b69654bb7d56c3f21b659b992000bc44e1d2a1","size":2370,"noattachment":false,"key":"/delegate-properties/-/delegate-properties-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/delegate-properties/download/delegate-properties-0.2.0.tgz"},"directories":{},"publish_time":1439436780009,"_cnpm_publish_time":1439436780009,"_hasShrinkwrap":false},"0.1.2":{"name":"delegate-properties","description":"Copy properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/delegate-properties","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","prepublish":"browserify -o browser.js -e index.js -s index --bare"},"dependencies":{"define-property":"^0.1.3"},"devDependencies":{"mocha":"*"},"keywords":["define","define-property","enumerable","key","non","non-enumerable","object","prop","property","value"],"verb":{"related":{"list":["mixin-deep","mixin-object","define-property","delegate-object","forward-object"]}},"gitHead":"f93a358bc706ce3957be2bf47ae5c9902ae333a4","_id":"delegate-properties@0.1.2","_shasum":"233d39c0b92e0e074395ff2b00104aa9ec5c49f2","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"233d39c0b92e0e074395ff2b00104aa9ec5c49f2","size":2328,"noattachment":false,"key":"/delegate-properties/-/delegate-properties-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/delegate-properties/download/delegate-properties-0.1.2.tgz"},"directories":{},"publish_time":1439434141438,"_cnpm_publish_time":1439434141438,"_hasShrinkwrap":false},"0.1.1":{"name":"delegate-properties","description":"Copy properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/delegate-properties","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","prepublish":"browserify -o browser.js -e index.js -s index --bare"},"dependencies":{"define-property":"^0.1.3"},"devDependencies":{"mocha":"*"},"keywords":["define","define-property","enumerable","key","non","non-enumerable","object","prop","property","value"],"verb":{"related":{"list":["mixin-deep","mixin-object","define-property","delegate-object","forward-object"]}},"gitHead":"f818370b6ebf21cd54f0cca0ebdb66fb7afea9c8","_id":"delegate-properties@0.1.1","_shasum":"00d6a0c4959e1614c011905c06d08e6b6e525552","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"00d6a0c4959e1614c011905c06d08e6b6e525552","size":2327,"noattachment":false,"key":"/delegate-properties/-/delegate-properties-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/delegate-properties/download/delegate-properties-0.1.1.tgz"},"directories":{},"publish_time":1439433817056,"_cnpm_publish_time":1439433817056,"_hasShrinkwrap":false}},"readme":"# delegate-properties [![NPM version](https://img.shields.io/npm/v/delegate-properties.svg?style=flat)](https://www.npmjs.com/package/delegate-properties) [![NPM downloads](https://img.shields.io/npm/dm/delegate-properties.svg?style=flat)](https://npmjs.org/package/delegate-properties) [![Build Status](https://img.shields.io/travis/jonschlinkert/delegate-properties.svg?style=flat)](https://travis-ci.org/jonschlinkert/delegate-properties)\n\nDeep-clone properties from one object to another and make them non-enumerable, or make existing properties on an object non-enumerable.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save delegate-properties\n```\n\n## Usage\n\n```js\nvar delegate = require('delegate-properties');\ndelegate(receiver, provider, clone);\n```\n\n**Params**\n\n* `receiver`: (**Object**) The object receiving properties\n* `provider`: (**Object**) The object providing properties\n\n## Examples\n\n### copy properties\n\nCopy properties and make them non-enumerable\n\n```js\nvar provider = {\n  upper: function(val) {\n    return val.toUpperCase();\n  },\n  lower: function(val) {\n    return val.toLowerCase();\n  }\n};\n\nvar receiver = {};\n// an existing properties in the `receiver` \n// object would be overwritten\ndelegate(receiver, provider);\n\nreceiver.upper('foo');\nreceiver.lower('BAR');\n\nconsole.log(receiver.upper('foo')); // 'FOO' \nconsole.log(receiver.lower('BAR')); // 'bar'\n\n// copied properties are non-enumerable\nconsole.log(receiver); // {}\nconsole.log(Object.keys(receiver)); // []\n```\n\n### make existing properties non-enumerable\n\n```js\nvar obj = {\n  upper: function(val) {\n    return val.toUpperCase();\n  },\n  lower: function(val) {\n    return val.toLowerCase();\n  }\n};\n\ndelegate(obj);\nconsole.log(obj) // {}\nobj.upper('foo') // 'FOO'\nobj.lower('BAR') // 'bar'\n```\n\n## About\n\n### Related projects\n\n* [define-property](https://www.npmjs.com/package/define-property): Define a non-enumerable property on an object. | [homepage](https://github.com/jonschlinkert/define-property \"Define a non-enumerable property on an object.\")\n* [delegate-object](https://www.npmjs.com/package/delegate-object): Copy properties from an object to another object, where properties with function values will be… [more](https://github.com/doowb/delegate-object) | [homepage](https://github.com/doowb/delegate-object \"Copy properties from an object to another object, where properties with function values will be invoked in the context of the receiver, and properties with non-function values are just copied.\")\n* [forward-object](https://www.npmjs.com/package/forward-object): Copy properties from an object to another object, where properties with function values will be… [more](https://github.com/doowb/forward-object) | [homepage](https://github.com/doowb/forward-object \"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* [mixin-deep](https://www.npmjs.com/package/mixin-deep): Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. | [homepage](https://github.com/jonschlinkert/mixin-deep \"Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.\")\n* [mixin-object](https://www.npmjs.com/package/mixin-object): Mixin the own and inherited properties of other objects onto the first object. Pass an… [more](https://github.com/jonschlinkert/mixin-object) | [homepage](https://github.com/jonschlinkert/mixin-object \"Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && 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/delegate-properties/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on August 13, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/delegate-properties","bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT"}