Ende.exitCode

variable

var Ende.exitCode: number

The exit code for the Ende process.

If no exit code has been supplied, then Ende will assume a return code of 0.

When setting an exit code value, a number or non-NaN string must be provided, otherwise a TypeError will be thrown.

console.log(Ende.exitCode); //-> 0
Ende.exitCode = 1;
console.log(Ende.exitCode); //-> 1