2.0.0 • Published 2 years ago
httpwangye-captcha v2.0.0
验证码 -下载
npm i httpwangye-captcha -s
例证:s使用
、、、
const captcha = require(' httpwangye-captcha') let temp = captcha.create() console.log(temp) 、、、
例证:结合 http
、、、 const http = require('http') const captcha = require(' httpwangye-captcha') http.createServer((req,res)=>{ let temp = captcha.create() res.end(temp.data)
}).listen(3000,()=>{ console.log('启动成功,访问 http://localhost:3000'); }) 、、、