xiaozhi-xx-captcha
v1.0.2
Published
验证码
Downloads
6
Maintainers
Readme
#下载
npm i xiaozhi-xx-captcha -S
#使用 结合http模块
const http = require('http')
const captcha = require('xiaozhi-xx-captcha')
http.createServer((req,res)=>{
res.setHeader('content-type','text/html;charset=utf-8');
let temp = captcha.create('100','100','red','50px')
res.end(temp.data)
}).listen(3000,()={console.log('http://localhost:3000')})