Can I programatically trigger a SIGINT event?

I would like to trigger a SIGINT event from a file, is there a way to do this? For example in Node, you can do process.emit('sigint');
2 Replies
NeTT
NeTT2y ago
Never heard of a process.emit in node (and I can't find it in docs) but you can use Deno.exit(code)
Ed, Edd n Eddy
ok ty will see if that works with what i need to do