Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xdg/vendor/types/deno.d.ts>confirm

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
function confirm
import { confirm } from "https://deno.land/x/xdg@v10.3.0/vendor/types/deno.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