Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@xdp/generate-api
Advanced tools
根据 apiDocs 生成api部分代码
# npm 安装
npm install -g @xdp/generate-api
在config文件夹下创建api-config.js
// config/api-config.js
module.exports = [
{
key: 'apiName', // proxy-config中的apiName
target: 'name', // apiDocs所在路径
dir: 'name', // 生成代码在src/api的文件夹名称
beforeRequest: ()=> { // 非必填, 当获取json时需要登录地址时可配, 需要返回请求文档时的配置 如 { cookie: 'token'}
}
}
]
# 在项目根目录执行
gen-api
FAQs
> 根据 apiDocs 生成api部分代码
The npm package @xdp/generate-api receives a total of 3 weekly downloads. As such, @xdp/generate-api popularity was classified as not popular.
We found that @xdp/generate-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.