Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 489 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 489 Bytes

Prompts

Command line prompts for Deno

Example

Note: This makes use of Deno.setRaw which is still unstable as of v1.0.3 so the examples require the --unstable flag to run.

import { promptSecret } from "https://deno.land/x/prompts/mod.ts";

let secret = null;
do {
	secret = await promptSecret("What is the secret password? ");
} while (secret != "password");

console.log("Indeed, the ultimate secure password is indeed 'password', welcome to Deno Land!");