laobacaptchaniubi
v1.1.4
Published
验证码小工具
Downloads
2
Readme
#from Laoba
下载
cnpm i laobacaptchaniubi -S
使用
const captcha=require('laobacaptchaniubi')
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')
})