The best way to protect passwords is to employ salted password hashing.
RustCrypto: Argon2 binding for Node.js
cross-platform masked or hidden prompt
An Argon2 library for Node
Node One Time Password library, supports HOTP, TOTP and works with Google Authenticator
Module for reading .pgpass
Bindings to native Mac/Linux/Windows password APIs
getpass for node.js
Basic access to the Mac OS X Keychain
SASLprep: Stringprep Profile for User Names and Passwords, rfc4013.
The insecure key derivation algorithm from OpenSSL
A phpass portable hashing function compatible with wordpress passwords
Bindings to native Mac/Linux/Windows password APIs
Unzip cross-platform streaming API
Rust bcrypt binding
Functions for dealing with a PostgresSQL connection string
A bcrypt library for NodeJS.
Wrap sudo with optional password cache
SQL ConnectionString parser
Inquirer password prompt
Calculate the entropy of a password string, but fast!
Translate ECDSA signatures between ASN.1/DER and JOSE-style concatenation
Secure, zero-dependency utilities for generating passwords, passphrases, pins, and more
Password hashing and verification for node.js