0.0.3 • Published 5 years ago

easy-password-generator v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

easy-password-generator

What is this?

The easy-password-generator generate simple passwords with a self choosen length and self choosen combination of digits and characters

Install

npm i easy-password-generator

How to use it?

const easyPasswordGenerator = require('easy-password-generator')

// use the object to interact with the module
const options = {
  length: 10,
  digits: true,
  letters: true,
  letterCase: {
    upperCase: true,
    lowerCase: true
  }
}

// fire the object with the function
const password = easyPasswordGenerator(options)

// console output for testing: boolean
console.log(password)

Options (input / output)

Input

ParameterTypeDescription
lengthnumbersThe lenght of the password
digitsbooleanPut digits in password
lettersbooleanPut letters in password
lettersCase: upperCasebooleanUppercase?
lettersCase: lowerCasebooleanLowercase?

Output

TypeDescription
stringReturn the generated password

License

MIT