persian-captcha-generator
Version:
A library for generating customizable captchas with Persian numbers and alphabets using node-canvas.
17 lines (16 loc) • 551 B
TypeScript
interface PersianCaptchaGeneratorOptions {
width?: number;
height?: number;
length?: number;
backgroundColor?: string;
textColor?: string;
fontSize?: number;
lineCount?: number;
dotCount?: number;
characterSet?: "numbers" | "alphabets" | "both";
}
export declare function persianCaptchaGenerator({ width, height, length, backgroundColor, textColor, fontSize, lineCount, dotCount, characterSet, }: PersianCaptchaGeneratorOptions): Promise<{
text: string;
imageBuffer: Buffer<ArrayBufferLike>;
}>;
export {};