Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/justjavac/deno_getpass
- Owner: justjavac
- License: mit
- Created: 2020-08-19T08:15:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T01:02:44.000Z (over 2 years ago)
- Last Synced: 2024-10-03T12:44:33.266Z (5 months ago)
- Topics: deno, deno-getpass, password, readline
- Language: TypeScript
- Homepage: https://deno.land/x/getpass
- Size: 20.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.