npm.io
1.1.3 • Published 2 years ago

@types/secure-random-string

Licence
MIT
Version
1.1.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

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

Summary

This package contains type definitions for secure-random-string (https://github.com/S2-/securerandomstring).

Details

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

index.d.ts

declare function srs(options?: srs.Options): string;
declare function srs(cb: srs.Callback): void;
declare function srs(options: srs.Options, cb: srs.Callback): void;

declare namespace srs {
    interface Options {
        length?: number | undefined;
        alphanumeric?: boolean | undefined;
    }

    type Callback = (error: Error | null, result?: string) => void;
}

export = srs;

Additional Details

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

Credits

These definitions were written by Dominik Korsa.