{"_id":"modelo","_rev":"294148","name":"modelo","description":"A JavaScript object inheritance utility.","dist-tags":{"latest":"4.2.3"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"time":{"modified":"2021-06-03T18:55:11.000Z","created":"2012-09-12T01:34:46.333Z","4.2.3":"2018-01-06T18:07:56.591Z","4.2.0":"2015-10-15T11:18:17.799Z","4.1.2":"2014-09-07T00:59:58.652Z","4.1.1":"2014-09-03T03:47:22.241Z","4.1.0":"2014-08-26T04:57:05.001Z","4.0.2":"2014-07-18T02:42:54.697Z","4.0.1":"2014-07-18T01:53:31.867Z","4.0.0":"2014-07-11T04:44:48.552Z","3.2.0":"2014-05-03T05:15:15.039Z","3.1.0":"2014-05-03T04:14:11.636Z","3.0.0":"2014-04-05T04:52:56.571Z","2.0.0":"2014-04-01T00:53:57.592Z","1.0.4":"2013-10-26T00:54:18.406Z","1.0.2":"2013-03-16T23:42:40.884Z","1.0.1":"2013-03-16T23:32:26.734Z","1.0.0":"2012-11-20T22:20:32.023Z","0.9.0":"2012-09-12T01:34:46.333Z"},"users":{"gregbabula":true},"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"versions":{"4.2.3":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.2.3","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"keywords":["class","classes","inherit","inherits","inheritance","mixin","mix-in"],"main":"modelo/modelo.js","files":["modelo/modelo.js"],"scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"augment":"^4.3.0","benchmark":"^1.0.0","cli-table":"^0.3.0","expect.js":"^0.3.1","fiber":"^1.0.4","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-jslint":"1.1.8","jslint":"0.7.3","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","klass":"^1.4.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"license":"MIT","gitHead":"006ea52ebfe54d0dd5575707a2f45b9a8262d6fc","bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.2.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"dist":{"shasum":"b278588a4db87fc1e5107ae3a277c0876f38d894","size":5082,"noattachment":false,"key":"/modelo/-/modelo-4.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.2.3.tgz"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modelo-4.2.3.tgz_1515262075624_0.5458211065270007"},"directories":{},"publish_time":1515262076591,"_hasShrinkwrap":false,"_cnpm_publish_time":1515262076591},"4.2.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.2.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"keywords":["class","classes","inherit","inherits","inheritance","mixin","mix-in"],"main":"./modelo/modelo.js","scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"augment":"^4.3.0","benchmark":"^1.0.0","cli-table":"^0.3.0","expect.js":"^0.3.1","fiber":"^1.0.4","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-jslint":"^1.1.8","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","klass":"^1.4.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"4fc64722cf6ac02f841409fe68bd9b73028c0174","bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.2.0","_shasum":"3b4b420023a66ca7e32bdba16e710937e14d1b0b","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"dist":{"shasum":"3b4b420023a66ca7e32bdba16e710937e14d1b0b","size":15553,"noattachment":false,"key":"/modelo/-/modelo-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.2.0.tgz"},"directories":{},"publish_time":1444907897799,"_cnpm_publish_time":1444907897799,"_hasShrinkwrap":false},"4.1.2":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.1.2","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"keywords":["class","classes","inherit","inherits","inheritance","mixin","mix-in"],"main":"./modelo/modelo.js","scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"augment":"^4.3.0","benchmark":"^1.0.0","cli-table":"^0.3.0","expect.js":"^0.3.1","fiber":"^1.0.4","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-jslint":"^1.1.8","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","klass":"^1.4.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"55671a620d64316edba57e128e6d768a6e46708e","bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.1.2","_shasum":"b7dfcc7979c8f42ed0bd4fc7a91a0de870ea2236","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"dist":{"shasum":"b7dfcc7979c8f42ed0bd4fc7a91a0de870ea2236","size":15347,"noattachment":false,"key":"/modelo/-/modelo-4.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.1.2.tgz"},"directories":{},"publish_time":1410051598652,"_cnpm_publish_time":1410051598652,"_hasShrinkwrap":false},"4.1.1":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.1.1","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"augment":"^4.3.0","benchmark":"^1.0.0","cli-table":"^0.3.0","expect.js":"^0.3.1","fiber":"^1.0.4","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-jslint":"^1.1.8","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","klass":"^1.4.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.1.1","dist":{"shasum":"f80881af0fd0075cfeb5dba5579e0c352d674266","size":15386,"noattachment":false,"key":"/modelo/-/modelo-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1409716042241,"_cnpm_publish_time":1409716042241,"_hasShrinkwrap":false},"4.1.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.1.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"benchmark":"^1.0.0","cli-table":"^0.3.0","expect.js":"^0.3.1","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-contrib-watch":"^0.6.1","grunt-jslint":"^1.1.8","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.1.0","dist":{"shasum":"6a4f968b4a2f11c1136574cd4252bd7982ce0c2b","size":13729,"noattachment":false,"key":"/modelo/-/modelo-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1409029025001,"_cnpm_publish_time":1409029025001,"_hasShrinkwrap":false},"4.0.2":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.0.2","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"expect.js":"^0.3.1","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-contrib-watch":"^0.6.1","grunt-jslint":"^1.1.8","grunt-mocha":"^0.4.11","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.0.2","dist":{"shasum":"e2681bae0cf9e3669f0465b31d3f3ea8501ddbe0","size":11099,"noattachment":false,"key":"/modelo/-/modelo-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.0.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1405651374697,"_cnpm_publish_time":1405651374697,"_hasShrinkwrap":false},"4.0.1":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.0.1","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"expect.js":"^0.3.1","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-contrib-watch":"^0.6.1","grunt-jslint":"^1.1.8","grunt-mocha":"^0.4.11","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.0.1","dist":{"shasum":"e19d0c73b355594c1e6cfffa7df2714d673fd2e3","size":10729,"noattachment":false,"key":"/modelo/-/modelo-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.0.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1405648411867,"_cnpm_publish_time":1405648411867,"_hasShrinkwrap":false},"4.0.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"A JavaScript object inheritance utility.","version":"4.0.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"grunt"},"dependencies":{},"devDependencies":{"expect.js":"^0.3.1","grunt":"^0.4.4","grunt-browserify":"^2.1.3","grunt-contrib-uglify":"^0.4.0","grunt-contrib-watch":"^0.6.1","grunt-jslint":"^1.1.8","grunt-mocha":"^0.4.11","grunt-mocha-test":"^0.10.2","grunt-shell":"^0.7.0","mocha":"^1.20.1"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@4.0.0","dist":{"shasum":"bed42cd194ae47c21079df3e4cfbab05ed02ea62","size":10680,"noattachment":false,"key":"/modelo/-/modelo-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-4.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1405053888552,"_cnpm_publish_time":1405053888552,"_hasShrinkwrap":false},"3.2.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"3.2.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"./test/install_libs && mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@3.2.0","dist":{"shasum":"c05105049afbdb1458bf894f38ebcd801ed8ada2","size":10801,"noattachment":false,"key":"/modelo/-/modelo-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-3.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1399094115039,"_cnpm_publish_time":1399094115039,"_hasShrinkwrap":false},"3.1.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"3.1.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"./test/install_libs && mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@3.1.0","dist":{"shasum":"c347e34e6225af08f83b64ad8c0d989d0beb4726","size":10795,"noattachment":false,"key":"/modelo/-/modelo-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-3.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1399090451636,"_cnpm_publish_time":1399090451636,"_hasShrinkwrap":false},"3.0.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"3.0.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"./test/install_libs && mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@3.0.0","dist":{"shasum":"4933caa5c21c79957e7949980f5b2cab1dcf4880","size":10828,"noattachment":false,"key":"/modelo/-/modelo-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-3.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1396673576571,"_cnpm_publish_time":1396673576571,"_hasShrinkwrap":false},"2.0.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"2.0.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"_id":"modelo@2.0.0","dist":{"shasum":"2e91ba53e6cc48e8d05671554654edb9ed448456","size":53671,"noattachment":false,"key":"/modelo/-/modelo-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-2.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1396313637592,"_cnpm_publish_time":1396313637592,"_hasShrinkwrap":false},"1.0.4":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"1.0.4","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"_id":"modelo@1.0.4","_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"bd9622b9d52e5be5aa9cdf284f9ad967e19ef8b1","size":56545,"noattachment":false,"key":"/modelo/-/modelo-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-1.0.4.tgz"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1382748858406,"_cnpm_publish_time":1382748858406,"_hasShrinkwrap":false},"1.0.2":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"1.0.2","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo/modelo.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"_id":"modelo@1.0.2","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"68251802cb14f5cf8b1dc85d5f744d8ebfecb562","size":53031,"noattachment":false,"key":"/modelo/-/modelo-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-1.0.2.tgz"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1363477360884,"_cnpm_publish_time":1363477360884,"_hasShrinkwrap":false},"1.0.1":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"1.0.1","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"_id":"modelo@1.0.1","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"5fc5a5fdb238a0eb7e24054953c67a047b0e480d","size":53037,"noattachment":false,"key":"/modelo/-/modelo-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-1.0.1.tgz"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1363476746734,"_cnpm_publish_time":1363476746734,"_hasShrinkwrap":false},"1.0.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript object inheritance utility.","version":"1.0.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"_id":"modelo@1.0.0","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"c987cfb9854cebe0bbbc596042ce4f321d743512","size":3538,"noattachment":false,"key":"/modelo/-/modelo-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-1.0.0.tgz"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1353450032023,"_cnpm_publish_time":1353450032023,"_hasShrinkwrap":false},"0.9.0":{"author":{"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","url":"https://github.com/kevinconway"},"name":"modelo","description":"An isomorphic JavaScript development tool set.","version":"0.9.0","homepage":"https://github.com/kevinconway/Modelo.js","repository":{"type":"git","url":"git://github.com/kevinconway/Modelo.js.git"},"main":"./modelo.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"kevinconway","email":"kevinjacobconway@gmail.com"},"_id":"modelo@0.9.0","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"b42cf618a7db2872ab0142129c84b26f664c5423","size":5773,"noattachment":false,"key":"/modelo/-/modelo-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modelo/download/modelo-0.9.0.tgz"},"maintainers":[{"name":"kevinconway","email":"kevinjacobconway@gmail.com"}],"directories":{},"publish_time":1347413686333,"_cnpm_publish_time":1347413686333,"_hasShrinkwrap":false}},"readme":"# Modelo.js [![Current Build Status](https://travis-ci.org/kevinconway/Modelo.js.png?branch=master)](https://travis-ci.org/kevinconway/Modelo.js)\n\n**A multiple inheritance utility for JavaScript.**\n\n## Why?\n\nInheritance libraries today all seem to enforce the same clunky interface\nstyle. The only one of any merit these days is 'util.inherits' from the Node.js\nstandard library. Only problem: no multiple inheritance.\n\nWouldn't it be great if 'util.inherits' supported multiple inheritance *and*\nit stayed fast too?\n\nThat's this library. That's why it exists.\n\n## util.inherits\n\nThe 'modelo.inherits' function can act as a drop in replacement for\n'util.inherits'. Already have a code base that you want to start extending? No\nproblem.\n\n```javascript\n\n    var modelo = require('modelo');\n\n    function Base() {\n        // Base object constructor\n    }\n    Base.prototype.baseMethod = function baseMethod() {\n        console.log('Method from base object.');\n    }\n\n    function Extension() {\n        // Sub-object constructor\n    }\n    // util.inherits(Extension, Base);\n    modelo.inherits(Example, Base);\n\n    new Extension() instanceof Base; // true\n\n```\n\n## Multiple Inheritance\n\nOnce you need to extend multiple base objects, just put more base objects in\nthe call to 'inherits'.\n\n```javascript\n\n    var modelo = require('modelo');\n\n    function MixinOne() {}\n    function MixinTwo() {}\n\n    function Combined() {}\n    modelo.inherits(Combined, MixinOne, MixinTwo);\n\n    var instance = new Combined();\n\n    instance.isInstance(Combined); // true\n    instance.isInstance(MixinOne); // true\n    instance.isInstance(MixinTwo); // true\n\n```\n\nUnfortunately, there is no way to make 'instanceof' work with multiple\ninheritance. To replace it, simply use the 'isInstance' method that gets added\nto your instances. It will return true for any base object in the inheritance\ntree.\n\nAdditionally, the 'super_' attribute is still present on the new constructor in\nmultiple inheritance but it only references the first prototype present in the\ncall to 'inherits'. It is provided only for compatibility with `util.inherits`\nand, when using multiple inheritance, the 'super_' attribute should be avoided\nin favour of calling the target prototype directly if the form of\n`<Constructor>.prototype.<method>.call(this, ...)` or\n`<Constructor>.prototype.<method>.apply(this, ...)`.\n\n## You Said Something About Fast?\n\nAll inheritance libraries have their cost. When the overhead in question affects\nthe speed of object definition and creation, though, that cost must be kept\nto a minimum. Here is how this library compares to the competition:\n\n### Object Definition\n\nThe typical benchmark you will see while researching inheritance tools is one\nthat measures the cost of an object prototype, or class, definition followed by\nthe creation of a single instance. The following results are based on a test\nwhich does just that. Each library produces an equivalent inheritance tree and\nspawns an instance. The full source of the benchmark can be found in\n'benchmarks/comparisons/define.js'.\n\nThe approximate results:\n\n| Name          | % Slower   |\n----------------|-------------\n| Fiber         | 0.0000 %   |\n| util.inherits | 24.010 %   |\n| augment       | 64.601 %   |\n| Modelo        | 65.594 %   |\n| Klass         | 74.658 %   |\n\n\nThe [Fiber][] library is the clear winner with a 24% difference in run-time cost\nfrom the Node.js 'util.inherits'. Considering the implementation of\n'util.inherits' is effectively a two line wrapper around the 'Object.create'\nbuilt-in, it's quite a surprise that Fiber is *that* much faster. Now, the\n*actual* difference between Fiber and 'util.inherits' is something on the order\nof ~0.00008 seconds which, frankly, is inconsequential.\n\nIn fact, even the difference between Fiber and the bottom three libraries\nis inconsequential, not because the difference is not statistically\nsignificant but, because this benchmark only represents the time required to\ndefine a \"class\", or object prototype. This is something that happens, at most,\nonce for each class, or object prototype, defined in a code base. These\nrun-time costs simply do not matter unless your code base generates hundreds\nof thousands of \"class\" definitions.\n\n### Instance Creation\n\nA far more realistic measurement of overhead is the time it takes to create an\ninstance of an object defined using an inheritance library. After all, creating\ninstances necessarily happens far more often than defining the prototype:\n\n| Name          | % Slower   |\n----------------|-------------\n| Modelo        | 0.0000 %   |\n| util.inherits | 3.4355 %   |\n| Fiber         | 45.017 %   |\n| augment       | 48.284 %   |\n| Klass         | 161.79 %   |\n\nThe above results are deceptive. While it appears as though Modelo is faster\nthan the others, including the Node.js 'util.inherits', the reality is that\nthe run-time difference between these libraries is so small that it exceeds\nthe microsecond resolution of the timer used in the benchmarks. For all intents\nand purposes there is no measurable difference between any of these libraries.\n\n### Conclusion\n\nWhen it comes down to it, you should pick your inheritance tool chain based on\nits interface. The run-time cost of most inheritance libraries on the market\ntoday is sub-microsecond and unlikely to affect the performance of your\ncode.\n\nNote: If you find a flaw in any of the benchmarks used please open an issue on\nGitHub.\n\n## Setup\n\n### Node.js\n\nThis package is published through NPM under the name 'modelo':\n\n    $ npm install modelo\n\nOnce installed, simply 'require(\"modelo\")'.\n\n### Browser\n\nThis module uses browserify to create a browser compatible module. The default\ngrunt workflow for this project will generate both a full and minified browser\nscript in a build directory which can be included as a ```<script>``` tag:\n\n    <script src=\"modelo.browser.min.js\"></script>\n\nThe package is exposed via the global name 'modelo'.\n\n### Tests\n\nRunning the ```npm test``` command will kick off the default grunt workflow. This\nwill lint using jslint, run the mocha/expect tests, generate a browser module,\nand generate browser tests.\n\n### Benchmarks\n\nRunning ```grunt benchmark``` will run the benchmarks discussed above. You can\noptionally install the micro-time library (```npm install microtime```) to get\nmicrosecond precision.\n\n## License\n\nThis project is released and distributed under an MIT License.\n\n    Copyright (C) 2012 Kevin Conway\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to\n    deal in the Software without restriction, including without limitation the\n    rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n    sell copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n    IN THE SOFTWARE.\n\n## Contributors\n\n### Style Guide\n\nAll code must validate against JSlint.\n\n### Testing\n\nMocha plus expect. All tests and functionality must run in Node.js and the\nbrowser.\n\n### Contributor's Agreement\n\nAll contribution to this project are protected by the contributors agreement\ndetailed in the CONTRIBUTING file. All contributors should read the file before\ncontributing, but as a summary::\n\n    You give us the rights to distribute your code and we promise to maintain\n    an open source release of anything you contribute.\n\n\n[Fiber]: <https://github.com/linkedin/Fiber>\n","_attachments":{},"homepage":"https://github.com/kevinconway/Modelo.js","bugs":{"url":"https://github.com/kevinconway/Modelo.js/issues"},"license":"MIT"}