JSPM

easy-password-generator

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q25744F
  • License MIT

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

Package Exports

  • easy-password-generator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (easy-password-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

Parameter Type Description
length numbers The lenght of the password
digits boolean Put digits in password
letters boolean Put letters in password
lettersCase: upperCase boolean Uppercase?
lettersCase: lowerCase boolean Lowercase?

Output

Type Description
string Return the generated password

License

MIT