@kingslayerchess/pwd-gen
v0.2.2
Published
Zufallspasswort-Generator für die Kommandozeile und als Node.js-Modul.
Readme
pwdGen
@kingslayerchess/pwd-gen generates random passwords. You can use it as a Node.js module or run it from the command line.
Installation
npm install @kingslayerchess/pwd-genCLI
Run the CLI with npx:
npx pwd-genBy default, it generates a 12-character password with special characters. Use --length (or -l) to choose a different length:
npx pwd-gen --length 20
npx pwd-gen -l 24To generate a password without special characters, pass --no-special:
npx pwd-gen --length 20 --no-specialShow all available options with:
npx pwd-gen --helpNode.js module
const generatePassword = require("@kingslayerchess/pwd-gen");
const password = generatePassword(20); // Special characters are included by default.
const passwordWithoutSpecialCharacters = generatePassword(20, false);