
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@tntd/proxy-server
Advanced tools
====
nodejs开发的proxy服务,用于本地启动静态web服务
Usage: pss [command]
命令:
init 初始化proxy配置
config 修改proxy配置
start 启动本地web服务
Options:
-v, --version 显示版本号
-h, --help 显示帮助信息
npm i -g @tntd/proxy-server
如果没安装可以直接git clone 仓库
npm link 完就可以使用 pss 命令
进入项目目录
pss init
修改 proxy.json 配置
pss start
{
"name": "proxy-static-server", // 名称
"port": 3000, // 端口号
"staticDir": "./static", // 静态资源根目录
"index": "index", // 首页 模板(html)的名称
"ext": "html", //首页 模板(html) 后缀名
"templateDir": "./static", // 模板(html)目录位置
"proxyTable": { // 和 http-proxy-middleware 的配置一致
"/api": {
"target": "http://127.0.0.1:8080",
"changeOrigin": true,
"pathRewrite": {
"^/api": "/api"
}
},
}
}
FAQs
A terminal application provide proxy static server
We found that @tntd/proxy-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 open source maintainers 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.