MCPcopy
hub / github.com/yarnpkg/yarn

github.com/yarnpkg/yarn @v1.22.22 sqlite

repository ↗ · DeepWiki ↗ · release v1.22.22 ↗
1,423 symbols 4,353 edges 489 files 125 documented · 9%
README

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!

Extension points exported contracts — how you extend this code

GitRefResolvingInterface (Interface)
(no doc) [4 implementers]
src/util/git/git-ref-resolver.js
Prompt (Interface)
(no doc)
flow-typed/npm/inquirer_v2.x.x.js
RequestError (Interface)
(no doc)
src/util/request-manager.js

Core symbols most depended-on inside this repo

lang
called by 369
src/reporters/base-reporter.js
push
called by 219
src/util/blocking-queue.js
run
called by 139
packages/pkg-tests/pkg-tests-core/sources/utils/tests.js
parse
called by 136
src/lockfile/parse.js
log
called by 117
src/reporters/base-reporter.js
makeTemporaryEnv
called by 112
packages/pkg-tests/pkg-tests-core/sources/utils/tests.js
resolve
called by 105
src/cli/commands/import.js
readJson
called by 98
src/config.js

Shape

Function 637
Method 621
Class 162
Interface 3

Languages

TypeScript100%

Modules by API surface

src/reporters/base-reporter.js44 symbols
src/reporters/console/console-reporter.js43 symbols
src/cli/commands/import.js40 symbols
src/cli/commands/install.js35 symbols
src/reporters/noop-reporter.js34 symbols
src/config.js33 symbols
src/package-resolver.js31 symbols
src/package-hoister.js31 symbols
src/reporters/json-reporter.js28 symbols
src/util/git.js27 symbols
src/util/fs.js24 symbols
src/package-linker.js23 symbols

Dependencies from manifests, versioned

//['This is a', 'multi · 1×
@angular-mdl/core4.0.0 · 1×
@angular/core2.4.9 · 1×
@dengorbachev/bar1.0.0 · 1×
@dengorbachev/foo1.0.0 · 1×
@fakescope/fake-dependency1.0.1 · 1×
@scoped/afile:../scoped-a1 · 1×
@scoped/bfile:../scoped-b2 · 1×
@sub/w2* · 1×
@turf/helpers3.0.16 · 1×
@turf/tin3.7.0 · 1×
@types/lodash4.14.37 · 1×

For agents

$ claude mcp add yarn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact