Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

lib-pass-gen

sctinmarius34ISC1.0.3TypeScript support: included

helps users to generate strong passwords by length and type of content

password, generate passwords, strong passwords, secure passwords

readme

lib-pass-gen

Description

This is a JavaScript library that can help you to generate a secure password by importing only a function and passing the length of the password and the type of the characters that can be upperCase, lowerCase, number and symbol.

Examples

import generatePassword from 'lib-pass-gen'

const options = {
  maxLength: 10,
  isUpperCase: true,
  isLowerCase: true,
  isNumber: true,
  isSymbol: false
}

const strongPassword = generatePassword(options) // sI%1x[8tRL