serein-svgcaptcha
v1.0.2
Published
这是一个验证码的仿写
Downloads
4
Readme
🌟验证码--小工具
下载❤️
npm i serein-svgcaptcha -S
使用🌹
const captcha = require('serein-svgcaptcha')
let temp = captcha.creat()
consle.log(temp)
结合HTTP使用
const http = require('http')
const captcha = require('serein-svgcaptcha')
http.createServer((req, res) => {
res.setHeader('content-type', 'text/html;charset=utf-8')
let temp = captcha.creat()
res.end(temp.data)
}).listen(3000, () => {
console.log('启动成功, 访问 http://localhost:3000');
})