UNPKG

n-digit-token

Version:

Cryptographically secure pseudo-random token of n digits

11 lines (10 loc) 408 B
/** Default size of byte buffer to be generated */ export declare const DEFAULT_BYTE_SIZE = 64; /** 'bigint' return type */ export declare const BIGINT = "bigint"; /** 'number' return type */ export declare const NUMBER = "number"; /** Legacy 'integer' return type, equivalent to using 'number' */ export declare const INTEGER = "integer"; /** 'string' return type */ export declare const STRING = "string";