1.0.5 • Published 2 years ago
xiaotengzi-captcha v1.0.5
下载
npm i xiaotengzi-captcha -S
使用
const http=require('http')
const captcha = require('xiaotengzi-captcha')
http.createServer((req,res)=>{
let temp=captcha.create('red',40,100,30)
res.setHeader('content-type','text/html;charset=utf-8')
res.end(temp)
}).listen(3000,()=>{
console.log('启动成功,访问:http://localhost:3000')
})