Password Generator takes 4 parameters along with length as an input and generates password according to the parameters.
const {generatePassword} = require("password-generator-v1");
const options = {
includeLowercase: true,
includeUppercase: true,
includeNumbers: true,
includeSpecialChars: true
};
const password = generatePassword(12, options);
console.log(password);
Hi, I am Anubhav Ghosh passionate C++ and MERN Stack developer.