kill-mongodb

Kill any currently running MongoDB instances.

Usage no npm install needed!

<script type="module">
  import killMongodb from 'https://cdn.skypack.dev/kill-mongodb';
</script>

README

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