{"_id":"LazyBoy","_rev":"34-9315c000453e91e066ef924596954614","name":"LazyBoy","description":"A object document mapper for couchdb","dist-tags":{"latest":"0.1.14"},"versions":{"0.1.0":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","version":"0.1.0","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9"},"devDependencies":{"Jody":">=0.2.1"},"_npmJsonOpts":{"file":"/Users/garrensmith/.npm/LazyBoy/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"LazyBoy@0.1.0","_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"eed27824292973b2114c38a25e8cc655be14d1b3","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.0.tgz","integrity":"sha512-V8DyWbDVlbojJojCqsn8wxUByzKPYi1PMvwKKD3VCy/U3kvgS3jzEfMCu4QJFAhGs6BVfy5TeLSLHuMycaPNdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGWEJJPc1fukcctUNxcWwy7CcNIImO3EiCrt2hxWuRsmAiAgzzpHZgDj6b1btrCB4lvGG8GjlolPjRN8Ldd/VglhcA=="}]},"scripts":{},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.1":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","version":"0.1.1","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9"},"devDependencies":{"Jody":">=0.2.1"},"_npmJsonOpts":{"file":"/Users/garrensmith/.npm/LazyBoy/0.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"LazyBoy@0.1.1","_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"2e6582d682ec59ebf3b95a359ff26f0cac53a60b","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.1.tgz","integrity":"sha512-2lJl+kyuCKqjgNOebhtAejHDNEzPaWpXHWuL96Skd/aaPpKyoPd9FXzotw2KjM2CVgBWpSSPKVBl0SekkT3nYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQCCzpCoSGo0IMIolizbz78nTwv8p/j20VzlyoBIqkKgIhALocza9QEV9QtgHbikUnskpXlvsnZPM93OXqgR4VbvlG"}]},"scripts":{},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.2":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","version":"0.1.2","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9"},"devDependencies":{"Jody":">=0.2.1"},"_npmJsonOpts":{"file":"/Users/garrensmith/.npm/LazyBoy/0.1.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"LazyBoy@0.1.2","_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"6cb51e6a197be31dff6b5370d375fcc70f51ce9d","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.2.tgz","integrity":"sha512-YWRoG7JGI+Tfuw9wvSeYpIE3qRkfwJD/+EJ+K7kS48AiregluoqSCTGlJqQi3NVmYcZt+IlmHsZ+Suh4GkvcfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBf43YpQLQBmBlLq3xNGisdkyqrKZx/jjSIYWTg13regIhAK0XvM2yB6jzVadudJe3iyx8hWTxB7BZQWHlN96GNmBZ"}]},"scripts":{},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.3":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","version":"0.1.3","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9"},"devDependencies":{"Jody":">=0.2.1"},"_npmJsonOpts":{"file":"/Users/garrensmith/.npm/LazyBoy/0.1.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"LazyBoy@0.1.3","_engineSupported":true,"_npmVersion":"1.0.25","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"99cff76df2edfb513dac0b884691bf1f3d1e1ae5","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.3.tgz","integrity":"sha512-R8y2HNEFpbSQzz2+ueGn51UH5h0dkY5cOLJYI0klW7ZMh5hO2EIOStlZBBpukqdbLzlG7ij2kcmkGafm/HOCtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/18gQxi+xlpD8WRCBHAjWqDn4EWH4LCvSzlLN1TtGcAiBEl4zoTSo6nRlGpkCsxZUNgMzc3FKxF5NpRP7xMevj8w=="}]},"scripts":{},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.4":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","version":"0.1.4","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9"},"devDependencies":{"Jody":">=0.2.1"},"_npmJsonOpts":{"file":"/Users/garrensmith/.npm/LazyBoy/0.1.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"LazyBoy@0.1.4","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"4f5dc6910c3ceb2e7ad13cbbb87692556e31b97e","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.4.tgz","integrity":"sha512-Y0hWwVb/MQ5tr6jzqKPSA8hez5GbUpoNnmOdLSDdLacGA/A78lFEkn3Iw+afytH19tAotwAxgmjqKBlNtvkHow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6HXarzdZl+IG35ImU2eVRGGsUhflWkDQgCqgOgUoN7AiBuJpNGMgt19qDHj0H8uPBt6tBprBqcstqTjJTTQaHG3Q=="}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.5":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","version":"0.1.5","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9"},"devDependencies":{"Jody":">=0.2.1"},"_npmJsonOpts":{"file":"/Users/garrensmith/.npm/LazyBoy/0.1.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"LazyBoy@0.1.5","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"5b7afc8f9304f3e797128131a40cdae84ffd3570","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.5.tgz","integrity":"sha512-BLbNjEpXGdQXAQ5AJPy1wuP2ZBUYbo1iXfpmrzvsayRml2e+K5qyFAeXbNa8Eyv0oPddZT4LCCRVxgbgKu4ThQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAPXmLIRZenajXKJR51P1CiTfx6F4zJ+8iVGToch0cShAiEAjL9Xj96jPvZmRU4PjyD3vY2Ri4Y+ywSW+WCmfzmLxRw="}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.6":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.6","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"Jody":">=0.2.1"},"_npmUser":{"name":"garrensmith","email":"garren.smith@gmail.com"},"_id":"LazyBoy@0.1.6","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"ceb6e3b469891d0ec813f48a42350028ecd612bd","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.6.tgz","integrity":"sha512-w0Ms2hxlf7KfuXf/boWmPDE9ZqmHs9ukEozzTl3ogGFlJrEndLXWiS3MHftGQsGjg8ppamjpU2YN6/iWnWwvww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCQIRst5TlYOrgHa/3WLvxjGFcJ/iD8qBUYXcdS+kmsQIhALSZH39JIhNRgg5d+DTKVbnPm45D7I9/4mDcZ3o/FUQr"}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.7":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.7","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"Jody":">=0.2.1"},"scripts":{"test":"Jody"},"_npmUser":{"name":"garrensmith","email":"garren.smith@gmail.com"},"_id":"LazyBoy@0.1.7","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"97981e235c22c65aba735191ab2759637dc086af","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.7.tgz","integrity":"sha512-9AVJeom+Y/8Ktv3307CMjF2Kc9nCktiXN0wrNe+4tUgMCqEcEnh8wbXB5Pqcfd93Rs0H9OtFFUr+/LuVBVReSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHW+e00JlgsmilZ7AJbMX2qIP263cQ/TFygt1Hvq9Rx0AiEAh6o6aRDNUSCz2PQL7J5EgYq3WPlUVP6O5VAEbW1VWAk="}]},"readme":"LazyBoy Object Modeller\n=======================\n\n# Oh my word... What have you done?\n\nMy experiments into what it takes to create a object mapper for Couchdb. This has been something I've been thinking about for a while and whether its a viable option. \n\nCurrently its purely fun research. I've been reading through [mongoose](https://github.com/LearnBoost/mongoose) and [couch-ar](https://github.com/scottburch/couch-ar) as imspiration.\n\n#How do I use this thing?\n\nBelow is a quick cheatsheet but the docs can be found [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n### Find by criteria\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.where(name,\"Ben\", function (err, users) {\n        // .. do something with the user\n    })\n\n## Logging\n  To see in detail what is happening the logging can be turned on. This can be done by\n  \n    require('LazyBoy').logger.setLogLevel(1);\n\n  `LazyBoy` uses [Coloured logger](https://github.com/bentruyman/coloured-log) under the covers and uses the same log levels\n    \n\n#What needs doing?\n\n* Should we allow custom ID's?\n* Better Type casting\n* Validations\n\n#Changelog\n11 Nov 2011 - Added Validations using node-validator\n13 Sep 2011 - Add Id to serialised model\n11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.8":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.8","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"Jody":">=0.2.1"},"scripts":{"test":"Jody"},"_npmUser":{"name":"garrensmith","email":"garren.smith@gmail.com"},"_id":"LazyBoy@0.1.8","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"58a53732768a368ab62dcbd5a5ad1508728e9999","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.8.tgz","integrity":"sha512-JTSaTBkfVO8gXZc83mFpEd9sluJVzIQ/gjCRmQcadjUfxPi3FNApIsZhWfggu30AHlhr6uUOGSCc2dcQAA3RyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYVLVBms4AFrtliClZUSjwjO5l8WYUTd29FNn1v+t8GwIgLMXLTiqNFWaFzH/PppuYanvR3Oy1PPj02qiDcTJDwhY="}]},"readme":"LazyBoy Object Modeller\n=======================\n\n# Oh my word... What have you done?\n\nMy experiments into what it takes to create a object mapper for Couchdb. This has been something I've been thinking about for a while and whether its a viable option. \n\nCurrently its purely fun research. I've been reading through [mongoose](https://github.com/LearnBoost/mongoose) and [couch-ar](https://github.com/scottburch/couch-ar) as imspiration.\n\n#How do I use this thing?\n\nBelow is a quick cheatsheet but the docs can be found [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n### Find by criteria\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.where(name,\"Ben\", function (err, users) {\n        // .. do something with the user\n    })\n\n## Logging\n  To see in detail what is happening the logging can be turned on. This can be done by\n  \n    require('LazyBoy').logger.setLogLevel(1);\n\n  `LazyBoy` uses [Coloured logger](https://github.com/bentruyman/coloured-log) under the covers and uses the same log levels\n    \n\n#What needs doing?\n\n* Should we allow custom ID's?\n* Better Type casting\n* Validations\n\n#Changelog\n11 Nov 2011 - Added Validations using node-validator\n13 Sep 2011 - Add Id to serialised model\n11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.9":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.9","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"Jody":">=0.2.1"},"scripts":{"test":"Jody"},"_npmUser":{"name":"garrensmith","email":"garren.smith@gmail.com"},"_id":"LazyBoy@0.1.9","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"5b2e1dd8104349b2500532fbc823e57447f8a81e","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.9.tgz","integrity":"sha512-sxpinveD+QJmCmBsakaYX3HT3NyTR+dQkU71P4gvP3FZgS89dPZ8MV5OQ4NwiMzLF1WHiTatGsBdeVOA4aA+zQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXMZIgwv4ZZtJsbms6r3L/6uWW5LsIBfkhhvyvbKtvMAIgXXU9sHG55111I69hvWczWfR1uYO40SqbpBlqg/kS94E="}]},"readme":"LazyBoy Object Modeller\n=======================\n\n# Oh my word... What have you done?\n\nMy experiments into what it takes to create a object mapper for Couchdb. This has been something I've been thinking about for a while and whether its a viable option. \n\nCurrently its purely fun research. I've been reading through [mongoose](https://github.com/LearnBoost/mongoose) and [couch-ar](https://github.com/scottburch/couch-ar) as imspiration.\n\n#How do I use this thing?\n\nBelow is a quick cheatsheet but the docs can be found [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n### Find by criteria\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.where(name,\"Ben\", function (err, users) {\n        // .. do something with the user\n    })\n\n## Logging\n  To see in detail what is happening the logging can be turned on. This can be done by\n  \n    require('LazyBoy').logger.setLogLevel(1);\n\n  `LazyBoy` uses [Coloured logger](https://github.com/bentruyman/coloured-log) under the covers and uses the same log levels\n    \n\n#What needs doing?\n\n* Should we allow custom ID's?\n* Better Type casting\n* Validations\n\n#Changelog\n11 Nov 2011 - Added Validations using node-validator\n13 Sep 2011 - Add Id to serialised model\n11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.10":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.10","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"Jody":">=0.2.1"},"scripts":{"test":"Jody"},"readme":"LazyBoy Object Modeller\n=======================\n\n# Oh my word... What have you done?\n\nMy experiments into what it takes to create a object mapper for Couchdb. This has been something I've been thinking about for a while and whether its a viable option. \n\nCurrently its purely fun research. I've been reading through [mongoose](https://github.com/LearnBoost/mongoose) and [couch-ar](https://github.com/scottburch/couch-ar) as imspiration.\n\n#How do I use this thing?\n\nBelow is a quick cheatsheet but the docs can be found [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n### Find by criteria\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.where(name,\"Ben\", function (err, users) {\n        // .. do something with the user\n    })\n\n## Logging\n  To see in detail what is happening the logging can be turned on. This can be done by\n  \n    require('LazyBoy').logger.setLogLevel(1);\n\n  `LazyBoy` uses [Coloured logger](https://github.com/bentruyman/coloured-log) under the covers and uses the same log levels\n    \n\n#What needs doing?\n\n* Should we allow custom ID's?\n* Better Type casting\n* Validations\n\n#Changelog\n20 July 2012 - Added toJSON function on Document\n11 Nov 2011 - Added Validations using node-validator\n13 Sep 2011 - Add Id to serialised model\n11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","_id":"LazyBoy@0.1.10","dist":{"shasum":"5c8ac2fcf0892000b7d3cccd502112c1edf78911","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.10.tgz","integrity":"sha512-L4dh6rVdwClI4g/d3Q5tOlJiDto5yZI4Om7JBG/EEpm90+9DpgRCERdXf8ciILi7mE4ZgODC/QzGWyGozTjHPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqVAsw/OnZoESBDAsD41Lu/y47uprvx2qAlUWwDzRe+wIhAIMJtCL8Uts66iHWRKfOWcI+25MPI8q7v7K9zJ9BDcdT"}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.11":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.11","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"mocha":"*","should":"*"},"readme":"LazyBoy Object Modeller\n=======================\n\n# Oh my word... What have you done?\n\nMy experiments into what it takes to create a object mapper for Couchdb. This has been something I've been thinking about for a while and whether its a viable option. \n\nCurrently its purely fun research. I've been reading through [mongoose](https://github.com/LearnBoost/mongoose) and [couch-ar](https://github.com/scottburch/couch-ar) as imspiration.\n\n#How do I use this thing?\n\nBelow is a quick cheatsheet but the docs can be found [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n### Find by criteria\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.where(name,\"Ben\", function (err, users) {\n        // .. do something with the user\n    })\n\n## Logging\n  To see in detail what is happening the logging can be turned on. This can be done by\n  \n    require('LazyBoy').logger.setLogLevel(1);\n\n  `LazyBoy` uses [Coloured logger](https://github.com/bentruyman/coloured-log) under the covers and uses the same log levels\n    \n\n#What needs doing?\n\n* Chainable callbacks\n* Count query\n* Define model_type field stored in db\n* Multiple db support\n* Improved logging\n* More advance querying\n\n#Changelog\n25 July 2012 - Bug fixes, change tests to mocha\n20 July 2012 - Added toJSON function on Document\n11 Nov 2011 - Added Validations using node-validator\n13 Sep 2011 - Add Id to serialised model\n11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","_id":"LazyBoy@0.1.11","dist":{"shasum":"45276ff4f345daec6e4fda0913afddc5327ee908","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.11.tgz","integrity":"sha512-YMG3d1cOBlPixj8tu7yUvB6ZqNFVttLO6mlgMxAvhGsOyLaSJhH4/FOfJfhi1NNLz/75dsYckB3CQdB6RVX25w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBNf2AROnHnTrvTeOPrDk8SRhFgB9Pp3VDmWALL9GmWwIhAL4Ws+gO6esnBrxpky7hjEILXrlmFWoEtis1FVbFcI2v"}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.12":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.12","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"dependencies":{"cradle":">=0.5.5","coloured-log":">=0.9.6","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"mocha":"*","should":"*"},"readme":"LazyBoy Object Modeller\n=======================\n\n# Oh my word... What have you done?\n\nSomethings when using Couchdb you want a higher abstraction.\n\n#How do I use this thing?\n\nBelow is a quick cheatsheet but the docs can be found [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n### Find by criteria\nWill return an array of all documents that fit the criteria\n    \n    var User = Model('User');\n    User.where(name,\"Ben\", function (err, users) {\n        // .. do something with the user\n    })\n\n## Logging\n  To see in detail what is happening the logging can be turned on. This can be done by\n  \n    require('LazyBoy').logger.setLogLevel(1);\n\n  `LazyBoy` uses [Coloured logger](https://github.com/bentruyman/coloured-log) under the covers and uses the same log levels\n    \n\n#What needs doing?\n\n* Chainable callbacks\n* Count query\n* Define model_type field stored in db\n* Multiple db support\n* Improved logging\n* More advance querying\n\n#Changelog\n25 July 2012 - Bug fixes, change tests to mocha\n20 July 2012 - Added toJSON function on Document\n11 Nov 2011 - Added Validations using node-validator\n13 Sep 2011 - Add Id to serialised model\n11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","_id":"LazyBoy@0.1.12","dist":{"shasum":"b4b416ff56bc54a6ac84048cf2f651462394a8a7","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.12.tgz","integrity":"sha512-ljb0CSKLrRA6XMZQSPIHPkouGBY3UDbwJFt53JYmdnE148i2QUwiuJD4BVX1Cq2aAhGyY/wgLzNPQQ3lj53zkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6sBfsh9lj50uCW29pvJ/fxktuDcjNKDTgHEzWeMxkjQIhAKfvZ73pPecBshM7EOeqwttdAV0BYe7A/FIbtJTNVWVP"}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.13":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.13","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"scripts":{"test":"make test"},"dependencies":{"cradle":">=0.5.5","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"mocha":"*","should":"*"},"readme":"LazyBoy Object Modeller\n=======================\n[![Build Status](https://secure.travis-ci.org/garrensmith/LazyBoy.png)](http://travis-ci.org/garrensmith/LazyBoy)\n\n# Oh my word... What have you done?\n\nLazyBoy makes it easier to build applications with Couchdb. It removes the repeatable cruft and makes working with Couchdb as fun as it should be.\n\n# 4 easy steps to installation\n\n1) Download\n\n    npm install lazyboy\n\n2) Connect to database\n\n    var Model = require('lazyboy')\n    Model.create_connection(\"my_database\");\n\n3) Define a model\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n4) Read the docs: [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n# How do I use this it?\n\nBelow is a quick cheatsheet but the docs can be found at [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all or by criteria \n\n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n    var User = Model('User');\n    User.where(\"name\",\"Ben\", function (err, users) {\n        // .. do something with the user\n    })\n\n## Custom View\n    var Band = Model.define(\"Band\",{rank: Number, name: String});\n\n    Band.addView('ByRankAndName',{ \n      map: function (doc) {\n        if (doc.model_type === 'Band') {\n          emit([doc.rank, doc.name],1);\n        }\n      }\n    });\n\n    Band.view('ByRankAndName')\n      .startkey([2, \"Incubus\"])\n      .endkey([3, {}])\n      .limit(10)\n      .skip(3, function (err, bands) {\n       // will only execute the chain when a function has a callback passed to it\n    });\n\n## Logging\nLogging has been disabled for now.\n\n#What needs doing?\n\n* Define model_type field stored in db\n* Multiple db support\n* Improved logging\n\n#Changelog\n* 24 October 2012 - Add Chainable Api\n* 25 July 2012 - Bug fixes, change tests to mocha\n* 20 July 2012 - Added toJSON function on Document\n* 11 Nov 2011 - Added Validations using node-validator\n* 13 Sep 2011 - Add Id to serialised model\n* 11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n* 17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","_id":"LazyBoy@0.1.13","dist":{"shasum":"41dde6ba5c1274efb1eab730b2aff5e1ddb91257","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.13.tgz","integrity":"sha512-RnND7bDoyxQhuqLLnmJcAgwaZzo/QFGuusnk+W7TZsV90EANbNrPNN6h0I8kQPschIuM/dxi5f/YJSK3COnGZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC526yEKX9tAfoqarj/gEULyL5yklScg/2aO/Zvn00ZiAiEAxw65Ix3HbT1/0PSFov6/mTq/1gP+1FzKBjO8gjIdHec="}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]},"0.1.14":{"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"name":"LazyBoy","description":"A object document mapper for couchdb","keywords":["Couchdb","db","ORM","ODM","couch"],"version":"0.1.14","homepage":"http://garrensmith.com/LazyBoy","repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"main":"lib/index.js","engines":{"node":">0.4.0"},"scripts":{"test":"make test"},"dependencies":{"cradle":">=0.5.5","async":">=0.1.9","validator":">=0.3.4"},"devDependencies":{"mocha":"*","should":"*"},"readme":"LazyBoy Object Modeller\n=======================\n[![Build Status](https://secure.travis-ci.org/garrensmith/LazyBoy.png)](http://travis-ci.org/garrensmith/LazyBoy)\n\n# Oh my word... What have you done?\n\nLazyBoy makes it easier to build applications with Couchdb. It removes the repeatable cruft and makes working with Couchdb as fun as it should be.\n\n# 4 easy steps to installation\n\n1) Download\n\n    npm install lazyboy\n\n2) Connect to database\n\n    var Model = require('lazyboy')\n    Model.create_connection(\"my_database\");\n\n3) Define a model\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n4) Read the docs: [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n# How do I use this it?\n\nBelow is a quick cheatsheet but the docs can be found at [http://garrensmith.com/LazyBoy](http://garrensmith.com/LazyBoy)\n\n## Defining a model\n    var Model = require('LazyBoy');\n\n    Model.define('User', {\n      name: String\n      surname: {type: String, default: \"Rambo\"}\n    })\n\n## Creating and saving a model\n    \n    var user = Model.create('User', {name: \"John\", surname: \"Rambo\"});\n\n    user.save(function (err, saved_user) {\n        // .. do some other stuff here\n    })\n\n## Finding a model\n### Finding by Id\n    var user_id = \"123456\";\n\n    var User = Model('User');\n    User.find(user_id, function (err, user) {\n        // .. do something with the user\n    })\n\n### Find all or by criteria \n\n    var User = Model('User');\n    User.all(function (err, users) {\n        // .. do something with the user\n    })\n\n    var User = Model('User');\n    User.where(\"name\",\"Ben\", function (err, users) {\n        // .. do something with the users\n    })\n\n### Find first by criteria\n\n    var User = Model('User');\n    User.findFirst('name', 'Ben', function (err, user){\n      // .. do something with the user\n    })\n\n## Custom View\n    var Band = Model.define(\"Band\",{rank: Number, name: String});\n\n    Band.addView('ByRankAndName',{ \n      map: function (doc) {\n        if (doc.model_type === 'Band') {\n          emit([doc.rank, doc.name],1);\n        }\n      }\n    });\n\n    Band.view('ByRankAndName')\n      .startkey([2, \"Incubus\"])\n      .endkey([3, {}])\n      .limit(10)\n      .skip(3, function (err, bands) {\n       // will only execute the chain when a function has a callback passed to it\n    });\n\n## Logging\nLogging has been disabled for now.\n\n#What needs doing?\n\n* Define model_type field stored in db\n* Multiple db support\n* Improved logging\n\n#Changelog\n* 16 May 2013 - Add findFirst\n* 24 October 2012 - Add Chainable Api\n* 25 July 2012 - Bug fixes, change tests to mocha\n* 20 July 2012 - Added toJSON function on Document\n* 11 Nov 2011 - Added Validations using node-validator\n* 13 Sep 2011 - Add Id to serialised model\n* 11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin)\n* 17 Aug 2011 - Add support for custom methods \n\n#Contributors\n* Sven Bergström (underscorediscovery)\n* Donnie Hedin (sofa420)\n* 8bitDesigner\n\n","_id":"LazyBoy@0.1.14","dist":{"shasum":"a9505d50086b0a7426fa144b66d8036176a92246","tarball":"https://registry.npmjs.org/LazyBoy/-/LazyBoy-0.1.14.tgz","integrity":"sha512-i7XWjWW9gUU6n/5paIB39tbCrfTTUWJtyUF4tyQEJVyCw+u9A3MnwmO7ZSS57Yk64IOIBE5mL7+V0QT1QDMigA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBW1YkSPBYASsxkPqnjxQMF3worseJ7Ew89U5g3KaGuJAiAT6AWrkotQ7L1H4PVDECZvl/n9NyU/E5wlE/J8gxgBYg=="}]},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}]}},"maintainers":[{"name":"garrensmith","email":"garren.smith@gmail.com"}],"time":{"modified":"2022-06-13T02:14:44.258Z","created":"2011-08-02T15:10:09.022Z","0.1.0":"2011-08-02T15:10:13.129Z","0.1.1":"2011-08-03T12:56:08.156Z","0.1.2":"2011-08-03T19:02:53.069Z","0.1.3":"2011-08-17T14:26:03.983Z","0.1.4":"2011-09-11T19:44:37.701Z","0.1.5":"2011-09-13T19:12:58.305Z","0.1.6":"2011-11-11T12:05:50.292Z","0.1.7":"2012-03-20T15:12:24.387Z","0.1.8":"2012-03-26T12:44:41.214Z","0.1.9":"2012-06-07T07:01:36.441Z","0.1.10":"2012-07-20T14:33:25.010Z","0.1.11":"2012-07-25T07:55:16.681Z","0.1.12":"2012-09-01T09:54:40.760Z","0.1.13":"2012-10-24T15:08:28.645Z","0.1.14":"2013-05-17T15:01:54.196Z"},"author":{"name":"Garren Smith","email":"garren.smith@gmail.com","url":"www.garrensmith.com"},"repository":{"type":"git","url":"git://github.com/garrensmith/lazyboy.git"},"users":{"fgribreau":true}}