Skip to main content

deno_getpass

Safely read passwords in a console application on Linux, OSX and Windows.

Try it

deno run https://deno.land/x/getpass/example.ts

Usage

import getpass from "https://deno.land/x/getpass/mod.ts";

const pw = getpass();
console.log("Your password is: %s", pw);

If enter Ctrl + C, will return undefined.

License

deno_getpass is released under the MIT License. See the bundled LICENSE file for details.