4.0.2 • Published 6 months ago

password-validator-react v4.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

const result = isStrongPassword(password, options);

if (result.isValid) { console.log("Password is strong and meets all criteria."); } else { console.log("Password validation failed. Reasons:"); result.messages.forEach(message => { console.log(message); }); }

    </ol>
</section>
<section id="config">
    <h2>Configuration Options</h2>
    <p>You can configure the password validation by specifying the following options in the `options` object:</p>
    <ul>
        <li><b>minUppercase:</b> Minimum number of uppercase letters.</li>
        <li><b>minLowercase:</b> Minimum number of lowercase letters.</li>
        <li><b>minDigits:</b> Minimum number of digits.</li>
        <li><b>minSpecialChars:</b> Minimum number of special characters (e.g., !@#$%^&*()_+{}[]:;<>,.?~/-).</li>
        <li><b>minLength:</b> Minimum password length.</li>
    </ul>
</section>
<section id="license">
    <h2>License</h2>
    <p>This package is licensed under the MIT License. Feel free to use and contribute to it.</p>
</section>
4.0.2

6 months ago