1.0.0 • Published 2 years ago
genpasswordak v1.0.0
A package designed to generate random passwords
Quickstart
1. Install
npm install genpasswordak
2. Random password generation
const genPwd = require("genpasswordak");
genPwd.genPwdDefault(); // ⇨ '77i01ca%w'
genPwd.genPwd(8, true, false); // ⇨ 'IaItaM40'
API
Method | Description |
---|---|
genPwdDefault() | Default password generation method (length from 8 to 16 characters, lowercase and uppercase letters, numbers, special characters) |
genPwdDefault(pwdLength, isNumber, isSymbol) | Password generation method.pwdLength - Password length. Type - number;isNumber - Digit presence flag. Type - boolean;isSymbol - Flag for the presence of special characters. Type - boolean. |
1.0.0
2 years ago