UNPKG

kill-sync

Version:

Cross-platform kill command. Supports recusive/tree-kill in a synchronous manner.

12 lines (11 loc) 383 B
/** * Kills a process with the given PID. * * @param {number} pid - The process ID to kill. * @param {string | number} [signal='SIGTERM'] - signal to send to the process * @param {boolean} [recursive=false] - pass true for tree kill * * @returns {void} */ declare const killSync: (pid: number, signal?: string | number, recursive?: boolean) => void; export default killSync;