password-generator-service
v1.0.2
Published
'password-generator-service' is simple one time random and unique password generator and can be used as password generator.
Downloads
1
Maintainers
Readme
password-generator-service
An PASSWORD generator package for node js.
A highly customizable and easy to use PASSWORD Generator in Javascript. Just import the package and send your inputs. It will generate random and unique passwords.
Written in ES5/ES6 for maximum compatibility.
Install
npm install password-generator-service
Usage
To generate PASSWORD
generatePassword() it takes two parameters, first one is length of password and second is boolean where, false returns small alphabets and true returns capital aphabets as well as symbols.
let services = require("password-generator-service");
let password = services.generatePassword(8, false); // any digit 4, 6, 8,...
console.log('password', password);
Output: password an2ik2et
By default generatePassword() generates 6 digits password.
let services = require("password-generator-service");
let password = services.generatePassword();
console.log('password', password);
Output: password a0ni6c
License
MIT