1.0.5 • Published 2 years ago
wyb-svg-captcha v1.0.5
##⭐ 验证码小工具 下载
cnpm i wyb-svg-captcha -S
##⭐ 验证码小工具 使用
const captcha = require('wyb-svg-captcha')
let temp = captcha.create()
##⭐ 验证码小工具 结合http模块
const http = require('http')
const captcha = require('wyb-svg-captcha')
http.createServer((req,res)=>{
res.setHeader('content-type','text/html;charset=utf-8')
let temp = captcha.create(背景宽度,背景高度,背景颜色格式(*,*,*),边框颜色格式:(*,*,*),文字颜色)
res.end(temp.data)
}).listen(3000,()=>{
console.log('启动成功,测试: http://localhost:3000')
})