JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2702428
  • Score
    100M100P100Q196218F
  • License WTFPL

cross-platform masked or hidden prompt

Package Exports

  • password-prompt

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: ******