Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 864 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 864 Bytes

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);