captcha33
v1.0.0
Published
svg-captcha33
Readme
导入
const http = require('http') const svgCaptcha = require('svg-captcha')
使用
http.createServer((req, res) => { let captcha = svgCaptcha.create() // console.log(captcha); // {data, text}
res.setHeader("content-type", "image/svg+xml");
res.end(captcha.data)}).listen(3000, () => { console.log('启动成功, 访问测试 http://localhost:3000'); })
