node.js - How to kill process with node js -




im running bdd tests uses ie, chrome , firefox drivers. when tests fails doesnt kills drivers keeps running. want kill process process name, in windows

taskkill /f /im chromedriver.exe /t 

but node js or work along in linux , windows machines. if gulp plugin great can add task.

you looking fkill

works on macos, linux, windows.

usage examples :

const fkill = require('fkill');  fkill(1337).then(() => {     console.log('killed process'); });  fkill('safari');  fkill([1337, 'safari']); 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -