little-open-captcha
v1.0.0
Published
简单的图形验证码
Downloads
1
Readme
下载
cnpm i little-open-captcha -S
使用
const captcha=require('little-open-captcha')
const http=require('http')
const app=http.createServer((req,res)=>{
res.setHeader('content-type','text/html;charset=utf-8')
let temp=captcha.create()
res.end(temp.data)
})
app.listen(3000,res=>{
console.log('访问成功,http://localhost:3000')
})