passwordgenerator-by-opu
v1.0.5
Published
A simple password generator
Readme
# 🔐 passwordgenerator-by-opu
A simple and customizable password generator for Node.js — generate secure passwords with just one function!
## 📦 Installation
```bash
npm install passwordgenerator-by-opu
```
## 🚀 Usage
```js
const { generatePassword } = require('passwordgenerator-by-opu');
// Generate a 12-character password
const password = generatePassword(12);
console.log(password); // Example: aB7@x!Kz91Lp
```
## ⚙️ API
### `generatePassword(length)`
| Parameter | Type | Description |
| --------- | ------ | ------------------------------------ |
| `length` | Number | Length of the password (default: 12) |
**Returns:** `String` – A randomly generated password.
## 🔒 Characters Used
- Uppercase letters: `A-Z`
- Lowercase letters: `a-z`
- Numbers: `0-9`
- Symbols: `!@#$%^&*()_+`
> ✅ Ensures high entropy for better security
## 📚 Examples
```js
console.log(generatePassword()); // default 12 characters
console.log(generatePassword(20)); // 20-character strong password
console.log(generatePassword(6)); // 6-character quick password
```
## 🧑 Author
**Md Opu**
Published with ❤️ on [NPM](https://www.npmjs.com/package/passwordgenerator-by-opu)
## 📄 License
MIT