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

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -