0.2.3 • Published 7 months ago

@types/secure-random-password v0.2.3

Weekly downloads
1,809
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/secure-random-password

Summary

This package contains type definitions for secure-random-password (https://github.com/rackerlabs/secure-random-password).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-password.

index.d.ts

// Type definitions for secure-random-password 0.2
// Project: https://github.com/rackerlabs/secure-random-password
// Definitions by: Bjørnar Snoksrud <https://github.com/bjornars>
//                 GaspardFRDev <https://github.com/GaspardFRDev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export const lower: string;
export const upper: string;

export const consonants: string;
export const vowels: string;
export const digits: string;

export const symbols: string;
export const copyableSymbols: string;
export const fullSymbols: string;

export interface RandomPasswordCharactersSet {
    characters: string;
    exactly?: number | undefined;
}

export interface RandomPasswordOptions {
    avoidAmbiguous?: boolean | undefined;
    characters?: string | RandomPasswordCharactersSet | Array<(RandomPasswordCharactersSet | string)> | undefined;
    length?: number | undefined;
    predicate?: ((result: string) => boolean) | undefined;
}

export function randomPassword(options?: RandomPasswordOptions): string;
export function randomString(options?: RandomPasswordOptions): string;

Additional Details

  • Last updated: Tue, 06 Jul 2021 16:34:27 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Bjørnar Snoksrud, and GaspardFRDev.

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

3 years ago

0.2.0

4 years ago

0.1.0

5 years ago