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.
@xtdev/swaggerv2-to-ts
Advanced tools
一个将swagger v2.0 转换成TS接口服务工具
yarn @xtdev/swaggerv2-to-ts -D 或者
npm install @xtdev/swaggerv2-to-ts -D
cd project-name
npx swagger2ts start your-swagger-json-url
执行完成后,会在根目录下生成temp/service.ts目标文件;
确保根目录下处在temp文件夹(当然也可根据参数配置输出文件路径)
命令 | 参数 | 默认值 | 备注 |
---|---|---|---|
start | './temp/service.ts' | 生成输出文件路径(.ts结尾) | |
-p | '' | 指定需要生成的接口名称以【,】分割 (user/login,user/add) | |
-o | ./temp/service.ts | 生成输出文件路径(.ts结尾) |
npx swagger2ts start https://service.baidu.com/api/v2/api-docs -p /checkAccount/down,/checkAccount/quarterOptions -o ./tempService.ts
FAQs
将swagger V2.0 转换成TS接口服务
The npm package @xtdev/swaggerv2-to-ts receives a total of 2 weekly downloads. As such, @xtdev/swaggerv2-to-ts popularity was classified as not popular.
We found that @xtdev/swaggerv2-to-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.