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

getpass

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getpass

getpass for node.js

0.1.5
Source
npm
Version published
Weekly downloads
20M
1.8%
Maintainers
1
Weekly downloads
 
Created

What is getpass?

The getpass npm package is used to securely prompt for a user's password in a Node.js application. It can be used to handle password input without echoing the password back to the console, thus providing a more secure way to collect sensitive information from users.

What are getpass's main functionalities?

Get User Password

This feature allows you to prompt the user for a password without echoing it to the console. The password is passed to a callback function.

const getpass = require('getpass');
getpass.getPass('Password: ', function(err, password) {
  if (err) throw err;
  console.log('Your password is: ' + password);
});

Other packages similar to getpass

FAQs

Package last updated on 21 Apr 2016

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