1.0.3 • Published 2 years ago
svg-captcha-amoureux555 v1.0.3
随机验证码
下载🙆♂️
npm i svg-captcha-amoureux555 -S
或
npm i svg-captcha-amoureux555 -g
全局命令
captcha
使用🙆♀️
导入模块
const http = require('http')
const random = require('svg-captcha-amoureux555')
const server = http.createServer((req,res)=>{
res.setHeader('content-type','text/html;charset=utf-8')
let captcha = random.create();
res.end(captcha.data)
})
server.listen(3001,()=>{
console.log('启动成功 可以使用验证码 http://localhost:3001');
})