2.0.0 • Published 8 years ago

muted-password-prompt v2.0.0

Weekly downloads
3
License
WTFPL
Repository
github
Last release
8 years ago

muted-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

ParamTypeDefaultDescription
askstringprompt output
optionsObject
options.methodstring"mask"mask or hide

Example

let prompt = require('muted-password-prompt')
let password = prompt('password: ')
// password: