@sharoussh/password-generator-cli
v1.0.0
Published
Zero-dependency CLI to generate strong random passwords
Maintainers
Readme
password-generator-cli
Zero-dependency CLI to generate cryptographically strong random passwords.
Install
npm install -g password-generator-cliOr run without installing:
npx password-generator-cliUsage
# Generate one password (default 16 chars)
password-generator
# Custom length
password-generator --length=24
# Generate 5 passwords at once
password-generator --count=5
# No symbols (good for systems that don't allow them)
password-generator --no-symbols
# Exclude confusing characters like 0, O, l, 1, I
password-generator --exclude=0Ol1I
# Combine options
password-generator --length=20 --no-symbols --exclude=0Ol1IExample output
X7@kLmP9#qRt2Wz!
▰▰▰▰ Very strong · 16 charsOptions
| Flag | Description | Default |
|------|-------------|---------|
| --length=N | Password length | 16 |
| --count=N | Number of passwords | 1 |
| --no-uppercase | Exclude uppercase letters | off |
| --no-lowercase | Exclude lowercase letters | off |
| --no-numbers | Exclude numbers | off |
| --no-symbols | Exclude symbols | off |
| --exclude=CHARS | Exclude specific characters | none |
| --no-color | Disable colored output | off |
| --help | Show help | — |
Features
- ✅ Cryptographically random (uses Node.js
cryptomodule) - ✅ Guarantees at least one char from each enabled type
- ✅ Password strength indicator (Very weak → Very strong)
- ✅ Exclude confusing characters (
0,O,l,1,I) - ✅ Bulk generation with
--count - ✅ Zero dependencies
Running tests
npm testLicense
MIT
