{"_id":"@a4xrbj1/xolvio-cleaner","name":"@a4xrbj1/xolvio-cleaner","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@a4xrbj1/xolvio-cleaner","version":"1.0.0","description":"Gives you methods to clear your Mongo database and collections for testing purposes","main":"cleaner.js","repository":{"type":"git","url":"git+https://github.com/a4xrbj1/xolvio-cleaner.git"},"license":"MIT","gitHead":"402a6d45a9465ee63e0cf3d4098ec2a0b8a2659f","_id":"@a4xrbj1/xolvio-cleaner@1.0.0","bugs":{"url":"https://github.com/a4xrbj1/xolvio-cleaner/issues"},"homepage":"https://github.com/a4xrbj1/xolvio-cleaner#readme","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-WssIR9GGXwcQ1gLBkbvJ33fSbTg4HbHSRe/BHZ/HtBUQ2nGHnmrvCMRgmur1zwjL6/GB0d+UL7p1J1R3nZPPGw==","shasum":"cf119131161707fcbe2f0b4c5bf2d0e5bfb85262","tarball":"https://registry.npmjs.org/@a4xrbj1/xolvio-cleaner/-/xolvio-cleaner-1.0.0.tgz","fileCount":6,"unpackedSize":6810,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID5tCRkDW2eY0CsfPo2GKwVFTOIN+CUs4K2D8kqf1Y/zAiAJrvzJJsV6ZMjhfKuLUpTBqDcvLuaRJ2qs6uU86RqX8Q=="}]},"_npmUser":{"name":"a4xrbj1","email":"a4xrbj1@gmail.com"},"directories":{},"maintainers":[{"name":"a4xrbj1","email":"a4xrbj1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/xolvio-cleaner_1.0.0_1778847914226_0.3021699079220399"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-15T12:25:14.075Z","1.0.0":"2026-05-15T12:25:14.381Z","modified":"2026-05-15T12:25:14.651Z"},"maintainers":[{"name":"a4xrbj1","email":"a4xrbj1@gmail.com"}],"description":"Gives you methods to clear your Mongo database and collections for testing purposes","homepage":"https://github.com/a4xrbj1/xolvio-cleaner#readme","repository":{"type":"git","url":"git+https://github.com/a4xrbj1/xolvio-cleaner.git"},"bugs":{"url":"https://github.com/a4xrbj1/xolvio-cleaner/issues"},"license":"MIT","readme":"xolvio-cleaner\n==============\n\nMethods to clear your Mongo database and collections for testing purposes.\n\nA maintained fork of [xolvio:cleaner](https://github.com/xolvio/cleaner), kept\ncurrent for Meteor 3.x and published to npm under the `@a4xrbj1` scope.\n\n# Installation\n\n```\nnpm install @a4xrbj1/xolvio-cleaner\n```\n\n# Usage\n\n`resetDatabase` only runs inside a `development` environment — it throws\notherwise. It works on both the client and the server, and is async, so always\n`await` it.\n\n```javascript\nimport { resetDatabase } from '@a4xrbj1/xolvio-cleaner';\n\n// empty every application collection\nawait resetDatabase();\n```\n\n`system.*` (MongoDB-internal, e.g. `system.profile`) and `velocity*`\n(test-runner) collections are always skipped — they are never emptied.\n\n## Provide a specific database instance\n\n```javascript\nawait resetDatabase({ db: yourDatabaseInstance });\n```\n\n## Don't reset a certain collection\n\n```javascript\nawait resetDatabase({ excludedCollections: ['myCollection'] });\n```\n\n# License\n\nMIT. See [LICENSE](LICENSE).\n","readmeFilename":"README.md","_rev":"1-0438134a8b9fde19c5a91544d9ed1810"}