@rabbit-company/password-generator
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

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

Package Sidebar

Install

npm i @rabbit-company/password-generator

Weekly Downloads

0

Version

2.2.0

License

MIT

Unpacked Size

7.09 kB

Total Files

5

Last publish

Collaborators

  • ziga.zajc007