{"_id":"access-mongo","_rev":"31-2bd8cca4f513b190bf96b10354ebf9fa","name":"access-mongo","time":{"modified":"2022-06-13T02:21:15.518Z","created":"2015-01-04T08:22:56.003Z","0.0.1":"2015-01-04T08:22:56.003Z","0.0.2":"2015-01-04T08:39:44.724Z","0.0.3":"2015-01-06T09:18:26.157Z","0.0.4":"2015-01-16T18:55:30.310Z","0.0.5":"2015-01-16T18:57:53.291Z","0.0.6":"2015-01-23T09:41:27.807Z","0.0.7":"2015-01-26T22:22:51.294Z","0.1.0":"2015-02-03T02:08:00.833Z","0.1.1":"2015-03-18T20:08:36.125Z","0.1.2":"2015-03-28T00:17:36.950Z","0.1.3":"2015-04-05T09:36:12.352Z","0.1.4":"2015-04-07T23:38:09.123Z","0.1.5":"2015-04-13T21:57:14.287Z","0.1.6":"2015-04-14T09:05:42.894Z","0.1.7":"2015-04-16T06:02:29.742Z","0.1.8":"2015-04-16T20:35:11.777Z","0.1.9":"2016-05-18T21:11:53.303Z","0.2.0":"2016-11-10T04:46:42.566Z","0.3.0":"2017-02-14T16:56:05.741Z"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist-tags":{"latest":"0.3.0"},"description":"Simple MongoDB wrapper","readme":"# access-mongo\n\nSimple MongoDB wrapper. Will present a consistent promised API for both MongoDB and NEDB databases.\n\nThis will be incredibly useful for testing using local files rather than actual MongoDB instances. This will also be very useful for using a MongoDB-like database for work that can use simple flat files. In this case your fixtures can just be the NEDB files, which are an extended form of JSON.\n\n## Installation\n```\nnpm install --save access-mongo\n```\n\n## Usage\n\n```javascript\nvar AccessMongo = require('access-mongo');\n\nAccessMongo.connect('mongodb://foo:bar@hello.com:1234/mydb').then(function() {\n  // create a model for collection users\n  var User = AccessMongo.createModel('users');\n\n  User.where({name: 'Matt'}).then(function(user) {\n    console.log(user);\n  });\n});\n\n// connect to multiple databases\nAccessMongo.connect({\n  foo: 'mongodb://foo:bar@hello.com:1234/mydb',\n  bar: 'mongodb://foo:bar@yoyo.foo.bar:1234/otherdb'\n}).then(function() {\n  var FooUser = AccessMongo.createModel('users', {connection: 'foo'});\n  var BarUser = AccessMongo.createModel('users', {connection: 'foo'});\n});\n\n// override query parameters of all connections\nAccessMongo.connect({\n  foo: 'mongodb://foo:bar@hello.com:1234/mydb',\n  bar: 'mongodb://foo:bar@yoyo.foo.bar:1234/otherdb'\n}, {\n  maxPoolSize: 3\n});\n\n// create an nedb database\nAccessMongo.connect('test.db').then(function() {\n  var User = AccessMongo.createModel('users');\n\n  User.where({name: 'Matt'}).then(function(user) {\n    console.log(user);\n  });\n});\n\n```\n\n## Primary API\n\n### AccessMongo\n\n`AccessMongo` is a singleton that manages the connection state to each database you connect to. You can connect to one or multiple databases. Each connection has a name that you can use to refer to it later. If you don't specify a name the connection name will be `default`.\n\n#### Connecting to a single database\n\nReturns a promise that resolves to the instance of `AccessMongo`.\n\n```javascript\nAccessMongo.connect('mongodb://localhost:27017/test-db');\n```\n\n#### Connecting to a multiple databases\n\nReturns a promise that resolves to the instance of `AccessMongo`.\n\n```javascript\nAccessMongo.connect({\n  default: 'mongodb://localhost:27017/test-db',\n  foo: 'mongodb://foo:bar@other.db.com:27019/some-db'\n});\n```\n\n#### Disconnecting from all databases\n\nReturns a promise that resolves to the instance of `AccessMongo`.\n\n```javascript\nAccessMongo.disconnect();\n```\n\n#### Creating a model\n\nReturns a `Model` object.\n\n```javascript\n// create a model stored in the 'users' collection\nvar User = AccessMongo.createModel('users');\n\n// create a model stored in the 'users' collection, 'foo' connection, default database\nvar User = AccessMongo.createModel('users', {connection: 'foo'});\n\n// create a model stored in the 'users' collection, 'default' connection, 'other-db' database\nvar User = AccessMongo.createModel('users', {database: 'other-db'});\n\n// create a model stored in the 'users' collection, 'foo' connection, 'other-db' database\nvar User = AccessMongo.createModel('users', {connection: 'foo', database: 'other-db'});\n```\n\n### Model\n\n#### Creating a query\n\n```javascript\n// create a query\nvar query = User.where({name: 'Matt Insler'});\n\n// add to a query\nquery.where({email: 'matt.insler@gmail.com'});\n```\n\n#### Modifying a query\n\n```javascript\n// skip\nUser.skip(5);\nUser.where({...}).skip(5);\n\n// limit\n\n// fields\nUser.fields({name: 1, address});        // only include name and address\nUser.where({...}).fields({timestamp: 0}); // omit timestamp\n\n// sort\nUser.sort({name: 1});             // sort by name ascending\nUser.where({...}).sort({name: -1}); // sort by name descending\n```\n\n#### Fetching data from a query\n\n```javascript\n// fetch the first document matching this query\nUser.first().then(function(user) {\n\n});\nUser.where({...}).then(function(user) {\n\n});\n\n// fetch all documents matching this query\nUser.array().then(function(users) {\n\n});\nUser.where({...}).array().then(function(users) {\n\n});\n\n// Create a cursor for this query\nvar cursor = User.cursor();\nvar cursor = User.where({...}).cursor();\n\n// Count the documents matching this query\nUser.count().then(function(count) {\n\n});\nUser.where({...}).count().then(function(count) {\n\n});\n\n// Get a list of distinct values of the field matching this query\nUser.distinct('name').then(function(distinctNames) {\n\n});\nUser.where({...}).distinct('name').then(function(distinctNames) {\n\n});\n```\n\n### Inserting/updating documents\n\n```javascript\n// Insert a document, will not update\nUser.create({...}).then(function(savedDocument) {\n\n);\n// Insert multiple documents, will not update\nUser.create([{...}, {...}]).then(function(arrayOfSavedDocuments) {\n\n);\n\n// Save a document, doing an update if the document has an '_id' field, and an insert if not\nUser.save({...}).then(function(savedDocument) {\n\n});\n\n// Update a single document matching the query\n// options: http://mongodb.github.io/node-mongodb-native/1.4/api-generated/collection.html#update\nUser.update(query, update, options).then(function(numDocumentsChanged, details) {\n  // check details.updatedExisting to see if objects were inserted or updated (when using {upsert: true})\n});\n// Update a single document matching the query from the where({...})\nUser.where({...}).update(update, options).then(function(numDocumentsChanged, details) {\n\n});\n\n\nUser.where({...}).firstAndUpdate(update, options).then(function(fetchedDocument) {\n\n});\n```\n\n### Removing documents\n\n```javascript\n// To prevent you from removing all documents by accident, this will throw an Error\nUser.remove();\n\n// To remove all documents you can override this failsafe\nUser.remove({ override: true });\n\n// Remove all documents matching this query\nUser.where({...}).remove().then(function(numDocumentsRemoved) {\n\n});\n```\n\n## Lower-level API\n\n### AccessMongo\n\n#### Get the default connection\n\nReturns the default connection object if there is a one or `null`.\n\nThis is the equivalent of `AccessMongo.getConnection('default')`.\n\n```javascript\nvar connection = AccessMongo.getDefaultConnection();\n```\n\n#### Get a connection by name\n\nReturns the connection object by name or `null`.\n\n```javascript\nvar connection = AccessMongo.getConnection('foo');\n```\n\n### Connection\n\n#### Get the default database\n\n```javascript\nvar db = connection.getDefaultConnection();\n```\n\n#### Get a database by name\n\n```javascript\nvar db = connection.getDatabase('my-db');\n```\n\n#### Disconnect this connection\n\n```javascript\nconnection.disconnect();\n```\n\n### Database\n\n#### Get a collection from the database\n\n```javascript\nvar collection = db.getCollection('users');\n```\n\n## License\nCopyright (c) 2015 Matt Insler\nLicensed under the MIT license.\n","versions":{"0.0.2":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.0.2","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","engines":{"node":">= 0.10.0"},"dependencies":{"mongodb":"^1.4.26","q":"^1.1.2"},"keywords":["mongodb"],"gitHead":"7b158c8c8b7d970436778e498d897f9ecc4b2b52","_id":"access-mongo@0.0.2","scripts":{},"_shasum":"1dc998146c6ade7045d0fc04f752bbf2c0729b69","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"1dc998146c6ade7045d0fc04f752bbf2c0729b69","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.0.2.tgz","integrity":"sha512-475B6kICIyD5p6S29ccHSSdwOE6CAHOQ1aNbVFFOXa1vcnlnD+yvUPo11NhjBSH078sNjereaCFuW45CgIH4Mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDNnw8+dSzn4l7qngcUoTEVcSMpt+i7BNckZ5rD/oJCZAiA844Xt2quXFSVQroLLM9srvHEUcXzfD5DTer6LWTB4eA=="}]}},"0.0.3":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.0.3","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0"},"gitHead":"b74873eaef0b572ba3998a3ae1b56e538a579213","_id":"access-mongo@0.0.3","_shasum":"193c1b9bf6ef6b4feed9be36b61ab4a71645931f","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"193c1b9bf6ef6b4feed9be36b61ab4a71645931f","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.0.3.tgz","integrity":"sha512-Gqy+13yrm1vzvQNUoNKAd2EFUGYYQLQ7Z+/o+w+BvI01rSKH3QQPYzQ0p3oru2Jrwwh20xlpLWXaUEK7aYiF9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaZpSat+DN7SbztrwFr1HzQD9M/TTbUQolKoi7HGVzJAiBL/MqQ525/YsCmBd6VfA9sNqLK64oY8g0H3ruP9Piz3A=="}]}},"0.0.4":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.0.4","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0"},"gitHead":"a385ce7a69c6239c65348b755c3997022fe95b61","_id":"access-mongo@0.0.4","_shasum":"5d0d3f7975d5c310d4f923b63840e4b948f74852","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"5d0d3f7975d5c310d4f923b63840e4b948f74852","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.0.4.tgz","integrity":"sha512-jAI9le1N+HPL6fSvIMoVNEn/DyhSC42M92rg09NM5nOREvGQbNVFwG10MruFpitQ0DJzroLfYL3nN636u1L8vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwF5PCLBpL2IwbfJpK3Ayzmf/uiJVZnQH0U8r1ykIyJwIgeiR3ZP98fty9wiCRf5DDPZzk6A6QnWAfSDN7cAmJVbo="}]}},"0.0.5":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.0.5","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0"},"gitHead":"e481184dff26b4f5d46418a24a582785c4888eac","_id":"access-mongo@0.0.5","_shasum":"91e4806928daada1684321d336b9d5355376a536","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"91e4806928daada1684321d336b9d5355376a536","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.0.5.tgz","integrity":"sha512-Tcn8U1NGXwqEaQWykaoqM3S+qtc9sdvMe/Lnr7P01hHMJS8eDYVNpeoSuhATZOcVcenbYIXCUwZSsPHCYacDKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/BTQo04BPS5KGW5IKsKN2RrcZm3zBJWvSvRvfXF67twIgQMWnlvhe6EWN7CGHMf2eHyZtsKavJ1rqQ/LF0UTR5+Y="}]}},"0.0.6":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.0.6","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"2b0dea37b8d3ebd70fb969d878dfbf3d083b7f51","_id":"access-mongo@0.0.6","_shasum":"5ae5d0543d1364c889960e6a165d2114e0ea1e13","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"5ae5d0543d1364c889960e6a165d2114e0ea1e13","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.0.6.tgz","integrity":"sha512-JtC7DXCkvf8WuoWfIx+38YDClg+r9p1LXonYXXXSa8tKFCIIPvULEyxwx53cngLnEo476rKrfBmawEJgKW8uhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwHxa3O/lOsY2eOjCzQpMG8VBuC5A68kl9W5K5y96Z5gIhAIPRBrSx42WFodZvs8viPngEsE8nhQ5XJBmj5POUCYn+"}]}},"0.0.7":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.0.7","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"lodash.isplainobject":"^3.0.0","mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"1bbb58ad177a6c5a095bff5dd12b116851dd7d28","_id":"access-mongo@0.0.7","_shasum":"3e0975f2eaeac159835a1552f30f5dedc8148615","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"3e0975f2eaeac159835a1552f30f5dedc8148615","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.0.7.tgz","integrity":"sha512-i1xYOwhmCEIr6jVDJtEOAZUvweeFtqz/IiSh27HS0beejR2GcVPVDEUto77OsHjui/NJ7tOlEU2mTaMtqYVlmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCd3Xy3hfqPe5UznkW/qHjhgrjVjOvsy36S6VdWmF8i/AIgGRj0NtkSeSRgprpSGo5WqXR9iXaY7PhAWLab3p1fdIE="}]}},"0.1.0":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.0","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"lodash.isplainobject":"^3.0.0","mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"2ca46f773d33ae8add552c02b2fe5cb03ea601d3","_id":"access-mongo@0.1.0","_shasum":"017ef773ff75d7960f43830160d7b7dc30ff8a3a","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"017ef773ff75d7960f43830160d7b7dc30ff8a3a","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.0.tgz","integrity":"sha512-uJ6KX3Wne0W4Nxg9FTUTbRE3o0eNaYFmypwx6uR7Xcg8JAcR0IbKpNJ+y8TuWHbtZKmwEhGRtxfcmm5O+2fMVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiV5fs3QPnGlxHusJLFSiAZLK+p5bxjU9RfSufWIwepgIgX9AgW3LE4LaiJ3tlCrNajViw5y4vn+FiHR0wrKbTq9M="}]}},"0.1.1":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.1","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"lodash.isplainobject":"^3.0.0","mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"cb27a3db056d508a2ff8c1bd51fdeaeb71246d66","_id":"access-mongo@0.1.1","_shasum":"7a523de896d048aab2a7684623cecac43fe5118e","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"7a523de896d048aab2a7684623cecac43fe5118e","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.1.tgz","integrity":"sha512-K+hWq9GLoR2ULifVxujCACR5ptmh81+pW/gy/4yAqflZN2Xa21kQl6jJOezyWDiwDtqr+JAddwrIyHt2FY4MiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAbLQSHQzvVk1R5fI+UzG47s7IYQ/cox5Iceb3ZYHiwQIhAPECbWq5Mtjc7ngPFHhUJPomHfGevQ7ZDE0nMXWTGaRh"}]}},"0.1.2":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.2","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"lodash.isplainobject":"^3.0.0","mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"c24d91c35a5d852b95e6ca8c53d7404027a19322","_id":"access-mongo@0.1.2","_shasum":"d7a4c1b5eeeaf4cd97954b9bd4f948f07e9cded4","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"d7a4c1b5eeeaf4cd97954b9bd4f948f07e9cded4","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.2.tgz","integrity":"sha512-J8XtUTqboMPeizXPSjTlQd3lZiYC0tyCiSdrGQZnHVuiTPWTejVssnXld4oS+vMQTHxY2tVA4bCoNe1WuAen6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdNI/93jYmyB2mBlaHgbgurfTlrrGW64/8XSaDeMM0gQIhAPLOZI+2pH+HfKqiSccUyN0/ApsBrL4jn/B4ZFoTPbsR"}]}},"0.1.3":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.3","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"lodash.isplainobject":"^3.0.0","mongodb":"^1.4.26","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"fb375ccb4bf6725e3a87a9ce6c84036df958db7d","_id":"access-mongo@0.1.3","_shasum":"35f7dee7eb31ebc6bcd6a8fb6ccd514516d232af","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"35f7dee7eb31ebc6bcd6a8fb6ccd514516d232af","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.3.tgz","integrity":"sha512-Bz2mRueqykfOu0a4Cwu8jd8pl0oIrv3Dk6WC++S98EoPF8ZBhAnmJ4lsT8LnW1cAiwPyBSRuEdYOMcUWno0jWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe9VpyxOQgv8/fsBmsk6duyhKJvigLM9PJpu2ijWF/ewIhAP7S5+vQSu6+cQF1gV1uqP0m4WZvzFaGz1jh9qn/G4fF"}]}},"0.1.4":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.4","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"lodash.isplainobject":"^3.0.0","mongodb":"1.4.x","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"04e732c1540e54ad0a218e1a162f2c1e873f9f8c","_id":"access-mongo@0.1.4","_shasum":"7a2ccf0ced5ed0503a79c1e11fd85a1d12820937","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"7a2ccf0ced5ed0503a79c1e11fd85a1d12820937","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.4.tgz","integrity":"sha512-AlG5+I0VbmnQRYqfT0CDjiAfS+k7H0IPTKrVYvKmIXMupdvEGBR1ukn2ZO22i7gu9CW8Qfz5ZtpMx4Xycg7eSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp3u1xSpzOKeJb0fFXsY7rB20kO4EQ4EVfX9MPEX5K2wIhAPTvx0FHdt/9v+TZSJHN38lsQR3T4pnNPcZhBnkDFYCt"}]}},"0.1.5":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.5","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"clone":"^1.0.2","lodash.isplainobject":"^3.0.0","mongodb":"1.4.x","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"228f1ff7cc74da4fe49e7e0b426c4cc84eed9440","_id":"access-mongo@0.1.5","_shasum":"6c112f4017b10d076ff2189a0e59c832f417a501","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"6c112f4017b10d076ff2189a0e59c832f417a501","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.5.tgz","integrity":"sha512-sRIljBSYaKLDsTcrCiSQBoaysHPUvCcLI7UeHvMJSFHyuOOIK2I4MIs04QbUkXz/HKIyyw3fvT0cZIcjFam6rg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChShvQiBATSDaNj/4uvketR/3N3Rr97e2wwiZlT9YqOAIhAMn0PMkusKxMd4bkiIc6xqFXMz8YFVBBdnIHlKkSsaK0"}]}},"0.1.6":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.6","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"clone":"^1.0.2","lodash.isplainobject":"^3.0.0","mongodb":"1.4.x","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"f11a8d3415909736928e996e4c4c9e3a5780e193","_id":"access-mongo@0.1.6","_shasum":"248571929a84393be1a0d1a9530ad2a19550fe1f","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"248571929a84393be1a0d1a9530ad2a19550fe1f","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.6.tgz","integrity":"sha512-r6itunPUVhY8kh0G4AJv6Fo13ohydhFirstyBYu/SddzA4jmRJyPjEFNWW4TGKLZCYWeXkAk47+CxlFfhFeLlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmjfyhKwyvRfN6z02LnpfCYxhaua6st5R2Ex5pay4FQAiA0bHN2V7ce2gPS7dyQn3RQa822vSMTzNyzHAXkl6kAKQ=="}]}},"0.1.7":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.7","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"betturl":"^0.2.3","clone":"^1.0.2","lodash.isplainobject":"^3.0.0","mongodb":"1.4.x","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"c7c4d61dc64c7c8a3417f3e51fe079d6c8ff39ce","_id":"access-mongo@0.1.7","_shasum":"101ecc524b45764ea5ab5fc1cdf26a7b61b2dbd5","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"101ecc524b45764ea5ab5fc1cdf26a7b61b2dbd5","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.7.tgz","integrity":"sha512-N1M8oDllPMTu3N7E7dJZ+oXfYabzgKV665Ur17bBMbaW3HtVPImcR3SHAmcsKdVNgF2RU5faoYuiqfP30y0A1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKBXWFMIH8mIeVAJrBMqg9z6Q8qZ57Z75RpQDhUYnMvQIhAK4u3mJocSqn0EYi+SgaA24vb+x4lxMZ153cjDdcrYUd"}]}},"0.1.8":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.8","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"betturl":"^0.2.3","clone":"^1.0.2","lodash.isplainobject":"^3.0.0","mongodb":"1.4.x","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"370dd9aeb31faa7413822c485ab26489ab0c5a63","_id":"access-mongo@0.1.8","_shasum":"ac69677b8b788bdfa837216f80869980253fbab0","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"ac69677b8b788bdfa837216f80869980253fbab0","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.8.tgz","integrity":"sha512-qdQ11Fh9hyq3c0NSDGejnawuECKM89ugZBGt3pcr1fp34q+PvhvnXFWEwT5ix/tEPo9Qy/D4CsFHWfD8XJu7dQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDvZVbaQuCku+G10sY+e67fRYZICWtDqi7DV+qVhyy4AiEAkpK4ZEGVU9ewNXTrYvIZpGHzfXF31V13w0VJ58faUhw="}]}},"0.1.9":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.1.9","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"betturl":"^0.2.3","clone":"^1.0.2","lodash.isplainobject":"^3.0.0","mongodb":"1.4.x","nedb":"^1.0.2","q":"^1.1.2"},"keywords":["mongodb"],"devDependencies":{"del":"^1.1.1","mocha":"^2.1.0","mocha-jshint":"0.0.9"},"gitHead":"da227856ff45eed4de0afddb0d2b3b4c1b1a47ab","_id":"access-mongo@0.1.9","_shasum":"3075bfa752b4b4e586d37ced39eaaeed51c0d5ad","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"dist":{"shasum":"3075bfa752b4b4e586d37ced39eaaeed51c0d5ad","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.1.9.tgz","integrity":"sha512-X3L/UJmD/TCPKTE2fg8uPK7OEWvymGrKF/qgkXpnHtm/LspTSkPL2mcN+83hm3HDsiGeSZEiRWdpIcW4Frsz0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3oPuOsxzM42r6hrEwsUNf9ZYJl0rgf4E9w0qWXEAycAiEAjpVxaUK59cCxrlDtZWpeBS9FjEkCuoeeD8vYt4Jzu1s="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/access-mongo-0.1.9.tgz_1463605910742_0.7306630630046129"}},"0.2.0":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.2.0","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"betturl":"0.2.3","clone":"2.0.0","lodash.isplainobject":"4.0.6","mongodb":"2.2.11","q":"1.4.1"},"keywords":["mongodb"],"devDependencies":{"del":"1.1.1","mocha":"2.1.0","mocha-jshint":"0.0.9"},"gitHead":"53a98fd6bca2fa7b4cf4ef784059a2111fb9f621","_id":"access-mongo@0.2.0","_shasum":"a7e574d0fcf18611093cb0cf97722af87c08f539","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"dist":{"shasum":"a7e574d0fcf18611093cb0cf97722af87c08f539","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.2.0.tgz","integrity":"sha512-3iS0r34Wzt+c/CCsm1ZthwmfrnpBoAl4dh/q9fZLbjSzD/vUfZuvpnd2UMuygb2hU/H3MPJ0Uz7Uh1p4aZsPog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7Dqu3hKJRKe6GwYWzDijpENrtaI0+KzJlTREkHBQd3wIhAMM1SPpFFCVf53eDmHZBlJfb/YT6rxi2255QMSiMHueM"}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/access-mongo-0.2.0.tgz_1478753200316_0.601651708362624"}},"0.3.0":{"name":"access-mongo","description":"Simple MongoDB wrapper","version":"0.3.0","homepage":"https://github.com/mattinsler/access-mongo","author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mattinsler/access-mongo/blob/master/LICENSE-MIT"}],"main":"lib/access-mongo","scripts":{"test":"mocha"},"engines":{"node":">= 0.10.0"},"dependencies":{"betturl":"0.2.3","clone":"2.0.0","lodash.isplainobject":"4.0.6","mongodb":"2.2.11","q":"1.4.1"},"keywords":["mongodb"],"devDependencies":{"del":"1.1.1","mocha":"2.1.0","mocha-jshint":"0.0.9"},"gitHead":"68b2902f266eed3de349937cecd699f6b91cbf5b","_id":"access-mongo@0.3.0","_shasum":"5f75491695681fa2e43adc4bcdc9cb53dae83e93","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.5.0","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"dist":{"shasum":"5f75491695681fa2e43adc4bcdc9cb53dae83e93","tarball":"https://registry.npmjs.org/access-mongo/-/access-mongo-0.3.0.tgz","integrity":"sha512-0uxud8Ok/eIeAzpMIswecZO85xeSfdXqDGyHpmdwDKMBWdfTrqy/EYcKdfAi9bilRQjTW6z641LI14qD0OvfLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkuskbrU4VwO77EaQu6/aqjPYdY3VJ0FlTemnTn71WcQIgU4llIhK/YiZm6j81DamdygLE7Rbwu9eiyQ+uz8ZiJBM="}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/access-mongo-0.3.0.tgz_1487091365020_0.432988099521026"}}},"homepage":"https://github.com/mattinsler/access-mongo","keywords":["mongodb"],"repository":{"type":"git","url":"git://github.com/mattinsler/access-mongo.git"},"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"http://www.mattinsler.com"},"bugs":{"url":"https://github.com/mattinsler/access-mongo/issues"},"readmeFilename":"README.md"}