0.3.7 • Published 2 years ago
pv-console-serve v0.3.7
koa-bot
介绍
统计点击量和爬虫的Koa插件,自带ui
软件架构
koa
安装教程
yarn add pv-console-serve
npm i pv-console-serve
使用说明
const KoaPVLogger=require("pv-console-serve");
app.use(KoaPVLogger({
//路由默认启用
router: defaultRouter,
dirpath: "",
//是否屏蔽
darkClose: false,
//只允许移动设备访问
bot_mobile: false,
//IP黑名单路径
bot_dark_ip_Path: "",
//ua黑名单路径
bot_dark_ua_Path: "",
//允许访问国家
bot_country_codes: [],
//允许通过的常规请求
bot_methods: ["post", "get", "head"],
//开发时的ip,发布需要去掉
dev_ip: "",
//开发是的ua,发布需要去掉
dev_ua: "",
//登录了管理面板的IP可以访问前台
admin_visit: true,
//是否开启日志接口 默认开启
web_log: true,
//前端日志目录 /web_logs
web_log_router: defaultWebLogsRouter,
//前端日志目录 process.cwd() + "/web_logs"
web_log_path: defaultWebLogsPath
}));
全部参数
//路由默认启用
router: defaultRouter,
dirpath: "",
//是否屏蔽
darkClose: false,
//爬虫重定向?
dark_redirect: "",
//只允许移动设备访问
bot_mobile: false,
//IP黑名单路径
bot_dark_ip_Path: "",
//ua黑名单路径
bot_dark_ua_Path: "",
//允许访问国家
bot_country_codes: [],
//允许通过的常规请求
bot_methods: ["post", "get", "head"],
//开发时的ip,发布需要去掉
dev_ip: "",
//开发是的ua,发布需要去掉
dev_ua: "",
//登录了管理面板的IP可以访问前台
admin_visit: true,
//是否开启日志接口 默认开启
web_log: true,
//前端日志目录 /web_logs
web_log_router: defaultWebLogsRouter,
//前端日志目录 process.cwd() + "/web_logs"
web_log_path: defaultWebLogsPath
0.3.7
2 years ago
0.3.6
2 years ago
0.3.5
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago