Deno.Process.prototype.kill - Deno documentation
method Deno.Process.prototype.kill
Process.prototype.kill(signo?: Signal): void

Send a signal to process. Default signal is "SIGTERM".

const p = Deno.run({ cmd: [ "sleep", "20" ]});
p.kill("SIGTERM");
p.close();

Parameters

optional
signo: Signal

Return Type

void