# Yarn Patch

**Canonical:** https://apis.io/apis/yarn-pkg/yarn-patch/  
**Provider:** Yarn — https://apis.io/providers/yarn-pkg/  
**Documentation:** https://yarnpkg.com/cli/patch

Yarn Patch is one of 10 APIs that [Yarn](https://apis.io/providers/yarn-pkg/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Dependency Customization and JavaScript. The published artifact set on APIs.io includes API documentation.

First-class dependency patching — `yarn patch <package>` extracts a temporary editable copy of a dependency and `yarn patch-commit` saves the resulting diff as a `patch:` protocol entry in the lockfile. Eliminates the need for patch-package as a separate tool.

## Machine-readable artifacts (2)

- **Documentation** — https://yarnpkg.com/cli/patch
- **Documentation** — https://yarnpkg.com/cli/patch-commit

## Other Yarn APIs (9)

- [Yarn CLI](https://apis.io/apis/yarn-pkg/yarn-cli/)
- [Yarn Workspaces](https://apis.io/apis/yarn-pkg/yarn-workspaces/)
- [Yarn Plug'n'Play](https://apis.io/apis/yarn-pkg/yarn-plug-n-play/)
- [Yarn Zero-Installs](https://apis.io/apis/yarn-pkg/yarn-zero-installs/)
- [Yarn Constraints](https://apis.io/apis/yarn-pkg/yarn-constraints/)
- [Yarn Protocols](https://apis.io/apis/yarn-pkg/yarn-protocols/)
- [Yarn Plugin API](https://apis.io/apis/yarn-pkg/yarn-plugin-api/)
- [Yarn Version (Release Workflow)](https://apis.io/apis/yarn-pkg/yarn-version/)
- [Yarn DLX](https://apis.io/apis/yarn-pkg/yarn-dlx/)

## Tags

Dependency Customization, JavaScript

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/yarn-pkg/yarn-patch/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/yarn-pkg/.
