confirm
Shows the given message and waits for the answer. Returns the user's answer as boolean.
Only y
and Y
are considered as true.
If the stdin is not interactive, it returns false.
function confirm(message?: string): boolean;
Shows the given message and waits for the answer. Returns the user's answer as boolean.
Only y
and Y
are considered as true.
If the stdin is not interactive, it returns false.