npm.io
1.0.0 • Published 7 years ago

mbr-prompt

Licence
ISC
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

mbr-prompt

Simple password prompt for NodeJS process. No symbols are being displayed while typing.

const prompt = require('mbr-prompt');

prompt('Please enter your password', function (password) {
  console.log('Entered password is:', password);
});

First argument is user-readable string - password input invitation.

Second argument is a callback, which receives user input value as an argument after Enter was pressed.

Keywords