Skip to main content
Process.exitCode - process - Node documentation
property Process.exitCode

Usage in Deno

import { type Process } from "node:process";

A number which will be the process exit code, when the process either exits gracefully, or is exited via exit without specifying a code.

Specifying a code to exit will override any previous setting of process.exitCode.

Type

number
| string
| number
| undefined
Back to top