This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@stefanoruth/password-strength
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Password Strength

Easy to use password strength validator.

Build

Installation

yarn add @stefanoruth/password-strength

Usage

import { passwordStrength } from '@stefanoruth/password-strength'

const validation = passwordStrength('input-password', {
    min: 8,
    max: 40,
    lowercase: true,
    uppercase: true,
    numbers: true,
    symbols: true,
})

if (validation.valid) {
    // Password meets all criteria.
} else {
    // Password failed to meet all criteria.
    // See validation.errors for missing criterias.
}

Package Sidebar

Install

npm i @stefanoruth/password-strength

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

5.55 kB

Total Files

5

Last publish

Collaborators

  • stefanoruth