rk-password-generator

1.0.1 • Public • Published


protect and manage passwords

rk-password-generator

A random password generator package for Node written entirely in JavaScript, with zero native dependencies.

Instructions use the package in your project

Prerequisites

Install the following prerequisite

NPM

Installation

  npm i rk-password-generator

Usage

To generate a random password with following requirements:

  • Minimum 1 Uppercase letters: A-Z.

  • Minimum 1 Lowercase letters: a-z.

  • Minimum 1 Numbers: 0-9.

  • Minimum 1 Special character: ~`! @#$%^&*()_-+={[}]|:;"'<,>.?/

  const rkPasswordGenerator = require('rk-password-generator')
  
  console.log(rkPasswordGenerator("rishikeshKale"))
  //AHTbl@322954
  
  console.log(rkPasswordGenerator("rk"))
  //Error: Invalid Username : Length must be greater than 3!
  
  console.log(rkPasswordGenerator(1234))
  //TypeError: Invalid Username : It must be of type string!

Package Sidebar

Install

npm i rk-password-generator

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.56 kB

Total Files

4

Last publish

Collaborators

  • rvk.rishikesh