kill-me-now
v0.0.133
Published
Find and kill application processes by _file path_
Downloads
560
Readme
Kill Me Now
Find and kill application processes by file path
npm i -P kill-me-nowParameters
- A
name(which is the file path) to identify application processes is required - A
pidto exclude is optional - And a
cmdis optional
Example
Import killMeNow
import killMeNow from 'kill-me-now'Kill all processes on this path
/**
* Get the current working directory
*/
const cwd = process.cwd()
await killMeNow(cwd)(This will include the current process represented by process)
Kill any processes on this path except for the current process
/**
* Get the current working directory
*/
const cwd = process.cwd()
/**
* Get the current process ID
*/
const pid = process.pid
await killMeNow(cwd, pid)