1.0.1 • Published 5 months ago

simple-pass-generator v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Random Password Generator

Easy-to-use random password generator

Install

    $ npm install simple-pass-generator

How to use

Note: the first parameter means the number of characters in the password. The second, third and fourth parameters define what the password will consist of. They should be defined as: numbers, letters, symbols.

For example:

    const simplePassGenerator = require('simple-pass-generator')

    const result = simplePassGenerator.getRandomPass(5, 'letters')
    //the password will consist of 5 upper and lower case letters (dZdQc)

    const result = simplePassGenerator.getRandomPass(5, 'letters', 'numbers')
    //the password will consist of 5 upper and lower case letters and numbers (u87V9)

    const result = simplePassGenerator.getRandomPass(5, 'letters', 'symbols', 'numbers')
    //the password will consist of 5 upper and lower case letters, symbols and numbers (!EcA4)
1.0.1

5 months ago

1.0.0

5 months ago