Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/lib.deno.ns.d.ts>Deno.exit

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.exit
import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.ns.d.ts";
const { exit } = Deno;

Exit the Deno process with optional exit code. If no exit code is supplied then Deno will exit with return code of 0.

  Deno.exit(5);

Parameters

optional
code: number

Returns

never