1.0.6 • Published 1 year ago
svg-http-byp v1.0.6
下载
npm i svg-http-byp -S
使用
导入 const captcha = require('svg-http-byp')
导入模块 const http = require('http');
创建web服务器 const app = http.createServer((req,res)=>{
设置请求头
res.setHeader('content-type',"text/html;charset=utf-8");
获取数据
read.end(captcha.yanZhenMa());
})
启动 app.listen(3000,()=>{ console.log("http://localhost:3000"); })