GitHunt
MO

mongodb-js/kill-mongodb

Kill any currently running MongoDB instances.

kill-mongodb

Kill any currently running MongoDB instances on OSX, Linux, or Windows.

Installation

npm install --save-dev kill-mongodb;

Examples

If your tests start mongodb, you can just add a handy posttest hook
to kill off any instances that might be lingering.

{
  ...
  "scripts": {
    "test": "mocha",
    "posttest": "kill-mongodb"
  }
  ...
}

License

Apache 2.0

Languages

JavaScript100.0%

Contributors

Apache License 2.0
Created July 20, 2015
Updated December 20, 2023