0.0.2 • Published 3 years ago

generate-password.js v0.0.2

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

Generate Password

A simple function for generating a password

const generatePassword = require('generate-password');

const password = generatePassword({
    // Specified the symbols in the password
    // Default: "qwertyuopasdfghjklizxcvbnm1234567890"
    symbols: "qwerts",
    
    // Specified the passwords length
    // Default: 10
    length: 15,

    // Specified the symbols just be lower case or not
    // Default: false
    justLowerCase: false,

    // Specified the symbols just be upper case or not
    // Default: false
    justUpperCase: false, 

    // Symbols randomly be lower or upper case    
    randomCase: true
})