PackagePhobia——查找在你的项目中添加新的开发者依赖项的成本
PackagePhobia – Find the cost of adding a new dev dependency to your project

原始链接: https://packagephobia.com/

什么是包恐惧症?包恐惧症会在你安装 npm 包之前报告其大小。这对于检查潜在的依赖项或 devDependencies 非常有用,无需占用宝贵的磁盘空间或等待 npm install 数分钟。 什么是“发布大小”与“安装大小”? “发布大小”是发布到 npm 的源代码的大小。这个数字很容易检测到,通常非常小。 “安装大小”是运行 npm install 后硬盘会报告的大小。这包括包本身、所有依赖项及其依赖项的依赖项……等等。 详情请参阅自述文件。

Hacker News 上正在讨论 PackagePhobia,这是一个用于评估添加新的开发依赖项影响的工具。该工具显示一个图表,展示每个版本的体积变化。评论者 mubou 建议将“发布大小”明确为“含依赖项”或“不含依赖项”,以便更好地理解。Mubou 还批评了由于 `min-height: 100vh` 设置而将信息隐藏在屏幕下方(屏幕外)的设计选择。另一位用户 cebert 认可了这个概念,但建议纳入其他成本考量,例如 CVE 的补丁频率、下游依赖项的数量以及重大更改的频率。该讨论帖还包含一条 AI 初创公司学校的推广信息。

原文

What is Package Phobia?

Package Phobia reports the size of an npm package before you install it.

This is useful for inspecting potential dependencies or devDependencies without using up precious disk space or waiting minutes for npm install.

What is "publish size" vs "install size"?

The "publish size" is the size of the source code published to npm. This number is easy to detect and is typically very small.

The "install size" is the size your hard drive will report after running npm install. This includes the package, all of the dependencies, and its dependency's dependencies...and so on.

See the README for more info.

联系我们 contact @ memedata.com