@dependabot/yarn-lib

中文文档
1.22.22发布于 2024/04/18BSD-2-Clause近 30 天下载 1.5万

📦🐈 Fast, reliable, and secure dependency management.

原始使用文档
文档目录6 节
  1. Features
  2. Installing Yarn
  3. Using Yarn
  4. Contributing to Yarn
  5. Prior art
  6. Credits

Yarn

Fast, reliable, and secure dependency management.

Circle Status Appveyor Status Azure Pipelines status Discord Chat Commitizen friendly


Fast: Yarn caches every package it has downloaded, so it never needs to download the same package again. It also does almost everything concurrently to maximize resource utilization. This means even faster installs.

Reliable: Using a detailed but concise lockfile format and a deterministic algorithm for install operations, Yarn is able to guarantee that any installation that works on one system will work exactly the same on another system.

Secure: Yarn uses checksums to verify the integrity of every installed package before its code is executed.

Features

  • Offline Mode. If you've installed a package before, then you can install it again without an internet connection.
  • Deterministic. The same dependencies will be installed in the same exact way on any machine, regardless of installation order.
  • Network Performance. Yarn efficiently queues requests and avoids request waterfalls in order to maximize network utilization.
  • Network Resilience. A single request that fails will not cause the entire installation to fail. Requests are automatically retried upon failure.
  • Flat Mode. Yarn resolves mismatched versions of dependencies to a single version to avoid creating duplicates.
  • More emojis. 🐈

Installing Yarn

Read the Installation Guide on our website for detailed instructions on how to install Yarn.

Using Yarn

Read the Usage Guide on our website for detailed instructions on how to use Yarn.

Contributing to Yarn

Contributions are always welcome, no matter how large or small. Substantial feature requests should be proposed as an RFC. Before contributing, please read the code of conduct.

See Contributing.

Prior art

Yarn wouldn't exist if it wasn't for excellent prior art. Yarn has been inspired by the following projects:

Credits

Thanks to Sam Holmes for donating the npm package name!

版本与发布记录

@dependabot/yarn-lib 共发布 26 个版本,首次发布于 2017/09/21;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.22.22latest2024/04/182 年前
1.22.192022/08/124 年前
1.21.12019/12/116 年前
1.21.02019/12/026 年前
1.19.22019/11/226 年前
1.19.12019/10/097 年前

关于 @dependabot/yarn-lib 的常见问题

@dependabot/yarn-lib 是什么?

📦🐈 Fast, reliable, and secure dependency management.

如何安装 @dependabot/yarn-lib?

在项目目录运行 npm install @dependabot/yarn-lib,或使用 pnpm add / yarn add / bun add。

@dependabot/yarn-lib 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dependabot__yarn-lib 是否存在。

@dependabot/yarn-lib 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=4.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@dependabot/yarn-lib 可以商用吗?

@dependabot/yarn-lib 使用 BSD-2-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@dependabot/yarn-lib 的下载量有多少?

根据 npm 官方下载统计,@dependabot/yarn-lib 在 2026/10/12 – 2026/11/10 这 30 天内被下载 14,603 次,日均约 487 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dependabot/yarn-lib 还在维护吗?

最新版本 1.22.22 发布于 2024/04/18(2 年前);至今共发布 26 个版本,其中过去 12 个月发布了 0 个;首次发布于 2017/09/21。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。