{"_id":"delegate-properties","_rev":"8-4dbe20806107d661203ab35b14358bde","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"},"versions":{"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","tarball":"https://registry.npmjs.org/delegate-properties/-/delegate-properties-0.1.1.tgz","integrity":"sha512-B4kHMY4uM8uyUmwEAvQuY11gzgFdR1W8Zv8oj3d31uWe3PmwKDOANLf+Xz/zYk5d95i+Zvs4DduqdjjuDtg4Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjKfmPjjtOc7Rhd9/j14j/O0ko1RDiJtJZiCS8xiRuiAiBbFuBIEcilhwAx58EfSS5NpBvRX+nJ7S1e+rPyHnzxEg=="}]}},"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","tarball":"https://registry.npmjs.org/delegate-properties/-/delegate-properties-0.1.2.tgz","integrity":"sha512-OJ7oARoksJ5kystH/cRWla86jo/49INHTJ95kldhKOilyseo/oG37LgX7UH84vyUc3jGcETlaHDnoI5d/nEO2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICroymD7X5rL8XTbM0NcEcByLtRwxN3TQ6IPra8SILwoAiEAlo9wdu+iPx12TPxAjp/sC3yKTRb4KWquaboRWbZNFpI="}]}},"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","tarball":"https://registry.npmjs.org/delegate-properties/-/delegate-properties-0.2.0.tgz","integrity":"sha512-9n1ycHdi1PLB+jlfUKcYPmDCWclQs//eYTmgy5rci1j5aHw1dK28qyzEiYLSkxZQ1+uxcawZn4afB7+xqj/0Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsmPDLerfjIgUTNIbdrG04Bd5Vdo91Rf/32u3xxj28DgIhAPp5xnofyJBcKTycB/2atzx32awPBj9MDBCmvWpYXksK"}]}},"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","tarball":"https://registry.npmjs.org/delegate-properties/-/delegate-properties-0.2.1.tgz","integrity":"sha512-vJVvp2c7vlYMrr7gsBUArHt/+WUjbdQSLcfAbmjOE3PAJEUSLxug9zdutncedd0nd8Z0wIFh1H6AptHL+8wCIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhuIFOo/hX80fIZgT9ehqG+GiJ56A/pgFm94Quh+p+eAIhAMA3bKsi8xzP8/g+MSRmMAj60Akxv4h3bcefwDOVYPu/"}]}},"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","tarball":"https://registry.npmjs.org/delegate-properties/-/delegate-properties-0.3.0.tgz","integrity":"sha512-niUmvr3HY7OwrD62tddB1dVlp/WjBMAVaEjBJNSHsq+fo14oi7QI0KnL/0kn8Q+fW53AGYDdgkExV0rao8AY1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDA9CTnb7taS/m+HEj8jmNl0+P1bigseel+9fG7PPGiKAiADTBmrp9+J62hQIVuyPtLMp8RhGLfdMuzRmUJOt7HA9A=="}]}},"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","tarball":"https://registry.npmjs.org/delegate-properties/-/delegate-properties-0.4.0.tgz","integrity":"sha512-2SsDeBs+Ehv3s1URXOxZcssqp9fVo7bUKdSuUhKOVcqvWYH6ABuAyQUa01QBHKK362lsK4H95D9voTAqr4T8jA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFj5CqsIxATDqGJenkGVrQSC84Wt3p6cCboT7HITLstUAiAZo6tLuFisix5XJQHaxvZzTBatfllA1rUjgr3V8KozuA=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/delegate-properties-0.4.0.tgz_1471061506904_0.06703447876498103"}}},"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._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-14T23:50:26.102Z","created":"2015-08-13T02:43:37.056Z","0.1.1":"2015-08-13T02:43:37.056Z","0.1.2":"2015-08-13T02:49:01.438Z","0.2.0":"2015-08-13T03:33:00.009Z","0.2.1":"2015-08-14T15:26:56.658Z","0.3.0":"2015-09-06T11:04:27.702Z","0.4.0":"2016-08-13T04:11:48.565Z"},"homepage":"https://github.com/jonschlinkert/delegate-properties","keywords":["define","define-property","delegate","enumerable","key","non","non-enumerable","object","prop","properties","property","value"],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delegate-properties.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/delegate-properties/issues"},"license":"MIT","readmeFilename":"README.md"}