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); Copy
const result: CaptchaValueSync = createCaptchaSync(300, 100);fs.writeFileSync('captcha.png', result.image);console.log('Solution:', result.text);
The generated CAPTCHA image as a PNG buffer ready for saving or transmission
The text solution that users must enter to solve the CAPTCHA
Result object for synchronous CAPTCHA generation containing the image and solution text.
Example