{"_id":"mongous","_rev":"56-5ea8b105f7174f6538e57ba1ef7a5d22","name":"mongous","description":"Simple MongoDB driver","dist-tags":{"latest":"0.2.7"},"versions":{"0.1.0":{"name":"mongous","version":"0.1.0","author":{"name":"Mark Nadal"},"description":"Dead simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_id":"mongous@0.1.0","_nodeSupported":true,"_npmVersion":"0.2.3-6","_nodeVersion":"v0.2.5","dist":{"tarball":"https://registry.npmjs.org/mongous/-/mongous-0.1.0.tgz","shasum":"6a9b94347da3f9d7ff38e854544a84413ab411cf","integrity":"sha512-zszQg/eZasl+qGHM8PPY9QTLqqouOdA/FRYrYghjDAzfsxJF8yFzDMvBdHD4Aiw440yjcgz84nrZfNVP/zFZ3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFtDpxLPmHGCE3bcUFh7yoAhBUgPPmIFzJkBZ9wIOhswIgGUmHAgEMKbLm6lbi12ruCZDu1zv813d+OO7SKCfqUco="}]},"directories":{}},"0.2.0":{"name":"mongous","version":"0.2.0","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_npmUser":{"name":"amark","email":"aquiva@gmail.com"},"_id":"mongous@0.2.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"441237cc2620b20542a1775b2efc02a66d8ede22","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.0.tgz","integrity":"sha512-S+qxJZpZvncUMArCgVH1QzpysI8LHG8jVac1/yck9EtzLh7JIiaSN6OJoRtPxR/rgibrAJIA3NBZdQu2XpNoxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIADyxec/l4bjNPHJ1sK1ISC9Kk0YQLUQJKwqbe6kGjMrAiEAhU6nWpz2FQ+c9uYwn/iygrweeO37xRt9UbPKK3UHyB8="}]},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}],"directories":{}},"0.2.1":{"name":"mongous","version":"0.2.1","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_npmUser":{"name":"amark","email":"aquiva@gmail.com"},"_id":"mongous@0.2.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"3c9c9210d2774d55cf468cd642d8af7657091175","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.1.tgz","integrity":"sha512-Y9nsU0cjEbiB7WGyle+uP0DSCJwRxKmkup5M8wgswADNLLKpGO549WjjBAcre1Tml3VO6nAakhLri8mnVOR7GA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCphhE94mIeRl3teyWy5KkBX3VipF6A8plSXpf1edMhPAIgCcvv0wFABDhCtx6zfPVK39/pbD1+JeRyd+yrNIGfVQo="}]},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}],"directories":{}},"0.2.2":{"name":"mongous","version":"0.2.2","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_npmUser":{"name":"amark","email":"mark@accelsor.com"},"_id":"mongous@0.2.2","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"88cbf815c6a82d4e585e81cf1e0be1ee32813bf4","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.2.tgz","integrity":"sha512-+nU5FZxciCHmWS0XCjn10jec0DSNm4vUpnqmrFU1pHsk70EVPpcB2OaCLaP4Fg/AqgCQYraE6rdrh6M3N1sunw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9uDZCzJ8l+VVZu43pp9PjRUcLPqr2vuc4rN+vfT1ifgIgBFEoRdgiguUoaaLGRH5tpTi0xCVlvUOhfkD6yGHPc3Y="}]},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}],"directories":{}},"0.2.3":{"name":"mongous","version":"0.2.3","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_npmUser":{"name":"amark","email":"mark@accelsor.com"},"_id":"mongous@0.2.3","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.6","_defaultsLoaded":true,"dist":{"shasum":"627608ee360e6a72f537b1d322230264bfde0270","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.3.tgz","integrity":"sha512-qgyRVz+KzXwu0JU/nlheZCkjitb84dTxT4exOvI1Cs5XBo2ODqVpJAK26Yqba8kInqBth5H6DfdPSfPxxFHCfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIxZJjVi6ntIlmc0YUXfuZYTodf8dAGFjRiOlG8eJ3RAIgbuaMhBm/6UsjM+DpKQDZ8d/XzM8TELMgsy+5qWBS1kY="}]},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}],"directories":{}},"0.2.4":{"name":"mongous","version":"0.2.4","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_id":"mongous@0.2.4","dist":{"shasum":"c8eda68853df61406effd0bd08ae83e5f9daee3f","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.4.tgz","integrity":"sha512-ImAiZYStXa43omlAJL0ESE0E0oiqQ7NVektvRA6ZTv8Vs8HJOQQTvtGR6YKUVqicdf2L3UwuOQ0EdaOGZp12ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3KUs7fupSkNB5srcuxJBWLhRyXuOeUigf8Nq24aQ+KAiACs8e5tnune8fsW6PxnAwzwOdXB3OX20gRJxN3rGnHLA=="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"amark","email":"mark@accelsor.com"},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}],"directories":{}},"0.2.5":{"name":"mongous","version":"0.2.5","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_id":"mongous@0.2.5","dist":{"shasum":"830cd01bd0a1a1828ee0a13d9acbf873c9b0b4ae","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.5.tgz","integrity":"sha512-PvHBOSmM+zFSjvhFzWP4B5dCoQuPN+U6b+KVAmJIf60FLMGlDwaJEoU5JkIJiRLd0IZEcdahq40lpSxQpSEkRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtZ9OvCqBpj7n8LseG/q9Xo3EPWwNJgWRr7oWQpY4FnAIhAN4aMMGxojfXpWLiwkD7OYimlqrOjScGTicpu5FyiWXO"}]},"_npmVersion":"1.1.66","_npmUser":{"name":"amark","email":"mark@accelsor.com"},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}]},"0.2.6":{"name":"mongous","version":"0.2.6","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","_id":"mongous@0.2.6","dist":{"shasum":"0b3d7fbd8d648f73abd06aaf739ba1dcb3fee7a9","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.6.tgz","integrity":"sha512-DtprkRboTeSHbE8HXcZ5PmQAZrFz0lo3l6oVcr1Xrsq/q6fpbmV4C2WD61TX9Ov1qsTySESu/Bgo+neOBwS6pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyqC874Jn2jtJ329u7BWmGU3HNy2fAs+qD5MmgpGyE8wIgXURfGcG9BU7vMMiKRd3haUZwhM3vG+HkzKiCqnTqT/0="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"amark","email":"mark@accelsor.com"},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}]},"0.2.7":{"name":"mongous","version":"0.2.7","author":{"name":"Mark Nadal"},"description":"Simple MongoDB driver","homepage":"http://github.com/amark/mongous","engines":["node >= 0.2.2"],"main":"mongous","gitHead":"55f4020404b267cc24b41b3f30edbc84c9b3d5e2","_id":"mongous@0.2.7","scripts":{},"_shasum":"20714a032f1ec62f3145053aaebe6d685d53c098","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"amark","email":"mark@accelsor.com"},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}],"dist":{"shasum":"20714a032f1ec62f3145053aaebe6d685d53c098","tarball":"https://registry.npmjs.org/mongous/-/mongous-0.2.7.tgz","integrity":"sha512-CJ8EiNtOEvJj4WnzXs5kdOS5whyQsw7OUSEfjhCIbHScrFR2KUh7nF5AHyopfBJ7NejI+5TEnOMNwfjvOaYukg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBDklIspqVXI6OaYvLiPir1c5svDYYC1JtM73SwM6IkAiEA1k9Jc1SLe36O2SozNrKWcajFBYwNgzIxvfI7hyO5GD4="}]}}},"maintainers":[{"name":"amark","email":"aquiva@gmail.com"}],"time":{"modified":"2022-06-20T08:14:40.136Z","created":"2011-02-17T11:57:32.512Z","0.1.0":"2011-02-17T11:57:32.877Z","0.2.0":"2011-11-08T11:12:00.884Z","0.2.1":"2011-11-24T09:24:52.419Z","0.2.2":"2012-02-25T11:11:32.275Z","0.2.3":"2012-11-05T11:19:02.005Z","0.2.4":"2013-04-12T11:05:37.179Z","0.2.5":"2013-11-29T08:37:04.650Z","0.2.6":"2014-07-08T04:10:15.752Z","0.2.7":"2015-01-26T21:58:43.539Z"},"author":{"name":"Mark Nadal"},"users":{"kennyjoseph":true,"wwwfuzheng":true,"ronen1malka":true},"readme":"Mongous\r\n==========\r\nMongous, for hu*mongous*, is a simple and blazing fast MongoDB driver that uses a jQuery like syntax.\r\n\r\n### How it works\r\n\r\n\tvar $ = require(\"mongous\").Mongous;\r\n\r\n\t$(\"database.collection\").save({my:\"value\"});\r\n\r\n\t$(\"database.collection\").find({},function(r){\r\n\t\tconsole.log(r);\r\n\t});\r\n\r\nDone. App development has never felt as close to the shell as this! Making it a breeze to grab'n'store anything anywhere in your code without the nasty hassle of connections, collections, and cascading callbacks.\r\n\r\n### Database & Collections\r\n\r\n- <code>db('Database.Collection')</code>\r\n\t- Database is the name of your database\r\n\t- Collection is the name of your collection\r\n\t- Examples\r\n\t\t- <code>db('blog.post')</code>\r\n\t\t- <code>db('blog.post.body')</code>\r\n\r\n### Commands\r\n\r\n- **Update** <code>db('blog.post').update(find, update, ...)</code>\r\n\t- find\r\n\t\tis the object you want to find.\r\n\t- update\r\n\t\tis what you want to update find with.\r\n\t- ...\r\n\t\t- <code>{ upsert: true, multi: false }</code>\r\n\t\t- <code> true, true </code>\r\n- **Save** <code>db('blog.post').save(what)</code>\r\n\t- what\r\n\t\tis the object to be updated or created.\r\n- **Insert** <code>db('blog.post').insert(what...)</code>\r\n\t- what\r\n\t\tis an object to be created.\r\n\t\tis an array of objects to be created.\r\n\t- Examples\r\n\t\t- <code>db('blog.post').save({hello: 'world'})</code>\r\n\t\t- <code>db('blog.post').save([{hello: 'world'}, {foo: 'bar'}])</code>\r\n\t\t- <code>db('blog.post').save({hello: 'world'}, {foo: 'bar'})</code>\r\n- **Remove** <code>db('blog.post').remove(what, ...)</code>\r\n\t- what is the object to be removed.\r\n\t- ...\r\n\t\ttrue for atomic.\r\n- **Find** <code>db('blog.users').find(..., function(reply){ })</code>\r\n\t- reply\r\n\t\tis the reply from MongoDB.\r\n\t- reply.documents\r\n\t\tare the documents that you found from MongoDB.\r\n\t- ... <br/>\r\n\t\tparams are filtered by type\r\n\t\t- Objects\r\n\t\t\t- first object\r\n\t\t\t\tis what you want to find.\r\n\t\t\t- second object\r\n\t\t\t\tare fields you want\r\n\t\t\t\t<br/>Ex: <code>{ name: 1, age: 1 }</code>\r\n\t\t\t- third object\r\n\t\t\t\tis any of the following options:\r\n\t\t\t\t<br/> <code>{ lim: x, skip: y, sort:{age: 1} }</code>\r\n\t\t- Numbers\r\n\t\t\t- first number\r\n\t\t\t\tis the limit (return all if not specified)\r\n\t\t\t- second number\r\n\t\t\t\tis the skip\r\n\t- Examples\r\n\t\t- <code>db('blog.users').find(5, function(reply){ })</code><br/>\r\n\t\t\treply.documents is the first 5 documents,\r\n\t\t- <code>db('blog.users').find(5, {age: 23}, function(reply){ })</code><br/>\r\n\t\t\twith age of 23,\r\n\t\t- <code>db('blog.users').find({age: 27}, 5, {name: 1}, function(reply){ })</code><br/>\r\n\t\t\tand a name.\r\n\t\t- <code>db('blog.users').find(5, {age: 27}, {name: 1}, {lim: 10}, function(reply){ })</code><br/>\r\n\t\t\tis the same as the previous example, except the limit is 10 instead of 5.\r\n\t\t- <code>db('blog.users').find(5, function(reply){ }, 2)</code><br/>\r\n\t\t\treply.documents skips the first 2 documents and is the next 3 documents.\r\n\t\t- <code>db('blog.users').find(function(reply){ }, {age: 25}, {}, {limit: 5, skip: 2})</code><br/>\r\n\t\t\tis the same as the previous example except only of doucments with the age of 25.\r\n\t\t- <code>db('blog.users').find({}, {}, {sort: {age: -1}}, function(reply){ })</code><br/>\r\n\t\t\treply.documents is sorted by age in a decsending (acsending while it is {age:1} ) order.  \r\n- **Operations** <code>db('blog.$cmd').find(command,1)</code>\r\n\t- command\r\n\t\tis the database operation command you want to perform.\r\n\t- Example\r\n\t\t<code>db('blog.$cmd').find({drop:\"users\"},1)</code><br/>\r\n\t\tdrops the users collection, deleting it.\r\n- **Authentication** <code>db('blog.$cmd').auth(username,password,callback)</code>\r\n\t- username, password <br/>\r\n\t\tusername and password of the 'blog' database\r\n\t- callback <br/>\r\n\t\tthe callback function when authentication is finished.\r\n\t- Example\r\n\t\t- <code>db('blog.$cmd').auth('user','pass',function(reply){})</code><br/>\r\n- **Open** <code>db().open(host,port)</code>\r\n\t- Only necessary to call if you explicitly want a different host and port, elsewise it lazy opens.\r\n\t\t\t\r\nMongous is a reduction ('less is more') of node-mongodb-driver by Christian Kvalheim.","homepage":"http://github.com/amark/mongous","readmeFilename":"README.md"}