{"library":"database-cleaner","type":"library","category":null,"description":"This package, `database-cleaner` (version 1.3.0), provides a simple, unified API for cleaning various databases in Node.js applications, primarily intended for testing scenarios. It supports MongoDB, Redis, CouchDB, MySQL, PostgreSQL, and Elasticsearch. Its main purpose is to facilitate test setup and teardown by quickly resetting database states between test runs, ensuring a clean slate for each test. The package allows configuration of specific cleaning strategies, such as truncation for SQL databases, and the ability to skip certain tables during the cleaning process. However, a significant consideration is that the project appears to be abandoned, with no updates or maintenance for several years. This implies potential compatibility issues with modern Node.js runtimes (e.g., Node.js 14, 16, 18, 20+) and contemporary versions of the supported database drivers (e.g., `mongodb` v4+, `redis` v4+, `pg` v8+). Developers should be cautious when integrating this into newer projects due to the lack of ongoing support and potential security vulnerabilities arising from outdated dependencies.","language":"javascript","status":"abandoned","version":"1.3.0","tags":["javascript","database","cleaner","mongodb","redis","couchdb","tests","package.json","elasticsearch"],"last_verified":"Wed May 27","install":[{"cmd":"npm install database-cleaner","imports":["const DatabaseCleaner = require('database-cleaner');","const databaseCleaner = new DatabaseCleaner('mongodb');","databaseCleaner.clean(dbConnection, () => console.log('Database cleaned'));"]},{"cmd":"yarn add database-cleaner","imports":[]},{"cmd":"pnpm add database-cleaner","imports":[]}],"homepage":null,"github":"https://github.com/emerleite/node-database-cleaner","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/database-cleaner","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/database-cleaner/compatibility"}}