npmsafe:使用 npm 安全

时间:2024-07-07 07:37:26
【文件属性】:

文件名称:npmsafe:使用 npm 安全

文件大小:15KB

文件格式:ZIP

更新时间:2024-07-07 07:37:26

JavaScript

npmsafe 使用 npm 安全 问题 npm 存储库可能包含一些有害的包, 这些包可能会保护它们使用一些与流行包相似的词, 例如goodjs到good-js ,但good-js可能包含有害代码。 解决方案 使用npmsafe代替npm 獾 安装 通过 npm: npm i npmsafe -g 通过 GitHub: git clone git@github.com:ueqt/npmsafe.git cd npmsafe npm link 卸载 npm remove npmsafe -g 发布 npm publish 用法 npmsafe xxx 支持 npm 支持的所有命令和参数。 例子: $ npmsafe install express npmsafe check cd 到包含 package.json 的文件夹,此命令将检查 package.json 中的包。 如


【文件预览】:
npmsafe-master
----.gitattributes(12B)
----lib()
--------whitelistManager.js(2KB)
--------downloadManager.js(369B)
--------whiteList.js(2KB)
--------npmManager.js(184B)
--------index.js(5KB)
----.travis.yml(139B)
----LICENSE(18KB)
----README.md(2KB)
----data()
--------whitelist.json(786B)
--------version.json(56B)
----.editorconfig(222B)
----.gitignore(594B)
----bin()
--------npmsafe(57B)
----package.json(610B)

网友评论