captcha-canvas API Documentation - v3.3.4
    Preparing search index...

    Variable defaultCaptchaOptionConst

    defaultCaptchaOption: SetCaptchaOption = ...

    Default configuration for CAPTCHA text generation and appearance.

    These settings provide secure defaults suitable for most use cases, generating 6-character random text with moderate visual distortions that balance security against readability.

    const captcha = new CaptchaGenerator();
    // Uses defaultCaptchaOption settings automatically
    const captcha = new CaptchaGenerator()
    .setCaptcha({
    ...defaultCaptchaOption,
    characters: 8, // Override just the length
    size: 50 // Override just the size
    });