https://github.com/arrayiterator/simple-passwordscore
Lightweight / Simple Password Strength Checker & Generator
https://github.com/arrayiterator/simple-passwordscore
Last synced: 5 months ago
JSON representation
Lightweight / Simple Password Strength Checker & Generator
- Host: GitHub
- URL: https://github.com/arrayiterator/simple-passwordscore
- Owner: ArrayIterator
- License: mit
- Created: 2024-05-12T05:12:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-12T05:32:34.000Z (over 1 year ago)
- Last Synced: 2025-02-15T06:30:39.257Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Password Strength Checker & Generator
This is a simple password strength checker and generator.
It is a simple javascript that can be used to check the strength of a password and generate a strong password.
## Installation
```bash
npm install simple-passwordscore
```
## Usage
```javascript
import {
ScorePassword,
GeneratePassword
} from 'simple-passwordscore';
/**
* Score password return -1 to 3
* @type {number} score
*/
const score = ScorePassword('password');
/**
* Generate password return a random password, 12 is length of password
* Default length is 12
* @type {string} password
*/
const password = GeneratePassword(12);
```