1.1.2 • Published 6 months ago

@types/pwd-strength v1.1.2

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

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

// Type definitions for pwd-strength 1.1
// Project: https://github.com/rapomon/pwd-strength
// Definitions by: Dave Lunny <https://github.com/himynameisdave>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 16 Sep 2021 23:01:23 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Dave Lunny.

1.1.1

7 months ago

1.1.2

6 months ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago