@types/secure-random-string
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Dominik Korsa.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/secure-random-string

Weekly Downloads

792

Version

1.1.3

License

MIT

Unpacked Size

3.42 kB

Total Files

5

Last publish

Collaborators

  • types