lst-captcha
v1.0.0
Published
验证码
Downloads
1
Readme
npm i lst-captcha -S
使用
const captcha = require('lst-captcha')
let C = captcha.create()
const http = require('http')
const captcha = require('lst-captcha')
http.createServer((req,res) => {
res.setHeader('content-type', 'text/html;charset=utf-8')
let C = captcha.create()
// console.log(C); // {text:"". data: svg}
res.end(C.data)
}).listen(3000,() => {
log('启动成功,访问: http://localhost:3000');
})