Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justjavac/deno_getpass

Safely read passwords in a console application on Linux, OSX and Windows
https://github.com/justjavac/deno_getpass

deno deno-getpass password readline

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# deno_getpass

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

## Try it

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

## Usage

```ts
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](https://github.com/justjavac/deno_getpass) is released under the
MIT License. See the bundled [LICENSE](./LICENSE) file for details.