1.0.0 • Published 3 years ago

generation-passwordjs v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

What is it ?

generation-passwordjs is a library for generating random password.

Install

$ npm install generation-passwordjs

Usage

generatePassword({options})

Generate one password with the given options. Returns a string.

import generatePassword from 'generation-passwordjs';

let password = generatePassword({
  characterAmount: 12,
  includeUppercase: true,
  includeNumbers: true,
  includeSymbols: true,
});

Options

Any of these can be passed into the options object for each function.

NameDescriptionDefault Value
characterAmountamount of charcters in password.10
includeUppercaseuse the uppercase letters in password.false
includeNumbersuse the digits in password.true
includeSymbolsuse the symbols in password.false