1.0.2 • Published 2 years ago
@qweme32/captcha v1.0.2
Captcha
Install
npm i @qweme32/captchaExample
const { Captcha } = require("@qweme32/captcha");
const captcha = new Captcha({
    width: 250,
    height: 75,
    color: "#111",
    font: {
        family: "font",
        size: 40,
        path: "font.otf",
        color: "#fff"
    }
})
// Save
captcha.create({ length: 6, uppercase: true }).save("./captcha.png");
// For web ( base64 )
captcha.create({ length: 6, uppercase: true }).base64();