UNPKG

otp-generator-module

Version:

A simple and flexible OTP (One-Time Password) generator module for JavaScript and TypeScript. Supports numeric, alphabetic, and special character combinations with customizable options.

8 lines (7 loc) 199 B
export interface OTPOptions { upperCase?: boolean; alphabets?: boolean; specialChars?: boolean; length?: number; } export declare const generateOTP: (options?: OTPOptions) => string;