GitHub - justjavac/deno_ctrlc: Cross platform handling of Ctrl-C signals. · GitHub
Skip to content

About

Cross platform handling of Ctrl-C signals.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

deno_ctrlc

Cross platform handling of Ctrl-C signals.

Try it

deno run https://deno.land/x/ctrlc/example.ts

Usage

import { Disposable, setHandler } from "https://deno.land/x/ctrlc/mod.ts";

const ctrlc: Disposable = setHandler(() => {
  Deno.exit();
});

console.log("press ctrl + c, will exit");
// loop

License

deno_ctrlc is released under the MIT License. See the bundled LICENSE file for details.

About

Cross platform handling of Ctrl-C signals.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages

Generated from justjavac/deno_starter