Skip to content

Commit

Permalink
Merge pull request #58 from deanilvincent/releases/v2.0.4
Browse files Browse the repository at this point in the history
Releases/v2.0.4
  • Loading branch information
deanilvincent authored Feb 9, 2022
2 parents 961e443 + 21ce4c2 commit bd3e738
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ A simple way to check that password strength of a certain passphrase. A password

[![Downloads](https://img.shields.io/npm/dt/check-password-strength.svg)](https://img.shields.io/npm/dt/check-password-strength.svg)

[DEMO here](https://check-password-strength.netlify.app/)
[DEMO 1](https://svelte.dev/repl/b5bf5871c99742e584da244b4bfeac92?version=3.44.3) by [@Ennoriel](https://github.com/Ennoriel)

[DEMO 2](https://check-password-strength.netlify.app/)

## Installation

Expand Down Expand Up @@ -122,7 +124,7 @@ To override the default options, simply pass your custom array as the second arg
- minDiversity: between 0 and 4, correspond to the minimum of different criterias ('lowercase', 'uppercase', 'symbol', 'number') that should be met to pass the password strength
- minLength: minimum length of the password that should be met to pass the password strength

The minDiversity and minLength parameters of the first element cannot be overriden (set to 0 at the beginning of the method). Therefore, the first element should always correspond to a "too weak" option.
The `minDiversity` and `minLength` parameters of the first element cannot be overriden (set to 0 at the beginning of the method). Therefore, the first element should always correspond to a "too weak" option.

```javascript
passwordStrength('myPassword', yourCustomOptions)
Expand Down

0 comments on commit bd3e738

Please sign in to comment.