getpass
Advanced tools
getpass for node.js
Weekly downloads
Readme
Get a password from the terminal. Sounds simple? Sounds like the readline
module should be able to do it? NOPE.
npm install --save getpass
const mod_getpass = require('getpass');
mod_getpass.getPass([options, ]callback)
Gets a password from the terminal. If available, this uses /dev/tty
to avoid
interfering with any data being piped in or out of stdio.
This function prints a prompt (by default Password:
) and then accepts input
without echoing.
Parameters:
options
, an Object, with properties:
prompt
, an optional Stringcallback
, a Func(error, password)
, with arguments:
error
, either null
(no error) or an Error
instancepassword
, a Stringgetpass for node.js
The npm package getpass receives a total of 17,056,522 weekly downloads. As such, getpass popularity was classified as popular.
We found that getpass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.