Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
2.3M
increased by1.16%
Maintainers
3
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc