1.0.3 โข Published 2 years ago
cxk-captcha v1.0.3
ไธ่ฝฝ๐บ๐:
npm i cxk-captcha -S
ไฝฟ็จ๐๐๏ผ
const captcha = require('cxk-captcha');
let temp = captcha.create();
็ปๅHTTPๆจกๅ๐๐
const http = require('http')
const captcha = require('cxk-captcha')
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');
})