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