How to exit in Deno? (analog of process.exit)

Viewed 2932
1 Answers

As of Deno version 0.3.4:

Deno.exit(1); // the exit code is optional and defaults to 0

Check out https://doc.deno.land/deno/stable/~/Deno to know everything that you can access through the Deno global.

Related