captcha-generator-dynamic-v2
v1.0.0
Published
An npm package to generate image-based CAPTCHAs encoded in Base64. This package uses the `jimp` library for image manipulation and `crypto` for generating random text.
Downloads
3
Readme
Image Captcha Generator
An npm package to generate image-based CAPTCHAs encoded in Base64. This package uses the jimp
library for image manipulation and crypto
for generating random text.
Installation
Install the package via npm:
npm install captcha-generator-dynamic-v2
## Usage
# For Example
const CaptchaGenerator = require("captcha-generator-dynamic-v2");
let width = 250;
let height = 200;
let length = 6;
const captcha = new CaptchaGenerator(width, height, length);
captcha.generateCaptcha((base64Image) => {
console.log(base64Image);
});