wylsvg
v2.0.2
Published
仿写的svg
Downloads
17
Readme
###验证码--下载
npm i wylsvg -S
###验证码--使用
const svg=require('wylsvg')
let temp=svg.captcha()
console.log(temp)
###验证码--配合HTTP模块
const svg=require('wylsvg')
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(3300,()=>{
console.log('启动成功,通过http://localhost:3300')
})