Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xdg/vendor/types/deno.d.ts>Deno.exit

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
function Deno.exit
import { Deno } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.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