Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.window.d.ts>confirm

A modern runtime for JavaScript and TypeScript.
Latest
function confirm
import { confirm } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.window.d.ts";

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.

Parameters

optional
message: string

Returns

boolean