Package Exports
- password-prompt
- password-prompt/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (password-prompt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
password-prompt
Node cross-platform password prompt.
Supported Environments:
- Unix
- TTY or non-TTY
- cygwin
- Git Bash
- cmd.exe
- PowerShell
- cmder
- Console2
API Reference
prompt -- Prompt for a password
Returns: Promise.<string>
- input from user
Param | Type | Default | Description |
---|---|---|---|
[ask] | string |
prompt output | |
[options] | Object |
||
[options.method] | string |
"mask" |
mask or hide |
Example
let prompt = require('password-prompt')
let password = prompt('password: ')
// password: ******