npm.io
0.2.3 • Published 2 years ago

@types/secure-random-password

Licence
MIT
Version
0.2.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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, 07 Nov 2023 1536 GMT
  • Dependencies: none

Credits

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