PHP 8.2.30
Preview: README.md Size: 774 B
/lib/node_modules/npm/node_modules/getpass/README.md

## getpass

Get a password from the terminal. Sounds simple? Sounds like the `readline`
module should be able to do it? NOPE.

## Install and use it

```bash
npm install --save getpass
```

```javascript
const mod_getpass = require('getpass');
```

## API

### `mod_getpass.getPass([options, ]callback)`

Gets a password from the terminal. If available, this uses `/dev/tty` to avoid
interfering with any data being piped in or out of stdio.

This function prints a prompt (by default `Password:`) and then accepts input
without echoing.

Parameters:

 * `options`, an Object, with properties:
   * `prompt`, an optional String
 * `callback`, a `Func(error, password)`, with arguments:
   * `error`, either `null` (no error) or an `Error` instance
   * `password`, a String

Directory Contents

Dirs: 1 × Files: 5

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
64 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
113 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.04 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.25 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
774 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).