1.0.5 • Published 1 year ago
@os-team/password-score v1.0.5
@os-team/password-score
Calculates a password strength score.
Usage
Install the package
Install the package using the following command:
yarn add @os-team/password-score
Simple usage
import getPasswordScore from '@os-team/password-score';
const passwordScore = getPasswordScore('password'); // 38
The following thresholds can be used to determine the strength of a password:
[score] < 30
– weak.30 ≤ [score] < 60
– good.60 ≤ [score] < 80
– strong.[score] ≥ 80
– powerful.
Based on this answer.