{"_id":"mix-into","_rev":"1745596","name":"mix-into","description":"Mix objects into other objects","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:24:05.000Z","created":"2014-01-16T23:07:05.790Z","0.4.0":"2014-05-20T00:04:28.354Z","0.3.1":"2014-04-17T15:56:31.412Z","0.3.0":"2014-04-17T15:56:05.658Z","0.2.0":"2014-04-17T15:41:58.604Z","0.1.3":"2014-01-21T20:05:44.319Z","0.1.2":"2014-01-21T17:03:16.421Z","0.1.0":"2014-01-16T23:07:05.790Z"},"users":{},"author":{"name":"Scott Corgan"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"versions":{"0.4.0":{"name":"mix-into","version":"0.4.0","description":"Mix objects into other objects","main":"index.js","scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"keywords":["mix","into","objects","extend"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"dependencies":{"deap":"^0.2.2"},"homepage":"https://github.com/scottcorgan/mix-into","_id":"mix-into@0.4.0","_shasum":"b87f19b6a4638a7419329a9e32586d5af38a5b13","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"b87f19b6a4638a7419329a9e32586d5af38a5b13","tarball":"http://registry-npm.ywwl.com/mix-into/download/mix-into-0.4.0.tgz","integrity":"sha512-Ye5Rf+UyKqvEFiTxXf7yjU3kRFOw0+B2VET2ceiiSatzezked7LyXRgVEmxAmrFUN1PYusldFibZ6cS+uZ+uAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyMQyQ2ByYiC+ZZhGLOeqvnGk0o7pUtjAOjCFyAp2e/AiEAuBfKSZD4aIiUmcRcRIGiobt3NmD67rFg/9BeO2Xzj6o="}],"size":1946,"noattachment":false,"key":"/mix-into/-/mix-into-0.4.0.tgz"},"publish_time":1400544268354,"_cnpm_publish_time":1400544268354},"0.3.1":{"name":"mix-into","version":"0.3.1","description":"Mix objects into other objects","main":"index.js","scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"keywords":["mix","into","objects","extend"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"dependencies":{"deap":"^0.2.2"},"homepage":"https://github.com/scottcorgan/mix-into","_id":"mix-into@0.3.1","dist":{"shasum":"2edd85528d5209c40f9608f40fbc743cd09cd380","tarball":"http://registry-npm.ywwl.com/mix-into/download/mix-into-0.3.1.tgz","integrity":"sha512-6Spnwm1odKpa5re4gOVW7jtSFD5f5zkiq27PCRw4PHj65M/yp9hUZ4EgcZEnX00S9gfs/vQsh8Q0IBXSb9rGxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDa0iRc2GU0u9J1TWFKKat/ht+rHQOshURu1GtNgdHixQIhAII2bBnVc6kfdPYcgcTyV21K1h31zkLCQUYB6DFj7XFS"}],"size":1871,"noattachment":false,"key":"/mix-into/-/mix-into-0.3.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1397750191412,"_cnpm_publish_time":1397750191412},"0.3.0":{"name":"mix-into","version":"0.3.0","description":"Mix objects into other objects","main":"index.js","scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"keywords":["mix","into","objects","extend"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"dependencies":{"copy":"0.0.1","deap":"^0.2.2"},"homepage":"https://github.com/scottcorgan/mix-into","_id":"mix-into@0.3.0","dist":{"shasum":"a0d743b221f291e0c4cc6d4a56b5659d730d746c","tarball":"http://registry-npm.ywwl.com/mix-into/download/mix-into-0.3.0.tgz","integrity":"sha512-ltjsfkZFhyV/6SP44a1oB3EtYTVrYMj2AZvZVd4fMlyeshnFRxCJbNKVNUd5pSS2CYwZqCe7NPCSS3cAxZ+sNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFN0TN/9E2i4/pq+kqN9dGUHScu53CrYuO4gc39lqpJ+AiEA9K2pZrwiC7ZCxJt1ANg07mzYI5lfs17Acr2JpQR6fmI="}],"size":1876,"noattachment":false,"key":"/mix-into/-/mix-into-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1397750165658,"_cnpm_publish_time":1397750165658},"0.2.0":{"name":"mix-into","version":"0.2.0","description":"Mix objects into other objects","main":"index.js","scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"keywords":["mix","into","objects","extend"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"dependencies":{"copy":"0.0.1"},"homepage":"https://github.com/scottcorgan/mix-into","_id":"mix-into@0.2.0","dist":{"shasum":"71dd5b08614c9a6e5e84450a5ff72089b730fdf6","tarball":"http://registry-npm.ywwl.com/mix-into/download/mix-into-0.2.0.tgz","integrity":"sha512-vlTQuioDe25Jj8Mb3B67i/b3RQHoZ0r/wunPGFwFkVQ1ZssQXEc+VfDQj85cyTJ+qhVuQLq2EZ7cO9RwZBngfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiKCp2GeT5hzHePgnlpgJpEKP6GCEt1tdRmDtNWtTFlgIgDErLojrGaEpghuW5uYHM5JClLmjp2a+k9FhmdCB2aik="}],"size":1858,"noattachment":false,"key":"/mix-into/-/mix-into-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1397749318604,"_cnpm_publish_time":1397749318604},"0.1.3":{"name":"mix-into","version":"0.1.3","description":"Mix objects into other objects","main":"index.js","scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"keywords":["mix","into","objects","extend"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"dependencies":{"clone":"~0.1.11"},"_id":"mix-into@0.1.3","dist":{"shasum":"a741dba7104069d035ba6e099be7074d6f418ea2","tarball":"http://registry-npm.ywwl.com/mix-into/download/mix-into-0.1.3.tgz","integrity":"sha512-0BwBS3PQk3116RaafnWy48eoMzhE+asFEIEnsNgO7NPbDBxKC6PyTsFIJnWWeWJzpWhQJKSh7Jl9FGbHuqE2HQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxXk5k2dCUJnXa47qPN/1kYzgU+l4+BwbbGYmMotYQDgIgNC9O6mA+vBaWtOFOOU6lKHDbpiXZTFRJ/9ko0VhfPsM="}],"size":1852,"noattachment":false,"key":"/mix-into/-/mix-into-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1390334744319,"_cnpm_publish_time":1390334744319},"0.1.2":{"name":"mix-into","version":"0.1.2","description":"Mix objects into other objects","main":"index.js","scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"keywords":["mix","into","objects","extend"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"_id":"mix-into@0.1.2","dist":{"shasum":"900aa6d795da8cef48554156bcd98f0d04fb5585","tarball":"http://registry-npm.ywwl.com/mix-into/download/mix-into-0.1.2.tgz","integrity":"sha512-EzCuK/9L6b0Yn8jzLp+z9gEeX3scu0nWbjfvMtH3p60a3ptvcVt23Y6XM79A2XgfnWaeE4Wiym1D+3MCXmxdUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDneDD324GexFwdEQOoFqE0L+mX3DoCIYdUTu8RZ8nNgQIhAIzjrsfV9/4jWyNpS8AvX8op9xadXMtqfPTnKejmiUyX"}],"size":1808,"noattachment":false,"key":"/mix-into/-/mix-into-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1390323796421,"_cnpm_publish_time":1390323796421},"0.1.0":{"name":"mix-into","version":"0.1.0","description":"Mix objects into other objects","main":"index.js","scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/mix-into.git"},"keywords":["mix","into","objects","extend"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"_id":"mix-into@0.1.0","dist":{"shasum":"7f7f9333acfc777462f048d446d7c24eb6f2462b","tarball":"http://registry-npm.ywwl.com/mix-into/download/mix-into-0.1.0.tgz","integrity":"sha512-QeFxIfcw3YTclvhGS+RqPS8zVJfhWMVAROjDcULIrb1IDrq41cVmjCcB9kpzft1L3YuRsWxkvK8GF3+krRpwHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEiPZFW47uJKM/RAao4B2a9i+NbZvQPoNOYNbXeQ8EBBAiEA63W8V4NO3DHl3SDvUu9UsFpwv6r5Livikxws50F+D+4="}],"size":1161,"noattachment":false,"key":"/mix-into/-/mix-into-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1389913625790,"_cnpm_publish_time":1389913625790}},"readme":"# mix-into\n\nMix objects into other objects.\n\nBy adopting the \"mix into\" methodology, your code avoids the mess of \"add this mixin; add this mixin; add this mixin\". Istead, you can dynamically nest and defer the the mixin process.\n\n## Install\n\n```\nnpm isntall mix-into --save\n```\n\n## Usage\n\n#### Basic\n\n```js\nvar mix = require('mix-into');\nvar baseMixin = {\n  baseValue: 'some value',\n  baseMethod: function () {\n    return baseValue;\n  }\n};\n\nvar obj = {};\n\nmix(baseMixin).into(obj);\n\nobj.baseMethod(); // OUTPUTS: 'some value'\n```\n\n#### Partial Applied Mixin\n\n```js\nvar mix = require('mix-into');\nvar baseMixin = mix({\n  baseValue: 'some value',\n  baseMethod: function () {\n    return baseValue;\n  }\n});\nvar obj = {};\n\nbaseMixin.mixInto(obj);\n\nobj.baseMethod() // OUTPUS: 'some value'\n```\n\n#### Nested Mixins\n\n```js\nvar mix = require('mix-into');\nvar baseMixin = mix({\n  baseValue: 'some value',\n  baseMethod: function () {\n    return baseValue;\n  }\n});\n\nvar obj = {\n  objMethod: function () {\n    return this.baseValue;\n  }\n};\nvar obj2 = {};\n\nbaseMixin.mixInto(obj);\nobj.mixInto(obj2); // mixInto method added to each object that's mixed into\n\nobj2.objMethod() // OUTPUS: 'some value'\n```\n\n#### Create New Object from Mixin\n\n```js\nvar mix = require('mix-into');\nvar baseMixin = mix({\n  value1: 'value1'\n});\n\nvar obj = baseMixin.create();\n\nconsole.log(obj.value1); // OUTPUTS: 'value1'\n```\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```","_attachments":{},"homepage":"https://github.com/scottcorgan/mix-into","bugs":{"url":"https://github.com/scottcorgan/mix-into/issues"},"license":"MIT"}