mistletoejiejie-captcha
1.0.1 • Public • Published
npm i mistletoejiejie-captcha -S
const captcha = require('mistletoejiejie-captcha')
let temp = captcha.create()
console.log(temp) // {text:'D3DS', data: '<svg></svg>'}
const http = require('http')
const captcha = require('mistletoejiejie-captcha')
const app = http.createServer((req, res) => {
res.setHeader('content-type', 'text/html;charset=utf-8')
let temp = captcha.create()
// console.log(temp) // {text:'D3DS', data: '<svg></svg>'}
res.end(temp.data)
})
app.listen(3000, () => {
console.log('启动成功, 访问 http://localhost:3000');
})
/mistletoejiejie-captcha/
//
Package Sidebar
Install
npm i mistletoejiejie-captcha
Weekly Downloads