Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.3.0/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