xiantou_svg-captcha
v1.0.0
Published
这是一个svg验证码模块
Downloads
3
Readme
下载
npm i xiantou_cvg-captcha -S
使用
const captcha = require('svg-captcha')
const http = require('http')
let c = captcha.create()
console.log(c);
http.createServer((req,res)=>{
res.setHeader('content-type',''text/html;charest=utf-8')
let c = captcha.create()
res.end(c.data)
}).listen(3000,console.log(
'web服务器启用成功','http://localhost:3000'
))