macOS
brew install patch-packagelocal Homebrew formula metadata
brew / rank 6313
Fix broken node modules instantly. Version 8.0.1 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#patch-package.
install
brew install patch-packagelocal Homebrew formula metadata
nix profile install nixpkgs#patch-packagenixpkgs package indexes · pkgs/by-name/pa/patch-package/package.nix · source: api.github.com
overview
Fix broken node modules instantly
history
patch-package creates versioned diff files from local changes to Node.js dependencies and reapplies them after dependency installation.
patch-package was created for JavaScript application authors who needed to preserve fixes made inside installed npm dependencies. The project evolved beyond basic patch creation and application to support nested packages, dev-only patches, ordered patch sequences, rebasing, partial application, reverse application, CI behavior, and alternate patch directories.
The project became a widely used workaround in npm and Yarn applications because it lets teams version local dependency fixes without publishing a fork. Its official repository documents automatic application through package-manager lifecycle hooks and has accumulated substantial community use.
A developer edits an installed dependency under node_modules and runs patch-package for that package. The tool writes a versioned patch under the application's patches directory; the patch is committed with the application and normally reapplied from a postinstall script. Teams should keep patches focused and reassess them when dependency versions change.
patch-package formalized a pragmatic pattern familiar to package maintainers: carry a small downstream patch while waiting for upstream. It makes those changes visible in ordinary code review and reproducible on developer machines and CI, occupying a useful middle ground between directly editing node_modules and maintaining a permanent fork.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
<project>/package.json<project>\package.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
patch-package | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/ds300/patch-package
install metadata
| Package key | brew:patch-package |
|---|---|
| Version | 8.0.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/patch-package |
| Homepage | https://github.com/ds300/patch-package |
| Repository | https://github.com/ds300/patch-package |
| License | MIT |
| Source archive | https://registry.npmjs.org/patch-package/-/patch-package-8.0.1.tgz |
| Dependencies | node |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | patch-package |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
patch-package
nix profile install nixpkgs#patch-packagesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.