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

deno_getpass

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

Permissions

  • --unstable

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.