wylsvg-captcha
v1.0.4
Published
仿写的svg-captcha(验证码)模块
Downloads
8
Readme
###验证码--下载
npm i wylsvg-captcha -S
###验证码--使用
const svg=require('wylsvg-captcha')
let temp=svg.captcha()
console.log(temp)
###验证码--配合HTTP模块
const svg=require('wylsvg-captcha')
const http=require('http')
http.createServer((req,res)=>{
res.setHeader('content-type','text/html;charset=utf-8')
let temp=svg.captcha()
res.end('temp.data')
}).listen(3000,()=>{
console.log('启动成功,通过http://localhost:3000')
})