
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.
no-use-data
Advanced tools
小程序评分--最佳实践(setData 操作会引起框架处理一些渲染界面相关的工作,一个未绑定的变量意味着与界面渲染无关,传入 setData 会造成不必要的性能消耗。得分条件:setData 传入的所有数据都在模板渲染中有相关依赖)
第一个参数:需要检测的目录 第二个参数:定义输出文件的地址及文件名称
"scripts": {
"no-use-data": " node ./node_modules/no-use-data/index.js \"./src\" \"./result.json\""
}
在项目根目录下运行命令 npm run no-use-data 或者 yarn no-use-data
第一个参数:需要检测的目录 第二个参数:定义输出文件的地址及文件名称
在项目根目录下运行命令 getNoUseData "./scr" "./script/result.json"
FAQs
获取定义在data中而没有使用的key
The npm package no-use-data receives a total of 0 weekly downloads. As such, no-use-data popularity was classified as not popular.
We found that no-use-data 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.