strong-pass-by-avishay
v1.0.0
Published
Generate strong password
Maintainers
Readme
Password Generator
A lightweight JavaScript/TypeScript utility for generating strong random passwords with a mix of lowercase letters, uppercase letters, numbers, and special characters.
✨ Features
- Generates strong passwords by default
- Ensures minimum password length of 8 characters
- Includes:
- Lowercase letters
- Uppercase letters
- Numbers
- Special characters
- Written in TypeScript
- Zero dependencies
📦 Installation
npm install strong-pass-by-avishay🚀 Usage
TypeScript Example
import { generator } from "strong-pass-by-avishay";
// 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-pass-by-avishay");
const password = generator.strongPassword(12);
console.log(password);🔐 Example Output
aG7@Q9!mZ2
