{"_id":"tea-extend","_rev":"7-162e8634576c0e94102f202f60ffcc97","name":"tea-extend","description":"Shallow object merge utility.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"tea-extend","version":"0.1.0","description":"Shallow object merge utility.","author":{"name":"Jake Luer","email":"jake@qualiancy.com","url":"http://qualiancy.com"},"license":"MIT","keywords":[],"repository":{"type":"git","url":"git@github.com:qualiancy/tea-extend.git"},"engines":{"node":"*"},"main":"./index","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"chai":"*","component":"*","mocha":"*","mocha-phantomjs":"*"},"readme":"# tea-extend [![Build Status](https://secure.travis-ci.org/qualiancy/tea-extend.png?branch=master)](https://travis-ci.org/qualiancy/tea-extend)\n\n> Shallow object merge utility.\n\n## Installation\n\n### Node.js\n\n`tea-extend` is available on [npm](http://npmjs.org).\n\n    $ npm install tea-extend\n\n### Component\n\n`tea-extend` is available as a [component](https://github.com/component/component).\n\n    $ component install qualiancy/tea-extend\n\n## Usage\n\n### extend (destination, source, ...)\n\n* **@param** _{Object}_ destination \n* **@param** _{Object}_ sources ...\n* **@return** _{Object}_  destination extended\n\nFor each source, shallow merge its key/values to the\ndestinatino. Sources are read in order, meaning the same\nkey in a later source will overwrite the key's value earlier\nset.\n\n```js\nvar extend = require('tea-extend');\n\n// sample objects\nvar a = { hello: 'world' }\n  , b = { speak: 'loudly' };\n\n// change a\nextend(a, b);\n\n// shallow clone to c\nvar c = extend({}, a);\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Jake Luer <jake@qualiancy.com> (http://qualiancy.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"tea-extend@0.1.0","dist":{"shasum":"ab580bcc83a991dee2ebaca9f7567ec8cb2c4281","tarball":"https://registry.npmjs.org/tea-extend/-/tea-extend-0.1.0.tgz","integrity":"sha512-oORlQ/lyWHkm/9raSQ3fY0Wl/O2Yx9jMX3bBzbO+1eRiCmYkRFq2KDRx4cQ+VdsO/yxvI52AewlErQdu5eveYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDh+vJ7lY8CtIpB1Se7tF860GcwK6SUypLwMGFfRYfeYAiBKBHqgqByqgxdl7YCv7D9B8K2nNh18k01bVhJ8W2kesQ=="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"jakeluer","email":"jake@alogicalparadox.com"},"maintainers":[{"name":"jakeluer","email":"jake@alogicalparadox.com"}]},"0.2.0":{"name":"tea-extend","version":"0.2.0","description":"Shallow object merge utility.","author":{"name":"Jake Luer","email":"jake@qualiancy.com","url":"http://qualiancy.com"},"license":"MIT","keywords":[],"repository":{"type":"git","url":"git@github.com:qualiancy/tea-extend.git"},"engines":{"node":"*"},"main":"./index","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"chai":"*","component":"*","mocha":"*","mocha-phantomjs":"*"},"readme":"# tea-extend [![Build Status](https://secure.travis-ci.org/qualiancy/tea-extend.png?branch=master)](https://travis-ci.org/qualiancy/tea-extend)\n\n> Shallow object merge utility.\n\n## Installation\n\n### Node.js\n\n`tea-extend` is available on [npm](http://npmjs.org).\n\n    $ npm install tea-extend\n\n### Component\n\n`tea-extend` is available as a [component](https://github.com/component/component).\n\n    $ component install qualiancy/tea-extend\n\n## Usage\n\n### extend (destination, source, ...)\n\n* **@param** _{Object}_ destination \n* **@param** _{Object}_ sources ...\n* **@return** _{Object}_  destination extended\n\nFor each source, shallow merge its key/values to the\ndestinatino. Sources are read in order, meaning the same\nkey in a later source will overwrite the key's value earlier\nset.\n\n```js\nvar extend = require('tea-extend');\n\n// sample objects\nvar a = { hello: 'universe' }\n  , b = { speak: 'loudly' };\n\n// change a\nextend(a, b);\na.should.deep.equal({ hello: 'universe', speak: 'loudly' });\n\n// shallow clone to c\nvar c = extend({}, a);\na.language = 'en';\n\na.should.deep.equal({ hello: 'universe', speak: 'loudly', language: 'en' });\nc.should.deep.equal({ hello: 'universe', speak: 'loudly' });\n```\n\n\n### extend.include (props, ...)\n\n* **@param** _{String}_ each property to include as an argument\n* **@return** _{Function}_  reusable include function\n\nCreate a new object that only includes the properties\nspecified. Unlike `extend()`, the original objects\nwill not be modified.\n\nThis method will return a function that can be\nreused for the specified properties. Like `extend()`,\nthis function accepts an unlimited number of objects\nas parameters to draw from. Also, the same key in later\nspecified objects will overwrite earlier specified values.\n\n```js\nvar extend = require('tea-extend')\n  , include = extend.include('one', 'two');\n\nvar a = { one: 1, three: 3 }\n  , b = { zero: 0, two: 2 };\n\nvar c = include(a, b);\n\nc.should.deep.equal({ one: 1, two: 2 });\n```\n\n\n### extend.exclude (props, ...)\n\n* **@param** _{String}_ each property to exclude as an argument\n* **@return** _{Function}_  reusable exclude function\n\nCreate a new object that include all but the properties\nspecified. Unlike `extend()`, the original objects\nwill not be modified.\n\nThis method will return a function that can be\nreused for the specified properties. Like `extend()`,\nthis function accepts an unlimited number of objects\nas parameters to draw from. Also, the same key in later\nspecified objects will overwrite earlier specified values.\n\n```js\nvar extend = require('tea-extend')\n  , exclude = extend.exclude('one', 'two');\n\nvar a = { one: 1, three: 3 }\n  , b = { zero: 0, two: 2 };\n\nvar c = exclude(a, b);\n\nc.should.deep.equal({ three: 3, zero: 0 });\n```\n\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Jake Luer <jake@qualiancy.com> (http://qualiancy.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","readmeFilename":"README.md","_id":"tea-extend@0.2.0","dist":{"shasum":"a820ecc6bc662538c61fe7510f35db475314d5a6","tarball":"https://registry.npmjs.org/tea-extend/-/tea-extend-0.2.0.tgz","integrity":"sha512-jfDINmYOY20jjNrdXWK21a2MYbEdzDp7CsE/Vv9T8fVKNJ/TGBkIFUaLXhXOGwzKO8lAjmaDeVpxl16p0HnZwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwNwTYvqZZWvj47PSJM+yDsP34v8zytGw2ZLg2pGbDlAIgW1qJ1aBEFj8Jh6enrwC1Xb2Vlse1MR+2sjy6E02Wqb8="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"jakeluer","email":"jake@alogicalparadox.com"},"maintainers":[{"name":"jakeluer","email":"jake@alogicalparadox.com"}]}},"readme":"# tea-extend [![Build Status](https://secure.travis-ci.org/qualiancy/tea-extend.png?branch=master)](https://travis-ci.org/qualiancy/tea-extend)\n\n> Shallow object merge utility.\n\n## Installation\n\n### Node.js\n\n`tea-extend` is available on [npm](http://npmjs.org).\n\n    $ npm install tea-extend\n\n### Component\n\n`tea-extend` is available as a [component](https://github.com/component/component).\n\n    $ component install qualiancy/tea-extend\n\n## Usage\n\n### extend (destination, source, ...)\n\n* **@param** _{Object}_ destination \n* **@param** _{Object}_ sources ...\n* **@return** _{Object}_  destination extended\n\nFor each source, shallow merge its key/values to the\ndestinatino. Sources are read in order, meaning the same\nkey in a later source will overwrite the key's value earlier\nset.\n\n```js\nvar extend = require('tea-extend');\n\n// sample objects\nvar a = { hello: 'world' }\n  , b = { speak: 'loudly' };\n\n// change a\nextend(a, b);\n\n// shallow clone to c\nvar c = extend({}, a);\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Jake Luer <jake@qualiancy.com> (http://qualiancy.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","maintainers":[{"name":"jakeluer","email":"jake@alogicalparadox.com"}],"time":{"modified":"2022-06-27T04:19:42.894Z","created":"2012-11-19T17:35:41.030Z","0.1.0":"2012-11-19T17:35:51.257Z","0.2.0":"2012-12-09T03:32:08.424Z"},"author":{"name":"Jake Luer","email":"jake@qualiancy.com","url":"http://qualiancy.com"},"repository":{"type":"git","url":"git@github.com:qualiancy/tea-extend.git"}}