1.0.2 • Published 2 years ago
svg-captcha-one v1.0.2
👇下载
npm i svg-captcha-one -S
📕使用 N0.1
const captcha = require('svg-captcha-one')
let temp = captcha.create()
console.log(temp)
📕使用 NO.2
const http = require('http')
const captcha = require('svg-captcha-one')
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');
})