Exits the process without logging anything on the console.
🖍️ colors
Type: boolean Default: true in terminals, false otherwise
Whether to colorize the error's message, stack trace and additional properties.
Quoted strings in the error's message are printed in bold (for "..." and
'...') and in italic (for `...`).
❌ icon
Type: string Default: 'cross'
Icon prepended to the error's name. The available values are listed
here.
Can be disabled by passing an empty string.
💄 header
Type: string Default: 'red bold'
Color/style of the error's icon and name. The available values are
listed here. Several
styles can be specified by using spaces. Can be disabled by passing an empty
string.
🚒 timeout
Type: integer (in milliseconds) Default: 5000 (5 seconds)
The process exits gracefully: it waits for any ongoing tasks (callbacks,
promises, etc.) to complete, up to a specific timeout.
Special values:
0: Exits right away, without waiting for ongoing tasks
Number.POSITIVE_INFINITY: Waits for ongoing tasks forever, without timing
out