simple-passwordscore
v1.0.0
Published
Simple Password Strength Checker & Generator
Downloads
2
Maintainers
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
npm install simple-passwordscore
Usage
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);