@rabbit-company/password-generator
v2.2.0
Published
Password generator
Downloads
7
Maintainers
Readme
PasswordGenerator-JS
Password generator implemented in JavaScript (ES6).
This library will auto generate random secure passwords.
Usage
1. Download library
npm i --save @rabbit-company/password-generator
2. Import library
import PasswordGenerator from "@rabbit-company/password-generator";
3. Generate Password
/*
Parameters:
1. Length (Number) <20>
2. Uppercase (Bool) <true>
3. Numbers (Bool) <true>
4. Symbols (Bool) <true>
*/
// Generate 20 character long password with Uppercase characters, Numbers and Symbols.
PasswordGenerator.generate();
// Generate 30 character long password with Uppercase characters, Numbers and Symbols.
PasswordGenerator.generate(30);
// Generate 50 character long password with Uppercase characters and Numbers.
PasswordGenerator.generate(50, true, true, false);