1.0.9 • Published 2 years ago
lu116-captcha v1.0.9
下载
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"); })