
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
file-static-server-start
Advanced tools
简易静态资源服务器,运行后在当前目录启动监听。

yarn global add file-static-server-start
fss
即在当前目录启动监听,浏览器打开http://127.0.0.1:5544/[xxx]即可下载文件,其中xxx是当前文件夹下的文件名。
对于一个普通的node项目,使其可执行需要如下配置:
#!/usr/bin/env node
"bin": {
"fss": "dist/index.js"
},
会安装以一个fss的命令
tsc
npm login
注:重名的包发布会报403错误
修改后升级再发布:
npm version patch
npm publish
yarn global add my-xxx
运行bin字段对应的命令即可。
FAQs
> 简易静态资源服务器,运行后在当前目录启动监听。
We found that file-static-server-start 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.