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

    Interface CaptchaValueSync

    Result object for synchronous CAPTCHA generation containing the image and solution text.

    const result: CaptchaValueSync = createCaptchaSync(300, 100);
    fs.writeFileSync('captcha.png', result.image);
    console.log('Solution:', result.text);
    interface CaptchaValueSync {
        image: Buffer;
        text: string;
    }
    Index

    Properties

    Properties

    image: Buffer

    The generated CAPTCHA image as a PNG buffer ready for saving or transmission

    text: string

    The text solution that users must enter to solve the CAPTCHA