{"_id":"mongo-helper","_rev":"27-cc324543cd577dc2e0a880a984a9a58c","name":"mongo-helper","description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","dist-tags":{"latest":"0.3.0"},"versions":{"0.0.1":{"name":"mongo-helper","version":"0.0.1","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"./mongoHelper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{},"scripts":{"test":"node test.js"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nTHIS IS NOT IN NPM YET.  DISREGARD THE FOLLOWING.\n\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongoHelper\": \"*\" //Using * for versioning isn't recommended.  I'll fix that in the future.\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper`.\n\nYOU MAY CEASE YOUR DISREGARDING NOW.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nFirst, navigate to `node_modules/mongoHelper` and open up `config.js`.  This is initalized with some defaut settings, but you probably want to alter them to meet your needs.  Then, require the mongoHelper object with:\n\n    var mongoHelper = require('mongoHelper');\n    \nCurrently, only insert and find are implemented.\n\n####Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n####Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n####Remove\nThe data removed is passed to `next`.\n","_id":"mongo-helper@0.0.1","dist":{"shasum":"b5922d5c4696a943c33212dd8381065ae33fa0b8","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.0.1.tgz","integrity":"sha512-aZ4v9EZ30XiR1smwXHi99CjZ5HXSPUYLe4cxTP4JGkZbE5cfuq459/SEcWF5TZSr/9CzAEF8GGsGNCWHV9JNPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3PNQPVS8rpToROmx1t7AeKQ0pWo6NnwIldnGJcM8mJAiEAoqNndCwZMka5DrmZMmEoGMOqmbipbXDtGFZy7+32tUA="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}],"directories":{}},"0.0.2":{"name":"mongo-helper","version":"0.0.2","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"./mongoHelper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{},"scripts":{"test":"node test.js"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongoHelper\": \"*\" //Using * for versioning isn't recommended.  I'll fix that in the future.\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper`.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nFirst, navigate to `node_modules/mongoHelper` and open up `config.js`.  This is initalized with some defaut settings, but you probably want to alter them to meet your needs.  Then, require the mongoHelper object with:\n\n    var mongoHelper = require('mongoHelper');\n    \n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.0.2","dist":{"shasum":"0b72ce9f75f57ce2f53ee274823573ea39477328","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.0.2.tgz","integrity":"sha512-/88P20OB0Mi1/BfdRmn1xofMUS49ARZpPVgPcZ6qUEN6Na8CHOaZ6881ct9Hs2ScstQIsjwlJZfY5eysMx/ozg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSthbt6C9ZZxUOPiKmkIGTGHwmPQcBzG5a9ccUV2RfzwIhAN2UzNQSo3VB8SWxY5KJkk8kG/DsqYts8Vw7Tl4ZV+JA"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.0.3":{"name":"mongo-helper","version":"0.0.3","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongoHelper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongoHelper\": \"*\" //Using * for versioning isn't recommended.  I'll fix that in the future.\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper`.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nFirst, navigate to `node_modules/mongoHelper` and open up `config.js`.  This is initalized with some defaut settings, but you probably want to alter them to meet your needs.  Then, require the mongoHelper object with:\n\n    var mongoHelper = require('mongoHelper');\n    \n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.0.3","dist":{"shasum":"9ba1689954d8891d5ce9f690f13573c440e143ae","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.0.3.tgz","integrity":"sha512-Z7GwuFG5JclA7bZPyDSOcVH68HL7gMLfWYlY5FA/YlOQd2vuX8/f7ehu1FTpvOEdOWNF7wzb3GE28QK3ZINHYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKT8ilpfBs7kd9fEzvKz+2+uLRrw1W1c1cxprImEgdOAiEAs5XO/X3KtSZFZ3t3s22RRqmpbeVB694cq58rYFv3lMs="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.0.4":{"name":"mongo-helper","version":"0.0.4","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongoHelper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongoHelper\": \"*\" //Using * for versioning isn't recommended.  I'll fix that in the future.\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper`.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nFirst, navigate to `node_modules/mongoHelper` and open up `config.js`.  This is initalized with some defaut settings, but you probably want to alter them to meet your needs.  Then, require the mongoHelper object with:\n\n    var mongoHelper = require('mongoHelper');\n    \n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.0.4","dist":{"shasum":"2e242fc2edca7630abdea860225fd4f13c5de14b","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.0.4.tgz","integrity":"sha512-o9gfz2P4EIntFjvmdCZwDyStYTNt/fiO4nrE2HGhKKd7KtAgNHNoj3kyhk6gWLKdyj9gLJUhU1u4y4sjAsOUWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsoa1iPupw4hMNg2H6o9ZutwpvVvuzhgctE6LKoCHjiAiEAuAkWTjrddcWfxL2mxAl5fF/R/knxFjes9rqP6xNU8Y0="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.1.0":{"name":"mongo-helper","version":"0.1.0","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongoHelper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongo-helper\": \"0.1.x\"\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper` in your project directory.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nSadly, Mongo Helper can't read your mind (yet), so you'll need to provide it with some parameters about your particular needs.  The simple way to require this is:\n\n    var mongoHelper = new (require('mongo-helper'))({Parameters: 'here'});\n    \nIt's also possible (and might work better, depending on your project) to define a `config` object and pass that:\n\n    var mongoHelper = new (require('mongo-helper'))(config);\n    \nMongo Helper takes the following parameters (if you don't include them, Mongo Helper will revert to a default value)\n\n - `serverAddress` - The IP/Address of the MongoDB server (default: `localhost`)\n - `serverPort` - Port used to connect to the mongoDB server (default: `mongo.Connection.DEFAULT_PORT`)\n - `serverOptions` - Options to pass to the server (in an object literal) (default: `{auto_reconnect: true}`)\n   - You can find all possible options [at the docs](http://mongodb.github.com/node-mongodb-native/api-generated/server.html#constructor)\n - `dbName` - Name of the database you'll be using (default: `test`)\n - `dbOptions` - Options to pass to the db constructor (in an object literal) (default: `{safe: true}`)\n   - [All possible options](http://mongodb.github.com/node-mongodb-native/api-generated/db.html#constructor)\n\n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.1.0","dist":{"shasum":"071a2f6bff86135018f0ca24b8719320edc4ae72","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.1.0.tgz","integrity":"sha512-eg6hIsmi0QCLpdIWm0/QVXQwNotUFKsV1fNGgJtMfJqe/8nCdtpPt4ayXVyfZQJ6CskK4tbLrkUJ7PGyTqSj7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQoDWmPKcqmI0v/6w1ij7vnKKI9qOokgJwHiWfRElaCwIhAOaNkefNOudMMlDfGCSe41svo7i3ZyQ6GebdngA4/7lG"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.1.1":{"name":"mongo-helper","version":"0.1.1","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongo-helper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongo-helper\": \"0.1.x\"\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper` in your project directory.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nSadly, Mongo Helper can't read your mind (yet), so you'll need to provide it with some parameters about your particular needs.  The simple way to require this is:\n\n    var mongoHelper = new (require('mongo-helper'))({Parameters: 'here'});\n    \nIt's also possible (and might work better, depending on your project) to define a `config` object and pass that:\n\n    var mongoHelper = new (require('mongo-helper'))(config);\n    \nMongo Helper takes the following parameters (if you don't include them, Mongo Helper will revert to a default value)\n\n - `serverAddress` - The IP/Address of the MongoDB server (default: `localhost`)\n - `serverPort` - Port used to connect to the mongoDB server (default: `mongo.Connection.DEFAULT_PORT`)\n - `serverOptions` - Options to pass to the server (in an object literal) (default: `{auto_reconnect: true}`)\n   - You can find all possible options [at the docs](http://mongodb.github.com/node-mongodb-native/api-generated/server.html#constructor)\n - `dbName` - Name of the database you'll be using (default: `test`)\n - `dbOptions` - Options to pass to the db constructor (in an object literal) (default: `{safe: true}`)\n   - [All possible options](http://mongodb.github.com/node-mongodb-native/api-generated/db.html#constructor)\n\n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.1.1","dist":{"shasum":"e0e61154bcef55b4a2f151ac57c530eed4bd3b71","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.1.1.tgz","integrity":"sha512-3Yg7VedXp0TfqOGSJNXqrf9X/aELJeSta9NXak+VlThikNVCJbuEKrpOsEplj881DVACXNkE89GB03BQGgPbzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhRPsPBibXY0uDWCK01kBDyh292Ij/73PzAud5fPzxNAiBcODSK7CAWb7+TW8W66KhDxOvvzAXWt3HXHpLQdsdJOA=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.1.2":{"name":"mongo-helper","version":"0.1.2","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongo-helper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongo-helper\": \"0.1.x\"\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper` in your project directory.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nSadly, Mongo Helper can't read your mind (yet), so you'll need to provide it with some parameters about your particular needs.  The simple way to require this is:\n\n    var mongoHelper = new (require('mongo-helper'))({Parameters: 'here'});\n    \nIt's also possible (and might work better, depending on your project) to define a `config` object and pass that:\n\n    var mongoHelper = new (require('mongo-helper'))(config);\n    \nMongo Helper takes the following parameters (if you don't include them, Mongo Helper will revert to a default value)\n\n - `serverAddress` - The IP/Address of the MongoDB server (default: `localhost`)\n - `serverPort` - Port used to connect to the mongoDB server (default: `mongo.Connection.DEFAULT_PORT`)\n - `serverOptions` - Options to pass to the server (in an object literal) (default: `{auto_reconnect: true}`)\n   - You can find all possible options [at the docs](http://mongodb.github.com/node-mongodb-native/api-generated/server.html#constructor)\n - `dbName` - Name of the database you'll be using (default: `test`)\n - `dbOptions` - Options to pass to the db constructor (in an object literal) (default: `{safe: true}`)\n   - [All possible options](http://mongodb.github.com/node-mongodb-native/api-generated/db.html#constructor)\n\n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.1.2","dist":{"shasum":"e33e3779d992631823a132ce511eb27b05657876","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.1.2.tgz","integrity":"sha512-BAYwqt8MdKInM8iQ22oYkfpOFKhLUJRCXWNu0yiXZr6boevwYuk0ctu2rwMPKD51z7PS86vQyoGvO16PwUIpcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2mSb8ga4CvaSdyFDCM8jBiHelL6wCJ4M9jC+Re0fJUAiAFWvvGcsl0gLQmdRXH5QGAmWNJd/uUIYXw5iBtfZoljw=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.2.0":{"name":"mongo-helper","version":"0.2.0","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongo-helper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":"0.8.x","npm":"1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongo-helper\": \"0.1.x\"\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper` in your project directory.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nSadly, Mongo Helper can't read your mind (yet), so you'll need to provide it with some parameters about your particular needs.  The simple way to require this is:\n\n    var mongoHelper = new (require('mongo-helper'))({Parameters: 'here'});\n    \nIt's also possible (and might work better, depending on your project) to define a `config` object and pass that:\n\n    var mongoHelper = new (require('mongo-helper'))(config);\n    \nMongo Helper takes the following parameters (if you don't include them, Mongo Helper will revert to a default value)\n\n - `serverAddress` - The IP/Address of the MongoDB server (default: `localhost`)\n - `serverPort` - Port used to connect to the mongoDB server (default: `mongo.Connection.DEFAULT_PORT`)\n - `serverOptions` - Options to pass to the server (in an object literal) (default: `{auto_reconnect: true}`)\n   - You can find all possible options [at the docs](http://mongodb.github.com/node-mongodb-native/api-generated/server.html#constructor)\n - `dbName` - Name of the database you'll be using (default: `test`)\n - `dbOptions` - Options to pass to the db constructor (in an object literal) (default: `{safe: true}`)\n   - [All possible options](http://mongodb.github.com/node-mongodb-native/api-generated/db.html#constructor)\n - `url` - If you wish to connect via a url provided (say, through MongoHQ) pass it through url\n\n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.2.0","dist":{"shasum":"29219dee0ac10fb94f3a9a2934aa3e9af50c2ad2","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.2.0.tgz","integrity":"sha512-WlbYwLskm4JraR9b9lb1SWsCGyCXQIHarGEohf0Cq8cewM5yTaYTMHcLOQ4gFoWXlJtx5BNL+hOA0oEYZWSWtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLs+MKq6xjCdpyi9dVFrAwmAR/sb9Q9RZuXglteDgEHAIgUyZbCi8S77gy9nMdnVmgpR+wRL7GmVddkbartsR3giI="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.2.1":{"name":"mongo-helper","version":"0.2.1","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongo-helper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":">= 0.8.x","npm":">= 1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongo-helper\": \"0.1.x\"\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper` in your project directory.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nSadly, Mongo Helper can't read your mind (yet), so you'll need to provide it with some parameters about your particular needs.  The simple way to require this is:\n\n    var mongoHelper = new (require('mongo-helper'))({Parameters: 'here'});\n    \nIt's also possible (and might work better, depending on your project) to define a `config` object and pass that:\n\n    var mongoHelper = new (require('mongo-helper'))(config);\n    \nMongo Helper takes the following parameters (if you don't include them, Mongo Helper will revert to a default value)\n\n - `serverAddress` - The IP/Address of the MongoDB server (default: `localhost`)\n - `serverPort` - Port used to connect to the mongoDB server (default: `mongo.Connection.DEFAULT_PORT`)\n - `serverOptions` - Options to pass to the server (in an object literal) (default: `{auto_reconnect: true}`)\n   - You can find all possible options [at the docs](http://mongodb.github.com/node-mongodb-native/api-generated/server.html#constructor)\n - `dbName` - Name of the database you'll be using (default: `test`)\n - `dbOptions` - Options to pass to the db constructor (in an object literal) (default: `{safe: true}`)\n   - [All possible options](http://mongodb.github.com/node-mongodb-native/api-generated/db.html#constructor)\n - `url` - If you wish to connect via a url provided (say, through MongoHQ) pass it through url\n\n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe data removed is passed to `next`.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the updated data being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n","_id":"mongo-helper@0.2.1","dist":{"shasum":"2e50f54d20048ce1c4f53eadbdcbcaab8638c8ad","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.2.1.tgz","integrity":"sha512-EvsVOjKOlzX71ItpnHUes+Yip/NQbfyRIwVn+CrHqTNApnW50GhoHVy3JgC1qxjozGCKFUYWFMBaPDGEZvyAUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8XkPqiXBMBr1rzwUrgPRaYAxDoFzfhTc/xWx8rM92ngIgc7ITAxBbULL7OzSAaBKZFwwj2iQFmh8ND5kw6RTryJE="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]},"0.3.0":{"name":"mongo-helper","version":"0.3.0","author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"description":"A simple CRUD wrapper for the node Mongo connector to aid in rapid application development","main":"mongo-helper","repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"},"keywords":["simple-mongo","mongo","mongodb","CRUD"],"engines":{"node":">= 0.8.x","npm":">= 1.1.x"},"dependencies":{"mongodb":"1.1.x"},"license":"MIT","readmeFilename":"README.md","gitHead":"a0c0f16ccb0847f0f2e5624ef3ce4e2f0ab5a4b0","devDependencies":{"mocha":"1.7.x"},"scripts":{"test":"mocha test.js -u tdd"},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongo-helper\": \"0.1.x\"\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper` in your project directory.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nSadly, Mongo Helper can't read your mind (yet), so you'll need to provide it with some parameters about your particular needs.  The simple way to require this is:\n\n    var mongoHelper = new (require('mongo-helper'))({Parameters: 'here'});\n    \nIt's also possible (and might work better, depending on your project) to define a `config` object and pass that:\n\n    var mongoHelper = new (require('mongo-helper'))(config);\n    \nMongo Helper takes the following parameters (if you don't include them, Mongo Helper will revert to a default value)\n\n - `serverAddress` - The IP/Address of the MongoDB server (default: `localhost`)\n - `serverPort` - Port used to connect to the mongoDB server (default: `mongo.Connection.DEFAULT_PORT`)\n - `serverOptions` - Options to pass to the server (in an object literal) (default: `{auto_reconnect: true}`)\n   - You can find all possible options [at the docs](http://mongodb.github.com/node-mongodb-native/api-generated/server.html#constructor)\n - `dbName` - Name of the database you'll be using (default: `test`)\n - `dbOptions` - Options to pass to the db constructor (in an object literal) (default: `{safe: true}`)\n   - [All possible options](http://mongodb.github.com/node-mongodb-native/api-generated/db.html#constructor)\n - `url` - If you wish to connect via a url provided (say, through MongoHQ) pass it through url\n\n###Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.  `err` and `results` are passed to `next` in typical node style.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myFunc);\n    \n###Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n###Remove\nThe number of entries removed is passed to `next` in the `results` variable.\n\n###Update\nUpdate takes five parameters:\n\n - `coll` and `next` are the same, with the number of updated entries being sent to `next`\n - `criteria` is the query that mongo will use to find the entries to update\n - `update` is the entry that will update the selected documents\n - `params` are the parameters you want to pass to `update`.  [Option values](http://mongodb.github.com/node-mongodb-native/markdown-docs/insert.html#update)\n\nTests\n=====\n","_id":"mongo-helper@0.3.0","dist":{"shasum":"ee8affc895efc93d3115ea0c260ed096fce49c0f","tarball":"https://registry.npmjs.org/mongo-helper/-/mongo-helper-0.3.0.tgz","integrity":"sha512-QFzQ6EFmw1snz9q28GGP3TzX4eC7H20N3O9n1Q6CRNPcb+Ui2v+m8io+a0vvMgoy5Sb40XUp+/Exj9lKk9f+QA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxrskjtyr5uT5UI3F6wwolkcYQSic5Y0fCR08G0BM1aQIhAOfaMmbk40IQrHHapgusnyQLSIsG51oGEGUDtabNzdan"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"somekittens","email":"rkoutnik@gmail.com"},"maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}]}},"readme":"Mongo Helper\n===========\nThis is a simple wrapper created to make it easier for us to prototype systems quickly with minimal errors.  My priority here is to keep things simple, rather than giving the user a lot of options.\n\nNOTE: Don't use this if you don't already know how to interact with MongoDB.  Using Mongo Helper is no excuse for not understanding the underlying code.\n\nInstalling\n=========\nTHIS IS NOT IN NPM YET.  DISREGARD THE FOLLOWING.\n\nYou can either install it by adding the following dependency in `package.json`:\n\n    \"dependencies\": {\n      \"mongoHelper\": \"*\" //Using * for versioning isn't recommended.  I'll fix that in the future.\n    }\n    \nand then running `npm install` or by running `npm install mongoHelper`.\n\nYOU MAY CEASE YOUR DISREGARDING NOW.\n\nUsage\n=====\nNow that you've installed mongoHelper, how can you use it?\n\nFirst, navigate to `node_modules/mongoHelper` and open up `config.js`.  This is initalized with some defaut settings, but you probably want to alter them to meet your needs.  Then, require the mongoHelper object with:\n\n    var mongoHelper = require('mongoHelper');\n    \nCurrently, only insert and find are implemented.\n\n####Insert\nInsert takes three parameters: `coll`, `query`, and `next`.\n\n - `coll` is a string representing the collection we want to insert `query` into\n - `query` is the object to be inserted into the collection\n - `next` is a function that will be called after the db operations finish.  The database is closed before `next` is called, so you can call another db operation with `next`.\n \nFor example, if I wanted to insert `{foo: 'bar'}` into the `foobar` collection (and had required it like above, I would write:\n\n    mongoHelper.insert('foobar', {foo: 'bar'});\n    \nIf I then wanted to run `myFunc` after that:\n\n    mongoHelper.insert('foobar', {foo: 'bar'}, myfunc);\n    \n####Find\nLike insert, find takes three parameters.  The one change is that the results of the find statement will be passed to the function you input.\n\n####Remove\nThe data removed is passed to `next`.\n","maintainers":[{"name":"somekittens","email":"rkoutnik@gmail.com"}],"time":{"modified":"2022-06-20T05:49:18.747Z","created":"2013-01-04T19:50:18.270Z","0.0.1":"2013-01-04T19:50:19.646Z","0.0.2":"2013-01-04T19:59:11.664Z","0.0.3":"2013-01-07T03:55:06.235Z","0.0.4":"2013-01-07T17:43:45.968Z","0.1.0":"2013-01-08T02:26:12.978Z","0.1.1":"2013-01-08T04:01:13.766Z","0.1.2":"2013-01-09T16:50:12.297Z","0.2.0":"2013-01-26T04:01:57.044Z","0.2.1":"2013-01-26T04:58:06.459Z","0.3.0":"2013-04-26T03:32:17.264Z"},"author":{"name":"Randall 'SomeKittens' Koutnik","email":"rkoutnik@gmail.com"},"repository":{"type":"git","url":"https://github.com/SomeKittens/Mongo-Helper"}}