@dinhtri/genpass
v1.0.2
Published
A simple CLI tool for generating random passwords with custom options.
Maintainers
Readme
Password Generator CLI
A simple CLI tool to generate random passwords.
Installation
You can install this package globally via NPM:
npm install -g @dinhtri/genpassUsage
After installation, you can use the gen-pass command:
gen-pass [options]Options
-l, --length <number>: Set the password length (default: 6, min: 2).-s, --with-specialchar: Include special characters.-m, --multiple-words: Generate a password with 3 segments separated by hyphens (e.g.,abc-123-xyz).
Examples
Generate a 12-character password:
gen-pass -l 12Generate a password with special characters:
gen-pass -sGenerate a "multiple words" style password:
gen-pass -mLicense
MIT
