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.
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: Wed, 18 Oct 2023 11:45:06 GMT
- Dependencies: none
Credits
These definitions were written by Bjørnar Snoksrud, and GaspardFRDev.