1.1.6 • Published 4 months ago
simple-pass-generator v1.1.6
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.
How to load the installed package
const simplePassGenerator = require('simple-pass-generator')
Usage
const myPassword = simplePassGenerator.getRandomPass(5, 'letters')
//the password will consist of 5 upper and lower case letters (dZdQc)
const myPassword = simplePassGenerator.getRandomPass(5, 'letters', 'numbers')
//the password will consist of 5 upper and lower case letters and numbers (u87V9)
const myPassword = simplePassGenerator.getRandomPass(5, 'letters', 'symbols', 'numbers')
//the password will consist of 5 upper and lower case letters, symbols and numbers (!EcA4)