21.4 Yarn
Yarn was Facebook’s answer to a number of npm’s problems. Following are the core features of Yarn:
-
Ultra fastYarn has a package cache. This means a package only needs to be downloaded once. Each subsequent installation will then use the package from the local cache. In addition, Yarn is able to parallelize downloads of packages, thus further speeding up the installation process.
-
Mega secureYarn contains a yarn.lock file that stores the checksums of the installed packages. These checksums are used to ensure the integrity of the installation.
-
Super reliableNot only does the yarn.lock file serve the purpose of ensuring the integrity of the installation, it also makes sure that the installation of the dependencies will produce ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access