mbr-prompt

1.0.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mbr-prompt

      Weekly Downloads

      1

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      1.9 kB

      Total Files

      3

      Last publish

      Collaborators

      • madbrozzer