@qweme32/captcha
v1.0.2
Published
Captcha image generator for NodeJS
Downloads
7
Readme
Captcha
Install
npm i @qweme32/captcha
Example
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();