{"library":"mongo-clean","type":"library","category":null,"description":"mongo-clean is a focused utility designed to efficiently clear data from MongoDB databases, primarily used in testing or development environments. Version 2.0.0 is the current stable release. It offers two main strategies for cleaning: dropping entire collections or removing all documents within them, providing flexibility depending on schema requirements or performance considerations. A key feature is the ability to exclude specific collections from the cleaning process, preventing accidental data loss for essential tables. It supports both traditional callback-based asynchronous operations and modern Promise-based and `async/await` syntax, integrating seamlessly into contemporary Node.js applications. The package's minimalist API distinguishes it from more complex database management tools, focusing solely on the clean-up task. Its release cadence is not explicitly stated, but its clear purpose suggests a mature, low-churn library.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","mongodb","clean","test"],"install":[{"cmd":"npm install mongo-clean","imports":["const clean = require('mongo-clean')","import clean from 'mongo-clean'"]},{"cmd":"yarn add mongo-clean","imports":[]},{"cmd":"pnpm add mongo-clean","imports":[]}],"homepage":null,"github":"https://github.com/mcollina/mongo-clean","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mongo-clean","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mongo-clean/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}