password-generator-by-mor
v1.0.0
Published
Generate strong password.
Downloads
104
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 password-generator-by-mor🚀 Usage
TypeScript Example
import { generator } from "password-generator-by-mor";
// 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("password-generator-by-mor");
const password = generator.strongPassword(12);
console.log(password);🔐 Example Output
aG7@Q9!mZ2
