🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

password-prompt

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

password-prompt

cross-platform masked or hidden prompt

1.1.3
latest
Source
npm
Version published
Maintainers
3
Created

What is password-prompt?

The password-prompt npm package is designed to securely prompt for a password in a Node.js application. It hides the input as the user types, making it suitable for CLI applications where sensitive information needs to be entered by the user.

What are password-prompt's main functionalities?

Secure Password Input

This feature allows for the secure input of passwords. The code sample demonstrates how to prompt the user for a password without showing the input on the screen.

const passwordPrompt = require('password-prompt');

async function getPassword() {
  const password = await passwordPrompt('Password: ');
  console.log('Password entered:', password);
}

getPassword();

Other packages similar to password-prompt

Keywords

cli

FAQs

Package last updated on 25 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts