lu116-captcha
v1.0.9
Published
仿写验证码模块
Downloads
12
Readme
下载
npm i lu116-captcha -S
使用
const captcha = require("lu116-captcha") const http = require("http") const app = http.createServer((req, res) => { res.setHeader("content-type","text/html;charset=utf-8") res.end(captcha.randomCaptcha().data) }) app.listen(3000, () => { console.log("http://localhost:3000"); })