Password generator implemented in JavaScript (ES6).
This library will auto generate random secure passwords.
npm i --save @rabbit-company/password-generator
import PasswordGenerator from "@rabbit-company/password-generator";
/*
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);