1.1.4 • Published 2 years ago
svg-lhhhs v1.1.4
验证码 - 下载
npm i svg-lhhhs-S
验证码 - 使用
const http = require('http')
const captcha = require('svg-lhhhs-S')
http.createServer((req, res) => {
res.setHeader('content-type', 'text/html;charset=utf-8')
let temp = captcha.create()
res.end(temp.data)
}).listen(3000, () => {
console.log('启动成功, 访问 http://localhost:3000');
})