{"id":16473245,"url":"https://github.com/saintedlama/drop-mongodb-collections","last_synced_at":"2025-03-23T11:32:50.491Z","repository":{"id":9146903,"uuid":"61020531","full_name":"saintedlama/drop-mongodb-collections","owner":"saintedlama","description":"Drops all (non system) mongodb collections","archived":false,"fork":false,"pushed_at":"2023-01-06T18:00:22.000Z","size":703,"stargazers_count":2,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T20:07:22.669Z","etag":null,"topics":["mongodb","nodejs","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saintedlama.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-13T08:30:44.000Z","updated_at":"2023-01-10T18:54:18.000Z","dependencies_parsed_at":"2023-01-13T15:30:11.810Z","dependency_job_id":null,"html_url":"https://github.com/saintedlama/drop-mongodb-collections","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2Fdrop-mongodb-collections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2Fdrop-mongodb-collections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2Fdrop-mongodb-collections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2Fdrop-mongodb-collections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saintedlama","download_url":"https://codeload.github.com/saintedlama/drop-mongodb-collections/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245097158,"owners_count":20560311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mongodb","nodejs","testing"],"created_at":"2024-10-11T12:25:58.026Z","updated_at":"2025-03-23T11:32:50.113Z","avatar_url":"https://github.com/saintedlama.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drop-mongodb-collections\n\nDrops all non system mongodb collections. To be used for tests.\n\n[![Node.js CI](https://github.com/saintedlama/drop-mongodb-collections/actions/workflows/ci.yml/badge.svg)](https://github.com/saintedlama/drop-mongodb-collections/actions/workflows/ci.yml)\n\n[![Coverage Status](https://coveralls.io/repos/github/saintedlama/drop-mongodb-collections/badge.svg)](https://coveralls.io/github/saintedlama/drop-mongodb-collections)\n\n## Usage\n\n```bash\n\u003e npm i drop-mongodb-collections --save-dev\n```\n\n```js\nconst dropMongoDbCollections = require('drop-mongodb-collections')('mongodb://localhost/tests');\n\n// Mocha\n\ndescribe('something', function() {\n  // Cleanup db before running tests\n  beforeEach(dropMongoDbCollections);\n\n  // Your tests go here\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintedlama%2Fdrop-mongodb-collections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaintedlama%2Fdrop-mongodb-collections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintedlama%2Fdrop-mongodb-collections/lists"}