strong-password-generator-ts
v1.0.0
Published
strong password
Downloads
1
Maintainers
Readme
🔐 Strong Password Generator
A lightweight TypeScript utility for generating secure, random passwords with a guaranteed mix of lowercase letters, uppercase letters, digits, and special characters.
✨ Features
- ✅ Enforces a minimum password length of 8
- 🔡 Includes lowercase letters
- 🔠 Includes uppercase letters
- 🔢 Includes digits
- 🔣 Includes special characters
- ⚡ Lightweight & dependency-free
- 🧩 Written in TypeScript
📦 Installation
npm install strong-password-generator-ts🚀 Usage
TypeScript Example
import { generator } from "strong-password-generator-ts";
// Generate a password with default length (10)
const password = generator.strongPassword();
console.log(password);
// Generate a password with a custom length
const longPassword = generator.strongPassword(16);
console.log(longPassword);JavaScript Example
const { generator } = require("strong-password-generator-ts");
const password = generator.strongPassword(12);
console.log(password);🔐 Example Output
aG7@Q9!mZ2
