password-generator-service

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i password-generator-service

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

4.62 kB

Total Files

4

Last publish

Collaborators

  • aniketchougule