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
Post a Comment