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

1.1.2 • Public • Published

Installation

npm install --save @types/pwd-strength

Summary

This package contains type definitions for pwd-strength (https://github.com/rapomon/pwd-strength).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pwd-strength.

index.d.ts

interface PwdStrengthLanguageOptions {
    weak?: string | undefined;
    average?: string | undefined;
    strong?: string | undefined;
    secure?: string | undefined;
    minPasswordChar?: string | undefined;
    minPasswordChars?: string | undefined;
    minLowerChar?: string | undefined;
    minLowerChars?: string | undefined;
    minUpperChar?: string | undefined;
    minUpperChars?: string | undefined;
    minSpecialChar?: string | undefined;
    minSpecialChars?: string | undefined;
    maxConsecutiveRepeatingChars?: string | undefined;
}

interface PwdStrengthColorOptions {
    error?: string | undefined;
    weak?: string | undefined;
    average?: string | undefined;
    strong?: string | undefined;
    secure?: string | undefined;
}

interface PwdStrengthOptions {
    debug?: boolean | undefined;
    minUpperChars?: number | undefined;
    minLowerChars?: number | undefined;
    minSpecialChars?: number | undefined;
    minPasswordLength?: number | undefined;
    minNumberChars?: number | undefined;
    maxConsecutiveRepeatingChars?: number | undefined;
    lang?: PwdStrengthLanguageOptions | undefined;
    color?: PwdStrengthColorOptions | undefined;
}

interface PwdStrengthReturn {
    success: boolean;
    key: string;
    message: string;
    color: string;
}

declare function passwordStrength(password: string, options?: PwdStrengthOptions): PwdStrengthReturn;

export = passwordStrength;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Dave Lunny.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pwd-strength

Weekly Downloads

64

Version

1.1.2

License

MIT

Unpacked Size

5.43 kB

Total Files

5

Last publish

Collaborators

  • types