1.1.6 • Published 10 months ago

password-strong v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Password Strength Check And Strong Password Generation

  • Checking the entered password and recommending a strong password.

Table of Contents

Introduction

  • According to what features the password is weak, a strong password is generated according to the user's input.

Features

  • Checking the strength of the password.
  • Setting a strong password similar to the password entered by the user.
  • Automatic generation of a strong password if no password is passed as an argument.

Installation

Clone the repository:

Install dependencies:

  • cd password-strong
  • npm install

Usage

const password = "hello";
const checkGeneratePassword = checkGenerate(password);
console.log(checkGeneratePassword)

{
  error: true,
  message: 'It did not pass validations: uppercase, number, character, length.',
  recommendedPassword: 'Hello4*.'
}

const password = "Hello4*.";
const checkGeneratePassword = checkGenerate(password);
console.log(checkGeneratePassword)

{ 
  error: false, 
  message: 'Password is strong.' 
}

const checkGeneratePassword = checkGenerate();
console.log(checkGeneratePassword)

{ 
  generatedPassword: ')j4FrI0O(SKz' 
}

Contributing

  • If you would like to contribute code, please fork this repository, make your changes, and then submit a pull-request.

License

  • This project is licensed under the MIT License. See the license file for more information.
1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago