pg-password-generator
v1.4.1
Published
Password Generator
Downloads
5
Maintainers
Readme
Password Generator
This is a Random Password Generator
Installation
npm i pg-password-generator
Usage
CommonJS
// The function accepts numbers between 8 - 20
const generator = require('pg-password-generator');
console.log(generator.generate()); // Default password = 10 characters
console.log(generator.generate(5)); // Invalid - to short
console.log(generator.generate(15)); // Valid
console.log(generator.generate(25)); // Invalid - to long