kill-mongodb

Kill any currently running MongoDB instances.

Apache-2.0 3 个版本
安装
npm install kill-mongodb
yarn add kill-mongodb
pnpm add kill-mongodb
bun add kill-mongodb
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

版本列表
1.0.1 2017-06-06
1.0.0 2016-11-11
0.0.1 2015-07-20