{"_id":"mongodbext","_rev":"47-e2e8646dfdf42fe93427a6ff8f00e017","name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","dist-tags":{"latest":"5.0.1"},"versions":{"0.1.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"0.1.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha test --reporter spec --bail --async-only"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1","mongodb":"1.3.6"},"devDependencies":{"mocha":"1.9.0","expect.js":"0.2.0"},"_id":"mongodbext@0.1.0","dist":{"shasum":"26f5ff629ef32f3f1c83a6a617d6bdd6164b3823","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-0.1.0.tgz","integrity":"sha512-5xdrRI+9rn4emeAnnVJGZvncbXBO3F2+aum90JDfh2XzPYFYpMeIR5QmhkFQgWSd6EcJyfXKuBn6pzuMkgI5FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCN4IiFkTqEo56mNZL6OnQivlRS8xupxbYYpaGdXlDoFwIhAMQA33mOcadUgkDWuQztkFU3dVn8/r3K2Oav9f9fnB/1"}]},"_npmVersion":"1.1.66","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{}},"0.1.1":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"0.1.1","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha test --reporter spec --bail --async-only"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1","mongodb":"1.3.6"},"devDependencies":{"mocha":"1.9.0","expect.js":"0.2.0"},"_id":"mongodbext@0.1.1","dist":{"shasum":"538917be3f4acdac8760b44bae34bc7ae4142c93","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-0.1.1.tgz","integrity":"sha512-dN4ii34ZMBdOQkpewvwBnW91V8rNWhtntoqqUavmJfoWjDRl/bQVG0tlEUZ547bKd7msusAFh4CM38BJOZHzxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID1vbmLuvMeXDbYTMe8a/IDOj0co9w/XMWW+1TyAg1IBAiAbVvKwawJGDg/fgL9LH+el1Xst03BnQVWPOaUfcCaUig=="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{}},"0.1.3":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"0.1.3","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha test --reporter spec --bail --async-only"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1","mongodb":"1.3.6"},"devDependencies":{"mocha":"1.9.0","expect.js":"0.2.0"},"_id":"mongodbext@0.1.3","dist":{"shasum":"d27c39628bb06d27090b50fe8937ddafb758188f","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-0.1.3.tgz","integrity":"sha512-xZLeAoi73fDwac4ncdCoKRJONSkdT2d/kzDjz/4zltU7p5xLARN65LyxyVESQZ0IX7AJ0Wur7pYsWT8Gwa8FCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8Fskf4B4FlPQfkAg2C0FKfNC9FkuJRrJz/iYzQNCBUAiEA0wQ0aRWc6nX6pJw2kALnsht2NuSZsTT/R/qtHJ50fj0="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{}},"0.1.4":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"0.1.4","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha test --reporter spec --bail --async-only"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1","mongodb":"1.3.6"},"devDependencies":{"mocha":"1.9.0","expect.js":"0.2.0"},"_id":"mongodbext@0.1.4","dist":{"shasum":"c4c00218e3e4b72d5bcdd84c281d812f882334cf","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-0.1.4.tgz","integrity":"sha512-MM5sZiQBsf0eUyCdx9oKxRlbw2OiDDyjq7RauH/NwFHCewl1jRPZloSKlErMx8x2HEMhMaR8vqLMrXOcENbrMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDKRhUPK5nPMSiwRtJcMdXs0gMyZ1JMqpi3bgU+KoCjRAiBVvofNIDJ2J/EMuMOR/8IvVCRG3DBCWoJdS2Ny2Opy+g=="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{}},"0.1.5":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"0.1.5","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha test --reporter spec --bail --async-only"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1","mongodb":"1.3.6"},"devDependencies":{"mocha":"1.9.0","expect.js":"0.2.0"},"bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"_id":"mongodbext@0.1.5","dist":{"shasum":"4b5008eed6b97b9495732600448fa6b5876e4f67","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-0.1.5.tgz","integrity":"sha512-VOEobY6+4T2vPeubqXgMVKMjKkCdbFGJ9GRRXDUIbeSjVGOBAQ2MUXKuoWGqDaCiR8Cl8rQm3TtV4iUAQiAhcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG8Lg07r4ynk2uV3IOpNIB7P1TyGD5S06mrXnKsU0mewIhAPx7ioConM5b5o9DAt4YC0uzsGrexUKSHtESddjLl4Hp"}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{}},"2.0.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"18eef231d401cb32b4f00ea98dc32dea6420365b","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext","_id":"mongodbext@2.0.0","_shasum":"9b1aaa6c40bc67b4fc9612dc0509e7b82701290d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"9b1aaa6c40bc67b4fc9612dc0509e7b82701290d","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.0.tgz","integrity":"sha512-rShhDkTySLG7tJkr39FQ6cT7En/89gp3LC96kRFfnUrWCo8YD4YjJc1uzddouVKonBO7sEReh73ty20V6APGWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXUBccegC+58/uz5rZ7KaIvqUtZEMipW2AD8wlAJfNuQIhALjSEviEb5ID06VccYgKj5t9yHqA4OB3v5q0GF6ckDhH"}]},"directories":{}},"2.0.1":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.1","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"2db08d6028b53ee1cba04274152e1ab7056e57c8","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext","_id":"mongodbext@2.0.1","_shasum":"e3ed3478858c47401b6c7c302de3fa5a30a8c4ab","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"e3ed3478858c47401b6c7c302de3fa5a30a8c4ab","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.1.tgz","integrity":"sha512-laU4xt8gjOQRXEPIlPjq+UHWPuZwMTWMls3eM8Ocy8F0FhC7CD4WbNSPBdgzb0E4rA6zEsvjku+VueRdXaUcUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIFlblSxpbGeI9HqaubK9ilMBHdeq9i6CHLaN4uFyMKAIgKytqqRTgMJOUvcSmDsNTEHXHU90ACzU6ai4wG+Dcnrk="}]},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.1.tgz_1454493685935_0.07617546222172678"},"directories":{}},"2.0.2":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.2","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"1bafd69128363dfc964b9c32593918c762ec1f2e","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext","_id":"mongodbext@2.0.2","_shasum":"9aba9e7dc6a5fbf4a5f955de4f79e82373a69c21","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"9aba9e7dc6a5fbf4a5f955de4f79e82373a69c21","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.2.tgz","integrity":"sha512-oPFcQNXCxH8FF2fu9GTTMx0HCBTdpYFwIHwe+FBpk96PjX9gIqj9oNTXypofbK8e/rBtgYtXueM+bMKwfTv63w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkfMthNSrb4QMcraoDtkdjdYH29W2xxbMCtCgzBn8wCwIhAPG+lWLaJmBWIguggHRgifHhFSn5hpsPQdscz3vzR+9l"}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.2.tgz_1457709264939_0.5218958740588278"},"directories":{}},"2.0.3":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.3","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"6aa20ca17fcdd938c1faa7df1835f2ac700d3691","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.3","_shasum":"5337d01624dc14c296b6649eb8774e7adc61a759","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"5337d01624dc14c296b6649eb8774e7adc61a759","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.3.tgz","integrity":"sha512-pQBMrUx9YA4g3G4rAqQmAxXi+poCqPDXZgOdW1PDK6vd1Y5t6LJdDX2auOh3Cr0p48VAjTQBZKto7BIZeJyUxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTVXibBmXOz+0zOjgoPRj2Ks2nsrb1MS0q3I6/8/zJqAiAFgwFpT76WrI5SVOsMlsSCPJ5Pf2a0nUcWs9V/vZQTUg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.3.tgz_1458129978024_0.6929997543338686"},"directories":{}},"2.0.4":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.4","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive","testTravis":"node scripts/mongodbInit.js && npm run test"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0","mongodb-topology-manager":"1.0.6","mongodb-version-manager":"1.0.4"},"gitHead":"bd566c121fb61d8b290518cccbe1301af10717c9","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext","_id":"mongodbext@2.0.4","_shasum":"e8e5872b1a4ed4f633f4b1892b614fe04751d965","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"e8e5872b1a4ed4f633f4b1892b614fe04751d965","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.4.tgz","integrity":"sha512-RPgIyctfFqbYLTxMd6O2vKYflKm7ewBM5DhRdyOmNl0CNsIxCb6ym1r4EW7M0sJqPpYqnLTa0wESkOCggd4LtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/sW9INcGlLleWJ0NvPd3jo4KXg207d5m1NnExwtayNAiBgWTqrBZpuuXS1vZComHawzVf5pi18nfESbmjLy166Gg=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.4.tgz_1459082391234_0.4210685456637293"},"directories":{}},"2.0.5":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.5","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive","testTravis":"node scripts/mongodbInit.js && npm run test"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0","mongodb-topology-manager":"1.0.6","mongodb-version-manager":"1.0.4"},"gitHead":"354e7bf9e72333538185afcb8695d36288c4f4d1","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.5","_shasum":"710425d5c9e9d36fe880876a8f775f3baf64e7b3","_from":".","_npmVersion":"2.15.3","_nodeVersion":"4.4.2","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"710425d5c9e9d36fe880876a8f775f3baf64e7b3","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.5.tgz","integrity":"sha512-sq5jUMLHlRRLU1yyAm+KMDcT+p5phk6k331PNBJRO8motVJrsaY+47DjiK+24nRRxUx+0MvoiCsN37gyM/9S2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLG4uApTM6xpHfBWZZA1fnuUqPLipbQE2iVHLCUlgLdwIhAORxTWhATFbNG4sbpKDwXZztdchZHoP2pcmpwZe4Kym9"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.5.tgz_1461250299832_0.45877021667547524"},"directories":{}},"2.0.6":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.6","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive","testTravis":"node scripts/mongodbInit.js && npm run test"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0","mongodb-topology-manager":"1.0.6","mongodb-version-manager":"1.0.4"},"gitHead":"449cd2e3a9ed2447481ae1bcc62019b7a0ddd81f","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.6","_shasum":"05331173ac41cf6b1949c501418b988e798eeab8","_from":".","_npmVersion":"2.15.3","_nodeVersion":"4.4.2","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"05331173ac41cf6b1949c501418b988e798eeab8","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.6.tgz","integrity":"sha512-DHrZ2JmRulNBPw+lSOdSHYgDjj+HcbWXeSYug/HuS9jFycMYcyfMF2BeDgVQ41RDKcpmj6lVT8AKo3PTbMkz7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4X24p7qJp8j1/XFqhR/k5KjpAgDXgBSIWP3mcdJEZzwIgRg1oZBnEzJyJ2mP9WUmbLjHtU7yqKjJUQKqaMG5FvAk="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.6.tgz_1461250322860_0.6414858873467892"},"directories":{}},"2.0.7":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.7","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"a19bff150b0bcb90a5adbe274e67bb991de1c06f","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.7","_shasum":"2ce543046e63711e5042686650ae48bb7e3ab95c","_from":".","_npmVersion":"2.15.3","_nodeVersion":"4.4.2","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"2ce543046e63711e5042686650ae48bb7e3ab95c","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.7.tgz","integrity":"sha512-HEQu1ZwHdaZamMA6Tu2sz6yIVVmr+qlm4RKJWwkM2TMxiO8x69g9dsqhL/0Ea/5aTcosZbrUbRLIGblgrFXYYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhF8JMjyMoLjvGk15IXgegL2UUw4c+EaYLJ2QxifAofAiAp2SId1e98sEXLiMEYVxwI433zGRSjCZOQUhjjrSaKag=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.7.tgz_1484146385195_0.1254983025137335"},"directories":{}},"2.0.8":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.8","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"4ceeba3366a117b412f31fe3513a6a8be8f6fca6","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.8","_shasum":"69dcf3756fa32580c70bbe42cc471641a156634b","_from":".","_npmVersion":"2.15.3","_nodeVersion":"4.4.2","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"69dcf3756fa32580c70bbe42cc471641a156634b","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.8.tgz","integrity":"sha512-y/NvSZQQIDBWrVlf1YDOj87ZWy/a/EIsl8FH8rhmnnh9nGElcVN2HqcoI4qyyFi/KUGj6gMXDtybKgg1EoR1BA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIQNAVC+IjqeEVabmucnyz3Q9rn49rrZ5ebLKAwJCBFQIhAKwDAtaZjJg2fqeG0rRa3pDtC0Z6K1tIoIweZY9aJ7uP"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.8.tgz_1484662688631_0.9920143107883632"},"directories":{}},"2.0.9":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.9","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"220e5a7db6e245cb35d5204fa520749d29aed216","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.9","_shasum":"96e1389a252a4a6d3d82ecf51f76f319b67509f3","_from":".","_npmVersion":"2.15.3","_nodeVersion":"4.4.2","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"dist":{"shasum":"96e1389a252a4a6d3d82ecf51f76f319b67509f3","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.9.tgz","integrity":"sha512-bwdMisdtQGo9B6Zr4ZLN1kpxEAPmlSCDEyWaqzfoN2VMsMAbIdWkPKHrprZo5QfMm6HYtA8zsyeVvH7g6uChxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSWFyJKnaCzbMItCb/koEKH2LmIDtctUGG/MhkgXATuQIhANCLVay5sZ1yteJY0MoxjqAAna8OPiIeTcHTd8bsbISK"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.9.tgz_1484739346845_0.8009216501377523"},"directories":{}},"2.0.10":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.10","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"a0a868f41ee43bfa72ec6ff86a5c5b0aa56ddca8","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.10","_shasum":"f61cdd56eb8bafd9e8aa5675f9afeed28dda878a","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"f61cdd56eb8bafd9e8aa5675f9afeed28dda878a","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.10.tgz","integrity":"sha512-BiOQBqxleA6BRvMCcZcFi8kJNdrDbRxkLSSa3MA5wNG6dTOQztgl+VInvwPl7K5rCgPxJUkGhspfC0tQ5dkthw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0X2w6II+hfFVlzgJkd3c8y5xq7g76om9j1CNEAE+KmQIhAP1xb7ddB2Fxh25I9y2YxsfLvipSPdYGL1VNs1NxvnN1"}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.10.tgz_1484894040423_0.1410977402701974"},"directories":{}},"2.0.11":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.11","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"32ec84fc455263558e8bcd9112b134451888eeae","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.11","_shasum":"5beaea915620531ec88ef2b68cea3b795badbab4","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"5beaea915620531ec88ef2b68cea3b795badbab4","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.11.tgz","integrity":"sha512-aHwKbLSzrdl7XwKNiOLa+ldEMLYlWJyJbRL3yB7nLVdshnX97L6MCyqSMc6qJz1RGLDMM397GjsJ2Mi04teDpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqgF557RQNLpWaYBw0dk+looIkyP25YoDgKGxLd3yAKQIgMAj5iJJa9C8MqacnmeLWhIt2SWThmnt/BE4QH4aiJZo="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.11.tgz_1492087709712_0.977106231963262"},"directories":{}},"2.0.12":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.0.12","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/mongodbext","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"2cfe82c045984c43350c99bd790551cf964b2d1b","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.0.12","_shasum":"b9793859b6a43478e677d34111602726dc7398be","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"b9793859b6a43478e677d34111602726dc7398be","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.0.12.tgz","integrity":"sha512-+YEaikGm1A9iQellYyMNZrhObd34nQsT2OdrqCmdTcUaY12VyiJy+Ms/FBhNTmUZHJ04rH524WgCO+OfvNyaZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy8eKVVdG5C4qE9VeHAeE8aFtvmP95w2e1OFK87q4Z3AIgavrTtDUYgGk8fIUuGsXJEOIpD6n1cvBQm+tPwSZJnNY="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mongodbext-2.0.12.tgz_1492534226719_0.9871690799482167"},"directories":{}},"2.1.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.1.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"1da8afb44dbf129c1a442717066791ea6789e5fd","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.1.0","_shasum":"c91ed4b7f3522867f6151211fc6fba0d1c54ce57","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"c91ed4b7f3522867f6151211fc6fba0d1c54ce57","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.1.0.tgz","integrity":"sha512-YYqKZtb5Ok2HuSjxo/+64wxPF5wgfMUXtEBkAGo6OqIe8fQCYm5Dc3uaCOi3BBICLSfIlnjRRDIt8vPDTdTF9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmr8Bm6lvEA8rH6Tx9MPW7pfrSHkEUklsrUFrRuwgG7AIgbGqBd0cbg2Hb3yLjNrqOXZQ5ryzRk5rH3udTwHAuXNg="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mongodbext-2.1.0.tgz_1493391827569_0.7761265053413808"},"directories":{}},"2.1.1":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.1.1","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"d2452f94f2b3135bd8ab883df2f30609843b1246","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.1.1","_shasum":"0a153dc2a58f5bd8c0ffdf08b29a4bd3c8fd4dc1","_from":".","_npmVersion":"2.15.12","_nodeVersion":"4.8.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"0a153dc2a58f5bd8c0ffdf08b29a4bd3c8fd4dc1","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.1.1.tgz","integrity":"sha512-QThqZ2mvc5TIHHmIdPBSHvdLryO03TL+/GZYKupGrQzyrFPWBCrF/WFODMsaz7VAxa/HrZbfqrsuSoI1VVz2jA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBPzt3rnWDSj5Up1dZS+pXc/IWzX5wRbUfH+Lyp6zmvbAiBD2c7o/K5+ovtG27r1bD7uGueSGzDtT1weLDPiOU5K0A=="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext-2.1.1.tgz_1496738229440_0.7580061017069966"},"directories":{}},"2.1.2":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.1.2","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"e4a465e09000328ac2630a6e4b2ee73c3492c4cf","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.1.2","_shasum":"cf5f455a1df30d0ef4d4a644e59c40ee853a61e8","_from":".","_npmVersion":"2.15.12","_nodeVersion":"4.8.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"cf5f455a1df30d0ef4d4a644e59c40ee853a61e8","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.1.2.tgz","integrity":"sha512-nomXKVOKO2yNcwlTIagpjVMBKKzQdg/V335cN4PLsXZ1IsY0acGAzuEynsGmQHGmD+8KjZSl1JbMg6D7CSXejg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXJNcUk2VTePiGRCmlSDgIlXYIwVJqJijTria3RUVs/AiEA4VAPb2HYcaFUkEXy1h1X5+EYq9ezn8gGM4GamegN2C0="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext-2.1.2.tgz_1496740533204_0.5595778932329267"},"directories":{}},"2.1.3":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.1.3","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"0.1.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"mocha":"2.0.1","expect.js":"0.3.1","twostep":"0.4.1","mongodb":">=2.0"},"gitHead":"fbbcaaf3ae46b0d7eab128e53bbae63424596977","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.1.3","_shasum":"79e42e261272c7cf7e92e5b8bf47d7919850aa7c","_from":".","_npmVersion":"2.15.12","_nodeVersion":"4.8.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"79e42e261272c7cf7e92e5b8bf47d7919850aa7c","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.1.3.tgz","integrity":"sha512-IbIoU5rY2aVScujNMO3RntgU65lIrzMbbtHywR3pVyFwy437dQ07pCBRVvr6/rrThz5bXqW9Kui+VEZ39E2vrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaVpgoOq08r1UOgmx+spXtqLlOCZvQdg4elIypdpDg2AiEAw6MMBtmVAGP3ahDUDYJbtBby8LrAPu7S/epvU+E7BRA="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext-2.1.3.tgz_1496742990319_0.6672909990884364"},"directories":{}},"2.2.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.2.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.0"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":">=2.0","twostep":"0.4.2"},"gitHead":"47d0c6d2153ee091a9f495569d9972fe9ef4f3cf","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.2.0","_shasum":"d9004647eeda4c3b175b11e51ad4772c5af4fbf3","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"d9004647eeda4c3b175b11e51ad4772c5af4fbf3","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.2.0.tgz","integrity":"sha512-Pzof4FknYrDyjSY8z3VSJ2smXlHFxGMLXVsOmp/uB02LJzcv5lWbLwWMqllZXzURk3s/IrgtjLKws1JM7tAclw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3G1nB8zo9Knco9N3b8CA5z1Y/Qf+cgoCYWRPjB2NoAwIgBbmqPRIiRVVScbu3uPfBfFBShMt4Ni5EXe7M45d4zxo="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext-2.2.0.tgz_1504163261115_0.7674755791667849"},"directories":{}},"2.2.1":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.2.1","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":">=2.0"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":">=2.0","twostep":"0.4.2"},"gitHead":"934e6c193584ad159882ef98ed7fa9e0059dfbc1","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.2.1","_shasum":"8a703e9e8f345f515097df5c751fba7c9aeff9e5","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"8a703e9e8f345f515097df5c751fba7c9aeff9e5","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.2.1.tgz","integrity":"sha512-hBr//DFeGULXTMIaPuwibnpni7JwvNP6qoKbn3pYxNGGmDJEknBLd2ZGdYajr97hYBDBdn5LoJfVX5KuLcztjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCGRygXao63LQ8ektLvlB7MMNo/ZWGC8Ad28ro3WeI5gIgZbGyWnl7jGdZLbAyu3MY8CBTATsnBOCrsZi3gKh5ZnE="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext-2.2.1.tgz_1517503538945_0.857872927095741"},"directories":{}},"2.2.2":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.2.2","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x","twostep":"0.4.2"},"gitHead":"4f3aa36f28a0d1185a4a3ab38d3fab80a8441a79","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.2.2","_shasum":"40dd00bfa368d1b76025f9837a553f583d695b3f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"40dd00bfa368d1b76025f9837a553f583d695b3f","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.2.2.tgz","integrity":"sha512-wL0z6rZiPGc++5LmuOmljEQ3l6QF253j3oqWKffuPcxtVJminXJmV2PUcZ9pFhBkQq7QWz4zATc5SxWrF2sxOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEwavmoq9oFgXp1Ogo10111lH0xwPaiiysDVY3O6KPT1AiEAyjc5cbb/LmVkqVFSdJN+m43NfmLRinIypMfZkzjcR30="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext-2.2.2.tgz_1517824284488_0.6268235738389194"},"directories":{}},"2.2.3":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.2.3","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x","twostep":"0.4.2"},"gitHead":"d4793acaa1d5ff3e399f28eadd9a0ed02a22fac5","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.2.3","_shasum":"611ccdbea6b562b8db735d7f49fb2375a28b7734","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"611ccdbea6b562b8db735d7f49fb2375a28b7734","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.2.3.tgz","integrity":"sha512-kaOZj3OYIB6AyzjQ9EPwIuvqUlTPB7gvnSriIt/nj2X1sUC/4cUHGJFQStCPABLvTfQDnTUJNQb9LgsPOx7bhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnEqB+eOutZmxyeN48rfkpl/ySYkQClBW9F7K4iv7pngIhAMITUran+oAnzoMdZLCW8fd7m5AuwRsCqIMBYIeNy/tM"}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext-2.2.3.tgz_1517831429829_0.4164334391243756"},"directories":{}},"2.2.4":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.2.4","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"76c1f6acd6b8bddf9a1676bd3de30858203105d2","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.2.4","_shasum":"b71a6ef734517c9265f499536ad2aef46b6ee551","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"shasum":"b71a6ef734517c9265f499536ad2aef46b6ee551","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.2.4.tgz","fileCount":21,"unpackedSize":69316,"integrity":"sha512-sqRTe/ltQVwa8qzAHN2A29iG/xap1rHJiDH1ydVQYWDWPKNpTwR5SxEt2vOL7C/OI+lAaeQHDCRXSqQIFyUG3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIER45ix5yKu5u5McFeL6zTi6zPQuWqoXYXQWURzjMrqYAiEA0PhrZG84NdzwcqIHxNZXoy/f5+UGhjZIjO+qxoixb60="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_2.2.4_1518640081317_0.781053675843357"},"_hasShrinkwrap":false},"2.2.5":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.2.5","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"ebcf8110281f8aacec87d4d09f741287d844ed54","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.2.5","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"integrity":"sha512-AeViXaSCyh6MdKnn2TeSNCvcwG7GmWJZsvJQGbyVeDacTHTFTm5xyAILdAut7nM82hbotTtG1xShyQx/LkT1tA==","shasum":"f2b626fd451a08736e679c2f89882cea19d2eeb0","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.2.5.tgz","fileCount":22,"unpackedSize":80508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4wpSCRA9TVsSAnZWagAAU4AP/06JKrWy5zKB8ie38RP8\n9dBOfr0ZCcIK0GH96fy27mKWZHrbp4dRLJLp38omQGyBisPK7vjjYUVIhuXl\nCMG+5lVi6qIUAypa0bW1JujcO3dTPpaqXkrHeaYZXimJ9JSiPK6AlW7hF0pc\nYitK4ycNFuTBIWyfMp8yL0FvSDSGJjpe863KCAY840PWuB7FK8sl1AICv8JY\n6nERcigSWMe8enR+MCdaiixOWS2/Ie3jUk1tCygcY8R5QBQwFJf0O+VinIRx\nfjo+6EwOmSEcyhRcm5Bnh+lXw4mD3rylzl6ni2CR83WAk9200xD4LwGWO70T\nBpfDolR4S6+oYutPO4dK84cud+l17/N0qogCdYfg2D1YCHryDP6Hr43N+Pvq\nPZe6W9q9Pe2USKA8BjAIFHlXK05KNgZPnrdJdh/YiMGAPpayel2wg6SzI48s\nx6qdsxmS/w5R2wBuMExZK1oWF3bg6/dTQd0qweuPDy8BOvqkdcuVqqPYZe5R\nW9vhwr3MNi/+gtzv03FxYvaj1ocUI2R0SYmKdTbIGNhsEdH7inC5xE5cXz76\nxdmH5LFOWJFXpXJqcqm1dzDRHporl2aPcWunoWpOslUTXowoX/MpMY+QGeJv\nOhHr+56VbPz7D/Sw3TYYIMpblLqgUOjV9wGA1xRD4Jv7dV/XH++a07V2XW8r\nZ2LZ\r\n=N3/B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDg9SdH/xAjm2Ndo/ie9Avaj/YICCIxISfrdPFs36dFGAiBSZzDICj1dWa7R8M8Dz+lfUAqrePewH0hoSHJ9uIBfrA=="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_2.2.5_1591937618034_0.19185947764500888"},"_hasShrinkwrap":false},"3.0.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"3.0.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"d18cc32fa9902509c59102599c8cc5f23d350b4d","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"integrity":"sha512-eYTSNF7KITKoYnfWPBLU315EFBOlKCsBwg/J+vFPe5mFZum1mvDdv8/UL0X/J/9iWuFf1BN2lChZiBl/i4BWrQ==","shasum":"1268b2ef54a3d33a6e01c827eafd0559a939b13f","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-3.0.0.tgz","fileCount":22,"unpackedSize":69853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCB9XCRA9TVsSAnZWagAAGSQP/1ZJGRTZ/UzDPzLDLvYG\niyCx7LZua7+xIrZjE4pd5xOvgCDByeJUq4yfJ4MF5s7NsdU7HD5AkR9wgaPu\naQzmY/3AUstDzso0NtELXxdBcIJsp1RiRZMeLc3mrAXAwyj/Jh8w7+4+GhQg\n0NwwlfSR4+1n/LyTFWkbv0i8ht7XDArXK0Z7LQr8Zg3gLoRbuH0wM5YizmZn\na+tETYJfB7XOrPc/3bVgTRIL9bdHFFkcTyRWq4kHgnTdw2NBHKVKdlB5xRYW\nVjNTO+V0YKWCLeYRJhkC6cqNw/G0N/wHwHXWf7DRJMDB6StMlzEJC2HA1Scs\nCAKq/ynnBkbZBS5CfpYwxn1FNH/iI/xgzYU3KY18s3BOGvAo7DwiF5UXD2Wl\nMugsxKTBYuzEked+4IvQAPULzhOhjr0ICMyQGiAYO0S/+tac2SyiLhnsvEAU\n09/yIV0P2a02IbhnQ1aRi0mVXm8LEFvK9suFQI5D5Q1xldcGpWrGuH128WZn\nllrQZeqHS41am822BzzzhaJ2DYN1R0wMaIYGsNpAxT1m5nAc5Dmu1j7ZktRT\nDgcwXqgRE1yNp8o9dolSu80An0X5V7PIYy7crR9g/eOIlZYujXgKcm5kHU0O\nN+7MvDhmKnsSFfczPJYQpHp7B1X21B+TlHxRj8SsiZ6VYFpz8NPA/FmIa31T\n3UEK\r\n=drn1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9WE7elt6uhl0pJvRpXTvmCivjUXo4H5HUswC4jJ2hqgIgGoDgp6oZPunFlO6FNig6V0t7Kaf7M9E0VhRJN3RRBRQ="}]},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_3.0.0_1594367830560_0.6729555409080945"},"_hasShrinkwrap":false},"3.0.1":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"3.0.1","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"4ef014d33b5bb9612522e05d88cba07fac2cc6b5","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@3.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"integrity":"sha512-7ELH3f9HjczPdfUMVf3yfys+sPwuqBVnExpqu5zOv9Lihk++17tSTthlZOB9gp0WUj5ECPGyW0FY7UgfxpRwew==","shasum":"2cb67f249e59656660c169d6aa3112b7d4f0c6dc","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-3.0.1.tgz","fileCount":22,"unpackedSize":69856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrjrXCRA9TVsSAnZWagAAuSEP/1F+fNKZ0yDv75dqIcdE\nw/EHW5AO35TkGHlIctRqIUnWUchX8SLe8oGOP/oVSGIpehVePUJg5lBc0sLa\nfxlY4Rzx+e/sEhqqfJREfoV3DHSy3kRiZ3y+fLdtzw9tRGcBRgYq9oN8BoU5\n8rOLJ7T1kfp5uNVYTSkusLCpxGkYG9lMau4qolTXSG5FpN7wapX/uBATFW+1\nBxvz5dkEO91/8lb4306S5m+GUvwDdc4Vz/bHl6xgEv0B48ZmFV5w5G4rzf6G\nRiEBjlOvO5y/gAFaeYs60wZMnd9wA9RR9uDeXnDniC62Gx7sD98NWtmr2kwK\n4I2dA11kj+0gC5fgV2JNetcGkugk1C+4MtWZ/pb94uLHHZc/NGY5B9YxzjdS\nVNvnGhWUocsDLmNR0a46WOK7VwDfh2GtCtOYe0+snDKbijYw9sw649Sgok/X\nG+8SjUckaULquolIoF3fwGSMek3jYLnztAXm7j1GNBJCRICY0cVQ1VdpIqrm\nmGcGGVQ4zGcrGAfzUb7l4vSuvx77VS6iMN0BEz9ime35z+nxOKRI2AJGDYZG\nACGeRnS1zvziHcz+OrxVsYO80dlf42P9uXZCRQMV/44lArsftnzB1aMpWZXT\nFVu9EGJrlURWMMeAI1ZUP2TMmR0k+1TKngHQui05y7Wz7NkOXMS44oghstm2\ngPxV\r\n=9SVe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCH2mLwBcR5lrB6rQqk4UAgm8yMDP7gnocv1EpQsdaxeICIQD29+uAYj1lvnfKWJY9A6v6yy1/SpsKuNoWIwBizQju4A=="}]},"directories":{},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_3.0.1_1605253847126_0.6490361366841508"},"_hasShrinkwrap":false},"2.2.6":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"2.2.6","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"7f5b57f468258c383b682f94ce64174c8d24064e","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@2.2.6","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"dist":{"integrity":"sha512-+YmPbZzy0xIZ8w+Tnavgv1XGBwGgVqlaZG5myiCtExrHlLx3quZgWydGNFQg/QhLSi5NEiRI3Pg2iqJPsREvmQ==","shasum":"3e4a835e4efbeb260cab06da7003fccfaf5cc6cf","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-2.2.6.tgz","fileCount":21,"unpackedSize":69368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrkSUCRA9TVsSAnZWagAAOPcP/3nbGwpIwQ4W1J3IXmZA\nViEGiYVpx27/fr6yzFCa+fev1FloS9NafkQ7XYBID2HhBdYYr57QfHStbOd7\nCHUmtxZ14bLWV6V3IryO41d5aI5add5kNU1o7EjJ/0tta41utAr9Y4fCpUPR\nD8obH6eKBhkueB5XarFzvdHwIxqGYZZ/5ZDL4Ott8XB6TbQuJrxR+PnfAcE9\n/BhUqnuNODCY8jfLlzWj55ei0/n450BmY6QayCQJ7Qg1yEvhgaLP5iYSYNdR\nNu4PAPgVsqh/meL6Eax5kKWwieahTQB+yTakKbVcKLx/noLAwsrLdNUXLKer\n9Zc8ZnBS1EMjOABAR8p7mvV9EWcxCSYseMehgRnadelq2g5sZUtSF10XxtB/\nr0JYVFIQjJOaChgRbzP4WwFWoxdd3wBWjE/TvVf1NSA7pLRnYZteEqj/2AcS\n81LaTc4ptuLE2j09R4Hgqldpohgm22LLh3VgcXE3qxOPzicACYsh3G89PxQe\neAoz/gIGH53zn522CQa+UJJoeDWOsJjUNut+POTqz+5ihic9ViV1OYBRzIlq\n5tsDg1AMb8OmsLZmcrDMlZ+wV4WRN1vPXN0MA6766QAR92XZpf3VQuMeyT0j\nbxeyaMma1+7SCyrpghNB9rZMY9Hqw1YKhKIoCpc5QgD8kaF2toi9NYZTcHX2\nORms\r\n=O/ok\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/r5D7aRd/kMe/qZNCGik58DVFCoB+8xWZeCYHF4mg5AiEAwusxHqRC5kxjRLGpdVTPVsUXUyuE9SEJwSr4fEpZvMo="}]},"directories":{},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_2.2.6_1605256339826_0.8017795213572403"},"_hasShrinkwrap":false},"3.1.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"3.1.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"8827bf2a047be83d116ed4ab0e98b6136f907b67","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@3.1.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pSw2WVeuv6za4d8HQBGuvb4sGF6nfqri2YZS2vAoxJLSFrUQBMUUbn7KXknhDh8YDmKlSSP6rj2xzBDSlFSd/A==","shasum":"b16399e13e0394e062e2a7cf42448b8fe8a4891c","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-3.1.0.tgz","fileCount":22,"unpackedSize":69978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQe8HCRA9TVsSAnZWagAA7DkP/jUjE/ulINDRFc0g9jKz\nPVAuwv7f13Q8LkIrJtDMm8VqEyMUEHE2RCCOM5HDEWDZ9hHBRvmLAbtxFBk4\n8pfGIKjPF0BGEjN8+TD68wFEtI7YdirrEXiMMRzutMrwGPD8ZltXSz4w05zW\nX9cHF8TJo75FR7sr62dAr4RLIMbgAotFCNOHOzsEd1T/upwxlB9JD4u1pY0e\nbNGxM1p4opJ6SZnqtJJbkM/UmQ2/GNIaj26gteyy5QpVvyzf+fTjdkSINp/e\nSx3BK59Heq1rrFmTmysi/RpisrsFUdYG28hIa/FqBP/mNkig46XV7Tw2n8r4\nQPFZnC0MI1hJf5xofsjoNETnoQ7MDgFW4me8A4n/cjwrAvyKOe7lGP+2TuYI\ni3y//tgBEAnyerUoKafowDLFcooaaz+7npkOijicr2TqTVn69qfl+32XjPF0\nIP8oV86HigM/Dhg9p4aKcJqMArT7wTIyPzR9DZ37sD6Cn7bvqIOCnw/Atwv6\niT6W4cFw3fE6nyu5E7RxVSG5ROvQcPS6wwT6HbMADafPzBmA3Alpl0jxPbVY\nO6yi2VegI5bJDutD0Y+oqf5rR8MPeiQG0JudjUHVkxpNZ4fjl94yGhn3odYq\n8KN/0mm8tRNs0N2PHQDH8myXAb2ia3eNoISy+fK6UytigvcxPoFRAqGMlvEO\nCSAv\r\n=b9vL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4V0dg8Oq8KKRDloIFmFMWR2O+rMX7xPNz2+4m1X2DvwIhALdaDrZnNmLCxQUHjgeIGLZFQlkmosUIvigkVoa2OpIC"}]},"_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"directories":{},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_3.1.0_1614933766591_0.8163936010005628"},"_hasShrinkwrap":false},"3.2.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"3.2.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"8c32205464c124510ad12a6611bedf98987febb7","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@3.2.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-8NRLQXPgVB9TRClIqSOrPfoat2cvSmfD7RVkPWRikixzjIVlluRLZINJgzWg19Tfx1H30/eofXmNzYR6rfz5BA==","shasum":"10904372a60a02008e809f12628ed068ce90552a","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-3.2.0.tgz","fileCount":23,"unpackedSize":72358,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWGfaCRA9TVsSAnZWagAAwhYP/2AtivdXNrWz79F6Z9cf\nsqwtyAgaEsGruGWjWB0Y3IPPiTUvfFcLZg2M/YRRTDpZAxvNbF7xLuq1BsTI\nv2gexAjlvuj579Kio1Pa6HMdpm+17J525H1/iqlUSU7Dvbl6j5ivbBl2/MK4\nUI/Xc+UMmlHzz77Cm7IrPLb9Kznl471hKmRhyY5Z7zEqFNaq9CEizC0E3LIr\nQs+YK9TJoUTBVnmqYYzS9cy40pQnWkHgJnesERN53QxKxnEuuD8nmkHPZ1p5\nDbkFljgfjrb7R9NVIdBnhYDvlAtr9qkneP7BeVgNZLZNzpT0FVBJxLeoefIX\nyaMr1kjs8VPbedjYCzZo/nRRW16+J6NbxBWiXhktocwbTq2s9P/cmt9WJHz7\nBR5/6Pq4+d51XU2LDjpSoObTLcOcoh4tygL+WLM/ae4Gdr60oAMixuNC/Ata\nkXXC8btzsFScKtgpsV5OyHblktqQT7am5ezLLrFMF73uqZyc/Lqyln5fDWEq\n3kbS9HmUsRpWYi42p7dabnolnnveKyQMUx3gBvQNu/95FrZSrYdn6UDL1Uv3\nRvTM1F5atRJ5cexfYaZRI2zgXc9zwYjFaTsuXdl4FNzHdAQjd7o8EyPsdD0c\n1sKazLrIJu2Ct/brOE4Y3g6o5NXypprZ5lGXr7kJxynF0h2FI2BKQDsXsE9B\noS0M\r\n=qLd7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzoDh3PHytHDLZPygtVy2eSKH2yf6ZqxZqsFVJC/2a0AiEAtwNc78yiZYY+J2I7wSaaXVqGPSzSh9vRO7o3T0bAU2M="}]},"_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"directories":{},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_3.2.0_1616406490338_0.7974932272510766"},"_hasShrinkwrap":false},"4.0.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"4.0.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"748f7118dc7502dafbb7acb118291bf7e0ee1822","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@4.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-2ko7arInnjEd8MaDuTg0Ko4FnYvOHfh59Aomnglg9CAlZzE0LUNfUNaF2Si0OUyTRcO6npbISBDaxpgn5RqgDg==","shasum":"b308ec457c0a84f321bfc72b2f879905bbb20244","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-4.0.0.tgz","fileCount":23,"unpackedSize":73072,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguJbACRA9TVsSAnZWagAAHkkP/RcMXBM91gEH7j1fwOZb\niZUzjxee/ZbNCttMsgMsOVLZEtS867Pk89xzGZon9tKL0PVUkRMlq3OWa5zS\noR6XFaqpd/SGmMBBUR07lswEnxlTgvKIeWYfJaMk7LntJwgapqphaOccXH8O\n3eg9AFkfWrIBtSRuphejfRvLaenkn1AuC/sgipZzDDRQcYP9fzFi1obdMj5R\nfKGe6Ty+AFBVBHtfjW2gGcsTh3JHvYDvYHHT3VfPjp/elkdAmXaWNGIjtg+d\nB+Iwoyi59B7oIIx38L2Hnb1ymcKvqJh+pGjobnoUs64Pa9zVWAIQJnJlspnl\nd5PKtdAURBgLdAEStC2aV6IO9m4697L2BlCiMppwfCmV0YlF5M1K/aSlYgdk\nW6+Niu+ePiYIpNX1tj1qNqtKcuhRMaWqTVKoBbf1sL4XqLvIei09XCQdeZd7\nzfJ0+mwPlWfKCxrSWTNG7T8zzXXjS4j9t6Y013S6o3s/Ih5FZyNUlvmKmOeC\nsHLu1Ow6MozPcFKiWHM28ep59dM29z68V7XW68dQZm76TCVN5EDqMQQ+zeby\npGJep5EptOcEvd2scRt8/bca38TWU36AUpSB3+uU37JHvk7e8KK8fP/xyXpW\nUL/HORb+FD024aDDulfa6SyVTz0OCUoBBJVu5mVATEMwzEWn56w3o9q45J+V\ndUPU\r\n=gH8c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEx3eksUcQjax/dNeE8aZMNjwm+RZmk1dory72+sctltAiEAg3oFXJz6ozqGWn2BiJhLaFs4CSAxMG+7Inwxj+UJYds="}]},"_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"directories":{},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_4.0.0_1622709952246_0.43648512965060715"},"_hasShrinkwrap":false},"5.0.0":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"5.0.0","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"35b8f17274a5eaa6a462c054f426b21cc2c29c3a","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@5.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-phEHl1LSJi9RFMsmFOZlAmslHPASPl8cRASwTxuUmEyzgMQzk4zPC8yFTeRZcLv0Rk2SyqEmPEDQF0db53OKHg==","shasum":"efe7738ad654f998dfc8adff6de80ad962a15dbb","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-5.0.0.tgz","fileCount":23,"unpackedSize":73065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgudwACRA9TVsSAnZWagAALbYP/iybaLMvKkVMe3Eu11Ve\nVLs04+i/OKpJpH4dXCZtxqMq3HGsHPo9XhJ1Up/0M4zCix4qG2PPlz7uEllC\nCOT6qE5ak91hVlZn7z0P28q/HuB+GX/o1CIBz6fEFFwh5avrY9iz9XfxTxN3\nvZKlY7vIl5cECzahCzMpXvau9BxfdYjdfl6FQ18SDvBXiPe/QqPCLXfTHuo/\nFPX6GaFKBCLprUQ6l60wNqwYgUBp3pJ16G3xp1ydHJy811ECZUKNrIPw5NPl\n9WaZ17Iy9ZTZ3BBW0ArxMwBatPVmDT5zQ3xWERDqoEoP3vKKahFrtz2kGdxp\nwoRYjV1wIXliFQYypX+I8K1SvbAzjYweJ2+hg1K2mmf6RiE8egmsa6EEycW5\nA1W5iVbvhXXZjwK/TjIGOmKEwqc1vHVzL86sYAz5SAaI61vn+m4o8VWGnB5M\nqJXv1NjT87EX1StMXep92Z36+M2oj2F+ou06CmOXiWVt7c/J7HfJuwN6g13a\nI+r2CC2EUICskKsNeSf4/eCFkAWipnN0//kli47HZr5Hn/oiU0xGeGEm9hDU\n9WV57mxO32vWbDqquWoiK9JBH93hpeT6pxa2Rn8RRfYH1fhcVFjsDmbJb3wb\nBPpdhKjf0rNWKUKUE9BRvnLTMHQQyi10d4w9UcH4fvBk3Atcs63WG9/aAMzA\nN1sa\r\n=f/nJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVTLIiGx6v2L0WpcAIP7LYy2wE10LRJidBAYj0CcMM5wIgFKgvZL5m2UVr8XdjaSIJoDA89IhUsDheXsBLLxHyQEw="}]},"_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"directories":{},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_5.0.0_1622793215899_0.7885863552419459"},"_hasShrinkwrap":false},"5.0.1":{"name":"mongodbext","description":"Extension for node-mongodb-native that allows to add hooks on write operations, such as create, update, remove","version":"5.0.1","repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"scripts":{"lint":"jshint ./","test":"mocha --reporter spec --bail --timeout 10000 --recursive"},"main":"./lib/index","dependencies":{"is-plain-object":"2.0.3","mhook":"1.0.1"},"peerDependencies":{"mongodb":"2.x.x || 3.x.x"},"devDependencies":{"expect.js":"0.3.1","jshint":"2.4.4","mocha":"3.5.0","mongodb":"2.x.x || 3.x.x","twostep":"0.4.2"},"gitHead":"13f61dbf3b2d0a704cbbbd53435b0b7b8623da3b","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme","_id":"mongodbext@5.0.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-MitscLjrjylLTM1yIGoDnlIZnsvF6q3YFMvA5Kk2VFBBmU3IA7uRprLeqXCF5chhziZBcEDUpcIUEvEi3hFYpQ==","shasum":"11119787f71a31e0f8e7395c27d14d2548e106ec","tarball":"https://registry.npmjs.org/mongodbext/-/mongodbext-5.0.1.tgz","fileCount":23,"unpackedSize":74245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9RqJCRA9TVsSAnZWagAAaocP/R0yUM2TGNC6woGg67tq\ntgBod5XwPQkdm6iOhdUAFUaZXfGCRkPWx3hgEWtpm1N73inKNh1itcTB/yUP\nKwUIP2dcsfMHi6A4bBZyzZFxAV3PxF6HpAmcsL8/Y6myi+S2L8ho8LLqnVLh\nzQIHQ8zypHg2ChnUg658eAzSfTYWBFBRBxXX3G6dXSz/VH5+SpG/kg6mGW/2\nUCIAQPp6OpOu7a4dM4nGQMX8MQcWqI1zIHLnsKn4QQu3FDDAwwpHu7tuuFPe\nAMshtarGuPrQIK+XxyiKkiwRJzYkN29CaOhnUjmXv8FUOF5RH9ktopPvI1AK\nsi2mrXGOrMxqvVIxA1+oJfv4RRC3smNM+j3HasX4Ay1Fqzl/e5hbifHK1954\nATGDeYf0hMmnZH5JdRiWPS6FG0gdIH6DwQ5uyPOENBysuFnyqlVyujICLCxz\nDVwOhugClV9yQnzeKDAel57Wk7dnEHt/KzM6OSWtA2svXITAbItwj/RErDh3\ntdG8+CtNtif2PZZnb2lSDEjfvUajMwqbvoMnOaZKSnHdnkwrmVweJVw8hU0+\n9sAXxC7xlSMAdLBISSXLyTnKCjiQGAhp4t2lOnigQ0yBMBDWpep9M1NlHyQ6\nu104ySbmUG7JpYNSmRCXlPg3MFxXkCfnxwfQoZyJaO74h5qWvwOz3k9ZQDTf\nY3Ye\r\n=Bgmf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAXj+Z34ft6ryhOp0TlinRPSYHowlynNz40sGZ1Sty6cAiAN08MPiqcLUpDR9QPextnli/jBd9b2uAJWbCIvWOt1gQ=="}]},"_npmUser":{"name":"2do2go","email":"dev.2do2go@gmail.com"},"directories":{},"maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodbext_5.0.1_1626675849020_0.6450080184829861"},"_hasShrinkwrap":false}},"readme":"# mongodbext\n\n[![Build Status](https://travis-ci.org/2do2go/mongodbext.svg?branch=master)](https://travis-ci.org/2do2go/mongodbext)\n\nThis is extension for [node-mongodb-native](https://github.com/mongodb/node-mongodb-native)\nthat imports patched collection object and allows to add hooks on write\noperations, such as insert, update and delete. It also adds some options to this\noperations, that allows to modify operation's result.\n\n**Important** since version 3.0.0 mongodb drivers of versions 2.x.x are no longer supported.\n\n## Installation\n\n```\nnpm install mongodbext\n```\n\n## Usage\n\n#### new Collection(db, collectionName, options)\n\nCreates new instance of collection\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **db**, object. Database instance\n\n* **collectionName**, string. Name of collection.\n\n* **options**, object, null. Optional settings.\n\n\t* **changeDataMethods**, Array<string>, null. Set supported data changing methods. If not set all methods are supported.\n\t* **customCountImplementation**, boolean, null. Starting from 4.0 MongoDB deprecates `count` method in favor of `countDocuments` and `estimatedDocumentCount`. Setting `customCountImplementation` to `true` allows you to use under the hood of `count` either `countDocuments` if query predicate exists or `estimatedDocumentCount` if no query predicate provided.\n\n###### Returns:\n\nInstance of collection\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'constructorExample');\n\n\tcollection.insertOne({a: 1}, function(err) {\n\t\texpect(err).not.ok();\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'constructorExample', {\n\t\tchangeDataMethods: ['insertMany']\n\t});\n\n\tcollection.insertOne({a: 1}, function(err) {\n\t\texpect(err).ok();\n\t\texpect(err.name).equal('MongoError');\n\t\texpect(err.message).equal('Method \"insertOne\" for collection \"test\" is not supported');\n\t});\n});\n```\n\n### Collection methods\n\nMethods marked as deprecated are not present in documentation.\n\n* [aggregate(pipeline, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#aggregate)\n* [bulkWrite(operations, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#bulkWrite)\n* [count(query, options, callback)](#count)\n* [countDocuments(query, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#countDocuments)\n* [createIndex(fieldOrSpec, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#createIndex)\n* [createIndexes(indexSpecs, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#createIndexes)\n* [deleteMany(filter, options, callback)](#deletemany)\n* [deleteOne(filter, options, callback)](#deleteone)\n* [distinct(key, query, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#distinct)\n* [drop(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#drop)\n* [dropIndex(indexName, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#dropIndex)\n* [dropIndexes(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#dropIndexes)\n* [estimatedDocumentCount(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#estimatedDocumentCount)\n* [find(query, projection)](#find)\n* [findOne(query, projection, callback)](#findone)\n* [findOneAndDelete(filter, options, callback)](#findoneanddelete)\n* [findOneAndReplace(filter, replacement, options, callback)](#findoneandreplace)\n* [findOneAndUpdate(filter, update, options, callback)](#findoneandupdate)\n* [findOneAndUpsert(filter, update, options, callback)](#findoneandupsert)\n* [indexes(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#indexes)\n* [indexExists(indexes, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#indexExists)\n* [indexInformation(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#indexInformation)\n* [initializeOrderedBulkOp(options)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#initializeOrderedBulkOp)\n* [initializeUnorderedBulkOp(options)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#initializeUnorderedBulkOp)\n* [insertMany(docs, options, callback)](#insertmany)\n* [insertOne(doc, options, callback)](#insertone)\n* [isCapped(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#isCapped)\n* [listIndexes(options)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#listIndexes)\n* [mapReduce(map, reduce, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#mapReduce)\n* [options(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#options)\n* [parallelCollectionScan(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#parallelCollectionScan)\n* [rename(newName, options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#rename)\n* [replaceOne(filter, doc, options, callback)](#replaceone)\n* [stats(options, callback)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#stats)\n* [updateMany(filter, update, options, callback)](#updatemany)\n* [updateOne(filter, update, options, callback)](#updateone)\n* [watch(pipeline, options)](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#watch)\n\n#### <a name=\"deletemany\"></a>deleteMany(filter, options, callback)\n\nDelete multiple documents on MongoDB\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. The Filter used to select the documents to remove\n\n* **options**, object, null. Optional settings.\n\n\t* **w**, number or string, null. The write concern.\n\n\t* **wtimeout**, number, null. The write concern timeout.\n\n\t* **j**, boolean, false. Specify a journal write concern.\n\n\t* **returnResultOnly**, boolean, true. Specifying result returning in callback.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\n\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'deleteManyExample');\n\n\tcollection.insertMany([{\n\t\ta: 1\n\t}, {\n\t\ta: 2\n\t}], function(err, insertResult) {\n\t\tcollection.deleteMany({}, function(err, deleteManyResult) {\n\t\t\texpect(deleteManyResult).only.keys('deletedCount');\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'deleteManyExample');\n\n\tcollection.insertMany([{\n\t\ta: 1\n\t}, {\n\t\ta: 2\n\t}], function(err, insertResult) {\n\t\tcollection.deleteMany({}, {\n\t\t\treturnDocsOnly: false\n\t\t}, function(err, deleteManyResult) {\n\t\t\texpect(deleteManyResult).only.keys(\n\t\t\t\t'connection', 'result', 'deletedCount'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"deleteone\"></a>deleteOne(filter, options, callback)\n\nDelete a document on MongoDB\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. The Filter used to select the documents to remove\n\n* **options**, object, null. Optional settings.\n\n\t* **w**, number or string, null. The write concern.\n\n\t* **wtimeout**, number, null. The write concern timeout.\n\n\t* **j**, boolean, false. Specify a journal write concern.\n\n\t* **bypassDocumentValidation**, boolean, false. Allow driver to bypass schema validation in MongoDB 3.2 or higher.\n\n\t* **returnResultOnly**, boolean, true. Specifying result returning in callback.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\n\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'deleteOneExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.deleteOne({}, function(err, deleteOneResult) {\n\t\t\texpect(deleteOneResult).only.keys('deletedCount');\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'deleteOneExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.deleteOne({}, {\n\t\t\treturnDocsOnly: false\n\t\t}, function(err, deleteOneResult) {\n\t\t\texpect(deleteOneResult).only.keys(\n\t\t\t\t'connection', 'result', 'deletedCount'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"find\"></a>find(query, projection)\n\nCreates a cursor for a query that can be used to iterate over results from MongoDB\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. The Cursor query object.\n\n* **projection**, object, null. The field projection object.\n\n###### Returns:\n\n[Cursor](https://mongodb.github.io/node-mongodb-native/3.6/api/Cursor.html)\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findExample');\n\n\tcollection.insertMany([{\n\t\ta: 1\n\t}, {\n\t\ta: 2\n\t}], function(err, insertResult) {\n\t\tcollection.find({}, {\n\t\t\t_id: 0\n\t\t}).toArray(function(err, findResult) {\n\t\t\tfindResult.forEach(function(obj) {\n\t\t\t\texpect(obj).not.key('_id');\n\t\t\t});\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"findone\"></a>findOne(query, projection, callback)\n\nFetches the first document that matches the query\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. Query for find Operation.\n\n* **projection**, object, null. The field projection object.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOne({}, {\n\t\t\t_id: 0\n\t\t}, function(err, findOneResult) {\n\t\t\texpect(findOneResult).eql({a: 1});\n\t\t});\n\t});\n});\n```\n\n\n#### <a name=\"findoneanddelete\"></a>findOneAndDelete(filter, options, callback)\n\nFind a document and delete it in one atomic operation, requires a write lock for the duration of the operation.\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. Document selection filter.\n\n* **options**, object, null. Optional settings.\n\n\t* **projection**, object, null. Limits the fields to return for all matching documents.\n\n\t* **sort**, object, null. Determines which document the operation modifies if the query selects multiple documents.\n\n\t* **maxTimeMS**, number, null. The maximum amount of time to allow the query to run.\n\n\t* **returnDocsOnly**, boolean, true. When true returns only result document.\n\n* **callback**, function. The collection result callback.\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndDeleteExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndDelete({\n\t\t\t_id: insertResult._id\n\t\t}, function(err, deleteResult) {\n\t\t\texpect(deleteResult).eql(insertResult);\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndDeleteExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndDelete({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\treturnDocsOnly: false\n\t\t}, function(err, deleteResult) {\n\t\t\texpect(deleteResult).keys(\n\t\t\t\t'value', 'ok', 'lastErrorObject'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"findoneandreplace\"></a>findOneAndReplace(filter, replacement, options, callback)\n\nFind a document and replace it in one atomic operation, requires a write lock for the duration of the operation.\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. Document selection filter.\n\n* **replacement**, object. Document replacing the matching document.\n\n* **options**, object, null. Optional settings.\n\n\t* **projection**, object, null. Limits the fields to return for all matching documents.\n\n\t* **sort**, object, null. Determines which document the operation modifies if the query selects multiple documents.\n\n\t* **maxTimeMS**, number, null. The maximum amount of time to allow the query to run.\n\n\t* **returnOriginal**, boolean, true. When false, returns the updated document rather than the original.\n\n\t* **returnDocsOnly**, boolean, true. When true returns only result document.\n\n* **callback**, function. The collection result callback.\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndReplaceExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndReplace({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\ta: 2\n\t\t}, function(err, replaceResult) {\n\t\t\texpect(replaceResult).eql(insertResult);\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndReplaceExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndReplace({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\ta: 2\n\t\t}, {\n\t\t\treturnDocsOnly: false\n\t\t}, function(err, replaceResult) {\n\t\t\texpect(replaceResult).keys(\n\t\t\t\t'value', 'ok', 'lastErrorObject'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"findoneandupdate\"></a>findOneAndUpdate(filter, update, options, callback)\n\nFind a document and update it in one atomic operation, requires a write lock for the duration of the operation.\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. Document selection filter.\n\n* **update**, object. Update operations to be performed on the document\n\n* **options**, object, null. Optional settings.\n\n\t* **projection**, object, null. Limits the fields to return for all matching documents.\n\n\t* **sort**, object, null. Determines which document the operation modifies if the query selects multiple documents.\n\n\t* **maxTimeMS**, number, null. The maximum amount of time to allow the query to run.\n\n\t* **returnOriginal**, boolean, true. When false, returns the updated document rather than the original.\n\n\t* **returnDocsOnly**, boolean, true. When true returns only result document.\n\n* **callback**, function. The collection result callback\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndUpdateExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndUpdate({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\t$inc: {a: 1}\n\t\t}, function(err, updateResult) {\n\t\t\texpect(updateResult).eql(insertResult);\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndUpdateExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndUpdate({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\t$inc: {a: 1}\n\t\t}, {\n\t\t\treturnDocsOnly: false\n\t\t}, function(err, updateResult) {\n\t\t\texpect(updateResult).keys(\n\t\t\t\t'value', 'ok', 'lastErrorObject'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"findoneandupsert\"></a>findOneAndUpsert(filter, update, options, callback)\n\nUpsert a single document on MongoDB.\n\n**⚠️ Important**. Uses [`findOneAnReplace`](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#findOneAndReplace) and [`findOneAndUpdate`](https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#findOneAndUpdate) with `upsert` option under the hood.\n`findOneAndReplace` will be used, if update parameter do not contain any [update operators](https://docs.mongodb.com/v3.6/reference/operator/update/) (basically, fields begins with `$`). It can lead to slightly inconsistent behavior, depending on input data. (see [db.collection.findOneAndReplace-upsert](https://docs.mongodb.com/v3.6/reference/method/db.collection.findOneAndReplace/#findoneandreplace-upsert) and [db.collection.update upsert behavior](https://docs.mongodb.com/v3.6/reference/method/db.collection.update/#upsert-behavior) to clarify behavior difference). Because of realization it's **strongly not recommended** using this method on collection with `sequenceId` and `updateDate` plugins.\n\n###### Parameters:\n\n* **filter**, object. The Filter used to select the document to upsert\n\n* **update**, object. The update operations or replacement document to be applied to the document\n\n* **options**, object, null. Optional settings.\n\n\t* **projection**, object, null. Limits the fields to return for all matching documents.\n\n\t* **sort**, object, null. Determines which document the operation modifies if the query selects multiple documents.\n\n\t* **maxTimeMS**, number, null. The maximum amount of time to allow the query to run.\n\n\t* **returnOriginal**, boolean, true. When false, returns the updated document rather than the original.\n\n\t* **returnDocsOnly**, boolean, true. When true returns only result document.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndUpsertExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndUpsert({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\t$inc: {a: 1}\n\t\t}, function(err, upsertResult) {\n\t\t\texpect(upsertResult).eql(insertResult);\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'findOneAndUpsertExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.findOneAndUpsert({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\t$inc: {a: 1}\n\t\t}, {\n\t\t\treturnDocsOnly: false\n\t\t}, function(err, upsertResult) {\n\t\t\texpect(upsertResult).keys(\n\t\t\t\t'value', 'ok', 'lastErrorObject'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"insertmany\"></a>insertMany(docs, options, callback)\n\nInserts an array of documents into MongoDB. If documents passed in do not contain the _id field, one will be added to each of the documents missing it by the driver, mutating the document.\nThis behavior can be overridden by setting the forceServerObjectId flag.\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **docs**, Array<object>. Documents to insert.\n\n* **options**, object, null. Optional settings.\n\n\t* **w**, number | string, null. The write concern.\n\n\t* **wtimeout**, number, null. The write concern timeout.\n\n\t* **j**, boolean, false. Specify a journal write concern.\n\n\t* **serializeFunctions**, boolean, false. Serialize functions on any object.\n\n\t* **forceServerObjectId**, boolean, false. Force server to assign _id values instead of driver.\n\n\t* **returnDocsOnly**, boolean, true. When true returns only result documents.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'insertManyExample');\n\n\tvar documents = [{_id: 1, a: 1}, {_id: 2, a: 2}];\n\tcollection.insertMany(documents, function(err, insertResult) {\n\t\texpect(insertResult).eql(documents);\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'insertManyExample');\n\n\tvar documents = [{_id: 1, a: 1}, {_id: 2, a: 2}];\n\tcollection.insertMany(documents, {\n\t\treturnDocsOnly: false\n\t}, function(err, insertResult) {\n\t\texpect(insertResult).keys(\n\t\t\t'result', 'ops', 'insertedCount', 'insertedIds'\n\t\t);\n\t\texpect(insertResult.ops).eql(documents);\n\t});\n});\n```\n\n#### <a name=\"insertone\"></a>insertOne(doc, options, callback)\n\nInserts a single document into MongoDB. If documents passed in do not contain the _id field, one will be added to each of the documents missing it by the driver, mutating the document.\nThis behavior can be overridden by setting the forceServerObjectId flag.\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **doc**, object. Document to insert.\n\n* **options**, object, null. Optional settings.\n\n\t* **w**, number | string, null. The write concern.\n\n\t* **wtimeout**, number, null. The write concern timeout.\n\n\t* **j**, boolean, false. Specify a journal write concern.\n\n\t* **serializeFunctions**, boolean, false. Serialize functions on any object.\n\n\t* **forceServerObjectId**, boolean, false. Force server to assign _id values instead of driver.\n\n\t* **bypassDocumentValidation**, boolean, false. Allow driver to bypass schema validation in MongoDB 3.2 or higher.\n\n\t* **returnDocsOnly**, boolean, true. When true returns only result document.\n\n* **callback**, function. The command result callback.\n\n###### Returns:\n\nPromise if no callback passed.\n\n###### Examples\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'insertOneExample');\n\n\tvar document = {_id: 1, a: 1};\n\tcollection.insertOne(document, function(err, insertResult) {\n\t\texpect(insertResult).eql(document);\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'insertOneExample');\n\n\tvar documents = {_id: 1, a: 1};\n\tcollection.insertOne(documents, {\n\t\treturnDocsOnly: false\n\t}, function(err, insertResult) {\n\t\texpect(insertResult).keys(\n\t\t\t'result', 'ops', 'insertedCount', 'insertedId', 'connection'\n\t\t);\n\t\texpect(insertResult.ops).eql([document]);\n\t});\n});\n```\n\n#### <a name=\"replaceone\"></a>replaceOne(filter, doc, options, callback)\n\nReplace a document on MongoDB\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. The Filter used to select the document to update\n\n* **doc**, object. The Document that replaces the matching document\n\n* **options**, object, null. Optional settings.\n\n\t* **w**, number | string, null. The write concern.\n\n\t* **wtimeout**, number, null. The write concern timeout.\n\n\t* **j**, boolean, false. Specify a journal write concern.\n\n\t* **bypassDocumentValidation**, boolean, false. Allow driver to bypass schema validation in MongoDB 3.2 or higher.\n\n\t* **returnResultOnly**, boolean, true. Specifying result returning in callback.\n\n* **callback**, function. The command result callback.\n\n###### Returns:\n\nPromise if no callback passed.\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'replaceOneExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.replaceOne({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\ta: 2\n\t\t}, function(err, replaceResult) {\n\t\t\texpect(replaceResult).keys(\n\t\t\t\t'matchedCount', 'modifiedCount', 'upsertedId'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'replaceOneExample');\n\n\tcollection.insertOne({\n\t\ta: 1\n\t}, function(err, insertResult) {\n\t\tcollection.replaceOne({\n\t\t\t_id: insertResult._id\n\t\t}, {\n\t\t\ta: 2\n\t\t}, {\n\t\t\treturnDocsOnly: false\n\t\t}, function(err, replaceResult) {\n\t\t\texpect(replaceResult).keys(\n\t\t\t\t'result', 'connection', 'matchedCount', 'modifiedCount',\n\t\t\t\t'upsertedId', 'upsertedCount', 'ops'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"updatemany\"></a>updateMany(filter, update, options, callback)\n\nUpdate multiple documents on MongoDB\n\n###### Parameters:\n\nAll parameters described as name, type, default value.\n\n* **filter**, object. The Filter used to select the document to update\n\n* **update**, object. The update operations to be applied to the document\n\n* **options**, object, null. Optional settings.\n\n\t* **w**, number | string, null. The write concern.\n\n\t* **wtimeout**, number, null. The write concern timeout.\n\n\t* **j**, boolean, false. Specify a journal write concern.\n\n\t* **returnResultOnly**, boolean, true. Specifying result returning in callback.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed.\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'updateManyExample');\n\n\tvar documents = [{_id: 1, a: 1}, {_id: 2, a: 1}];\n\tcollection.insertMany(documents, function(err, insertResult) {\n\t\tcollection.updateMany({\n\t\t\ta: 1\n\t\t}, {\n\t\t\ta: {$inc: 1}\n\t\t}, function(err, updateResult) {\n\t\t\texpect(updateResult).keys(\n\t\t\t\t'matchedCount', 'modifiedCount', 'upsertedId'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'updateManyExample');\n\n\tvar documents = [{_id: 1, a: 1}, {_id: 2, a: 1}];\n\tcollection.insertMany(documents, function(err, insertResult) {\n\t\tcollection.updateMany({\n\t\t\ta: 1\n\t\t}, {\n\t\t\ta: {$inc: 1}\n\t\t}, {\n\t\t\treturnResultOnly: false\n\t\t}, function(err, updateResult) {\n\t\t\texpect(updateResult).keys(\n\t\t\t\t'connection', 'result', 'matchedCount', 'modifiedCount',\n\t\t\t\t'upsertedId', 'upsertedCount'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"updateone\"></a>updateOne(filter, update, options, callback)\n\nUpdate a single document on MongoDB\n\n###### Parameters:\n\n* **filter**, object. The Filter used to select the document to update\n\n* **update**, object. The update operations to be applied to the document\n\n* **options**, object, null. Optional settings.\n\n\t* **w**, number | string, null. The write concern.\n\n\t* **wtimeout**, number, null, The write concern timeout.\n\n\t* **j**, boolean, false. Specify a journal write concern.\n\n\t* **bypassDocumentValidation**, boolean, false. Allow driver to bypass schema validation in MongoDB 3.2 or higher.\n\n\t* **returnResultOnly**, boolean, true. Specifying result returning in callback.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed.\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'updateOneExample');\n\n\tvar document = {_id: 1, a: 1};\n\tcollection.insertOne(document, function(err, insertResult) {\n\t\tcollection.updateOne({\n\t\t\ta: 1\n\t\t}, {\n\t\t\ta: {$inc: 1}\n\t\t}, function(err, updateResult) {\n\t\t\texpect(updateResult).keys(\n\t\t\t\t'matchedCount', 'modifiedCount', 'upsertedId'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection,\n\texpect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'updateOneExample');\n\n\tvar document = {_id: 1, a: 1};\n\tcollection.insertOne(document, function(err, insertResult) {\n\t\tcollection.updateOne({\n\t\t\ta: 1\n\t\t}, {\n\t\t\ta: {$inc: 1}\n\t\t}, {\n\t\t\treturnResultOnly: false\n\t\t}, function(err, updateResult) {\n\t\t\texpect(updateResult).keys(\n\t\t\t\t'connection', 'result', 'matchedCount', 'modifiedCount',\n\t\t\t\t'upsertedId', 'upsertedCount'\n\t\t\t);\n\t\t});\n\t});\n});\n```\n\n#### <a name=\"count\"></a>count(query, options, callback)\n\nReturns the count of documents that would match a query.\n\n###### Parameters:\n\n* **query**, object. The Filter used to select the document to upsert. Optional.\n\n* **options**, object, null. Optional settings.\n\n\t* **limit**, integer. The maximum number of documents to count.\n\n\t* **skip**, integer. The number of documents to skip before counting.\n\n\t* **hint**, string or object. An index name hint or specification for the query.\n\n\t* **maxTimeMS**, integer. The maximum amount of time to allow the query to run.\n\n\t* **readConcern**, string, default to `local`. Specifies the read concern.\n\n* **callback**, function. The command result callback\n\n###### Returns:\n\nPromise if no callback passed\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient;\nvar Collection = require('mongodbext').Collection;\nvar expect = require('expect.js');\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'countExample');\n\n\tcollection.insertMany([{\n\t\ta: 1\n\t}, {\n\t\ta: 2\n\t}], function() {\n\t\tcollection.count({\n\t\t\ta: 1\n\t\t}, function(err, countResult) {\n\t\t\texpect(countResult).equal(1);\n\t\t});\n\t});\n});\n```\n\n### Hooks\n\nAll hooks take two parameters: params and callback. Callback is always callback function,\nand params fields depends on hook.\n\n\nName | Methods | Params fields\n---- | ------- | -------------\n**beforeInsertOne** | insertOne | <ul><li>obj, document to insert</li><li>options, optional settings</li></ul>\n**afterInsertOne** | insertOne | <ul><li>obj, inserted document</li><li>options, optional settings</li></ul>\n**beforeInsertMany** | insertMany | <ul><li>objs, documents to insert</li><li>options, optional settings</li></ul>\n**afterInsertMany** | insertMany | <ul><li>objs, inserted documents</li><li>options, optional settings</li></ul>\n**beforeUpdateOne** | <ul><li>updateOne</li><li>findOneAndUpdate</li></ul> | <ul><li>condition, query to select documents</li><li>modifier, update operations</li><li>options, optional settings</li></ul>\n**afterUpdateOne** | <ul><li>updateOne</li><li>findOneAndUpdate</li></ul> | <ul><li>condition, query to select documents</li><li>modifier, update operations</li><li>options, optional settings</li><li>result, operation result</li></ul>\n**beforeUpdateMany** | updateMany | <ul><li>condition, query to select documents</li><li>modifier, update operations</li><li>options, optional settings</li></ul>\n**afterUpdateMany** | updateMany | <ul><li>condition, query to select documents</li><li>modifier, update operations</li><li>options, optional settings</li><li>result, operation result</li></ul>\n**beforeDeleteOne** | <ul><li>deleteOne</li><li>findOneAndDelete</li></ul> | <ul><li>condition, query to select documents</li><li>options, optional settings</li></ul>\n**afterDeleteOne** | <ul><li>deleteOne</li><li>findOneAndDelete</li></ul> | <ul><li>condition, query to select documents</li><li>options, optional settings</li><li>result, operation result</li></ul>\n**beforeDeleteMany** | deleteMany | <ul><li>condition, query to select documents</li><li>options, optional settings</li></ul>\n**afterDeleteMany** | deleteMany | <ul><li>condition, query to select documents</li><li>options, optional settings</li><li>result, operation result</li></ul>\n**beforeReplaceOne** | <ul><li>replaceOne</li><li>findOneAndReplace</li></ul> | <ul><li>condition, query to select documents</li><li>replacement, document to replace original</li><li>options, optional settings</li></ul>\n**afterReplaceOne** | <ul><li>replaceOne</li><li>findOneAndReplace</li></ul> | <ul><li>condition, query to select documents</li><li>replacement, document to replace original</li><li>options, optional settings</li><li>result, operation result</li></ul>\n**beforeUpsertOne** | findOneAndUpsert | <ul><li>condition, query to select documents</li><li>modifier, update operations</li><li>options, optional settings</li></ul>\n**afterUpsertOne** | findOneAndUpsert | <ul><li>condition, query to select documents</li><li>modifier, update operations</li><li>options, optional settings</li><li>obj, upserted document</li><li>isUpdated, flag indicating whether document was updated or inserted</li></ul>\n\n\n### Plugins\n\nCollection class allows to create and use plugins for adding auto-generated fields to documents, for example.\n\n#### addPlugin(plugin, options)\n\nAdd plugin to collection.\n\n###### Parameters:\n\n* **plugin**, function | string. It can be either plugin function, or in case of built-in plugins it's name.\n  Plugin function takes collection object as first parameter and optional options as second\n\n* **options**, object, null. Options that will be passed to plugin.\n\n###### Examples:\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection;\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'updateOneExample');\n\n\tcollection.addPlugin(function(collection) {\n\t\tcollection.on('insertOne', function(params, callback) {\n\t\t\tparams.obj.counter = 1;\n\t\t\tcallback();\n\t\t});\n\t});\n});\n```\n\n``` js\nvar MongoClient = require('mongodb').MongoClient,\n\tCollection = require('mongodbext').Collection;\n\nMongoClient.connect('mongodb://localhost:27017/test', function(err, db) {\n\tvar collection = new Collection(db, 'updateOneExample');\n\n\tcollection.addPlugin('sequenceId');\n\tcollection.addPlugin('unsupportedMethods', {\n\t\tmethods: ['insertMany', 'updateMany']\n\t});\n});\n```\n\n#### Built-in plugins\n\n###### sequenceId\n\nReplace mongo-style object _id with number.\n\n⚠️ Do not work with [`findOneAndUpsert()`](#findoneandupsert).\n\n**options:**\n\n* `seqCollectionName` - name of sequences collection ('__sequences' by default)\n* `seqName` - name of sequence (collection name by default)\n* `key` - key in document to set sequence value (`_id` by default)\n\n###### createDate\n\nAdd createDate to each inserted to collection document\n\n**options:**\n\n* `format` - date format that will be used as `createDate`, available values:\n\t* `'timestamp'` (default) - integer timestamp date in milliseconds (`.getTime()`)\n\t* `'string'` - string date (`.toString()`)\n\t* `'ISOString'` - string date in ISO format (`.toISOString()`)\n\t* `'ISODate'` - date as Date object (`new Date()`)\n\t* `function(date)` - custom user function that should return formatted date\n\n###### updateDate\n\nAdd updateDate to each updated or replaces document\n\n⚠️ Do not work properly with [`findOneAndUpsert()`](#findoneandupsert), `createDate` will be rewrote every time.\n\n**options:**\n\n* `format` - date format that will be used as `updateDate`, available values:\n\t* `'timestamp'` (default) - integer timestamp date in milliseconds (`.getTime()`)\n\t* `'string'` - string date (`.toString()`)\n\t* `'ISOString'` - string date in ISO format (`.toISOString()`)\n\t* `'ISODate'` - date as Date object (`new Date()`)\n\t* `function(date)` - custom user function that should return formatted date\n\n###### detailedError\n\nAdd field `operation` with query info to error object\n","maintainers":[{"name":"2do2go","email":"dev.2do2go@gmail.com"}],"time":{"modified":"2022-06-20T06:38:35.335Z","created":"2013-06-03T11:53:42.828Z","0.1.0":"2013-06-03T11:53:45.159Z","0.1.1":"2013-06-06T07:34:01.707Z","0.1.3":"2014-01-10T08:16:07.978Z","0.1.4":"2014-01-10T11:09:29.060Z","0.1.5":"2014-10-16T12:59:00.750Z","2.0.0":"2016-01-20T12:45:52.731Z","2.0.1":"2016-02-03T10:01:28.698Z","2.0.2":"2016-03-11T15:14:27.256Z","2.0.3":"2016-03-16T12:06:20.526Z","2.0.4":"2016-03-27T12:39:52.330Z","2.0.5":"2016-04-21T14:51:42.386Z","2.0.6":"2016-04-21T14:52:04.438Z","2.0.7":"2017-01-11T14:53:07.352Z","2.0.8":"2017-01-17T14:18:09.341Z","2.0.9":"2017-01-18T11:35:47.628Z","2.0.10":"2017-01-20T06:34:02.775Z","2.0.11":"2017-04-13T12:48:30.735Z","2.0.12":"2017-04-18T16:50:27.627Z","2.1.0":"2017-04-28T15:03:48.361Z","2.1.1":"2017-06-06T08:37:10.539Z","2.1.2":"2017-06-06T09:15:34.458Z","2.1.3":"2017-06-06T09:56:31.437Z","2.2.0":"2017-08-31T07:07:42.520Z","2.2.1":"2018-02-01T16:45:40.179Z","2.2.2":"2018-02-05T09:51:26.098Z","2.2.3":"2018-02-05T11:50:30.861Z","2.2.4":"2018-02-14T20:28:02.068Z","2.2.5":"2020-06-12T04:53:38.190Z","3.0.0":"2020-07-10T07:57:10.704Z","3.0.1":"2020-11-13T07:50:47.268Z","2.2.6":"2020-11-13T08:32:19.961Z","3.1.0":"2021-03-05T08:42:46.787Z","3.2.0":"2021-03-22T09:48:10.473Z","4.0.0":"2021-06-03T08:45:52.411Z","5.0.0":"2021-06-04T07:53:36.095Z","5.0.1":"2021-07-19T06:24:09.145Z"},"repository":{"type":"git","url":"git://github.com/2do2go/mongodbext.git"},"keywords":["mongodb","db","hook","trigger"],"readmeFilename":"README.md","bugs":{"url":"https://github.com/2do2go/mongodbext/issues"},"homepage":"https://github.com/2do2go/mongodbext#readme"}