
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
vite-plugin-proxy-logger
Advanced tools
一个用于在开发环境中记录代理请求的 Vite 插件。
npm install vite-plugin-proxy-logger -D
# 或
yarn add vite-plugin-proxy-logger -D
# 或
pnpm add vite-plugin-proxy-logger -D
在你的 vite.config.ts 中配置:
import { defineConfig } from 'vite'
import { proxyLogger } from 'vite-plugin-proxy-logger'
export default defineConfig({
plugins: [
proxyLogger({
// 配置选项
verbose: true,
showHeaders: false,
showTiming: true,
})
],
server: {
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
}
}
}
})
| 选项 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| verbose | boolean | false | 是否显示详细日志 |
| showHeaders | boolean | false | 是否显示请求头信息 |
| showTiming | boolean | true | 是否显示响应时间 |
| formatter | (info: ProxyLogInfo) => string | undefined | 自定义日志格式化函数 |
| filter | (req: IncomingMessage) => boolean | () => true | 过滤特定请求的日志 |
你可以通过 formatter 选项自定义日志输出格式:
proxyLogger({
formatter: (info) => {
return `${info.method} ${info.url} -> ${info.target} (${info.duration}ms)`
}
})
使用 filter 选项来过滤特定的请求:
proxyLogger({
filter: (req) => {
// 只记录 GET 请求
return req.method === 'GET'
}
})
FAQs
一个用于在开发环境中记录查看代理请求的 Vite 插件。
The npm package vite-plugin-proxy-logger receives a total of 3 weekly downloads. As such, vite-plugin-proxy-logger popularity was classified as not popular.
We found that vite-plugin-proxy-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.