Yarn

快速、可靠和安全的依赖关系管理。(Fast, reliable, and secure dependency management. )

Github stars Tracking Chart

Yarn 是您的代码的包管理器。 它允许您与来自世界各地的其他开发人员使用和共享代码。Yarn 快速,安全,可靠地做到这一点,所以你不必担心。

Yarn 允许您使用其他开发人员的解决方案来解决不同的问题,从而更轻松地开发您的软件。 如果您有问题,您可以报告问题或回馈问题,当问题解决时,您可以使用Yarn来保持最新状态。
代码通过称为包(有时称为模块)的东西共享。 一个包包含所有共享的代码以及一个描述包的package.json文件。

Yarn —— 快速、可靠和安全的依赖关系管理。

  • 快速:Yarn缓存下载的每个包,所以它不需要再次下载同一个包。它还并行化操作以最大限度地利用资源,因此安装时间比以往任何时候都快。
  • 可靠:使用详细,简洁的锁定文件格式和安装的确定性算法,Yarn能够保证在一个系统上工作的安装在任何其他系统上的工作方式完全相同。
  • 安全:Yarn在执行代码之前使用校验和来验证每个已安装软件包的完整性。

特性:

  • 离线模式。如果您以前安装了软件包,则可以重新安装它,而无需任何互联网连接。
  • 确定性。不管安装顺序如何,相同的依赖关系将以相同的方式安装在任何机器上。
  • 网络性能。Yarn有效地排队请求,并避免请求瀑布,以最大限度地提高网络利用率。
  • 网络弹性。单个请求失败不会导致安装失败。请求在失败时重试。
  • 平模式。Yarn 将不匹配的依赖关系版本解析为单个版本,以避免创建重复。
  • 更多的emojis。

Overview

Name With Ownergulpjs/gulp
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
Release Count23
Last Release Namev5.0.0 (Posted on )
First Release Name3.4 (Posted on )
Created At2013-07-04 05:26:06
Pushed At2024-04-08 04:15:11
Last Commit At2024-04-07 21:15:08
Stargazers Count32.9k
Watchers Count1k
Fork Count4.2k
Commits Count1.2k
Has Issues Enabled
Issues Count1915
Issue Open Count18
Pull Requests Count405
Pull Requests Open Count2
Pull Requests Close Count269
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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!

To the top