jdxcode/password-prompt


Node cross-platform password prompt

https://www.npmjs.com/package/password-prompt

Language: JavaScript


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

Project Statistics

Sourcerank 9
Repository Size 92.8 KB
Stars 12
Forks 5
Watchers 4
Open issues 6
Dependencies 309
Contributors 4
Tags 11
Created
Last updated
Last pushed

Top Contributors See all

Jeff Dickey Travis Longoria Martijn Verbakel Anjana S

Packages Referencing this Repo

password-prompt
cross-platform masked or hidden prompt
Latest release 1.1.2 - Updated - 12 stars

Recent Tags See all

v1.1.2 February 20, 2019
v1.1.1 February 20, 2019
v1.1.0 February 19, 2019
v1.0.7 August 03, 2018
v1.0.6 May 10, 2018
v1.0.5 May 06, 2018
v1.0.4 January 20, 2018
v1.0.3 September 09, 2017
v1.0.2 August 01, 2016
v1.0.1 August 01, 2016
v1.0.0 August 01, 2016

Something wrong with this page? Make a suggestion

Last synced: 2019-02-20 14:02:11 UTC

Login to resync this repository