Native Package Manager

    password-prompt

    1.1.2 • Public • Published

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

    Install

    npm i password-prompt

    DownloadsWeekly Downloads

    1,877,212

    Version

    1.1.2

    License

    WTFPL

    Unpacked Size

    4.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • dickeyxxx