expo-password-strength-checker
v1.0.1
Published
A simple JavaScript utility to check password strength based on common security rules.
Maintainers
Readme
expo-password-strength-checker
A simple JavaScript utility to check password strength based on common security rules.
Features
- Checks password length
- Detects uppercase and lowercase letters
- Detects numbers
- Detects special characters
- Returns a score and strength label
Installation
npm install expo-password-strength-checkerUsage
import passwordStrength from "expo-password-strength-checker";
const result = passwordStrength("MyPassword@123");
console.log(result);Example Output
{
score: 5,
label: "Very Strong"
}API
passwordStrength(password)
Checks the strength of a password.
Parameters:
password(string) – The password to evaluate.
Returns:
{
score: number,
label: string
}License
MIT
