Patch Package

JSON →
library 8.0.1 ·javascript
verified Apr 19, 2026

patch-package is a utility that enables developers to apply and manage local modifications to their `node_modules` dependencies without needing to fork or wait for upstream merges. It works by creating `.patch` files based on manual changes made directly in `node_modules`, which are then automatically applied during subsequent `npm install` or `yarn install` operations via a `postinstall` script. The current stable version is 8.0.1, with major releases occurring periodically to address Node.js version updates, security fixes, and compatibility with new package manager features. Key differentiators include its simplicity in generating and applying patches, avoiding the overhead of maintaining forks, and providing a quick workaround for urgent bugs in dependencies. It primarily serves as a band-aid solution, especially for projects on the bleeding edge of dependency versions, though newer package managers like Yarn 2+ and pnpm have integrated native patching capabilities that supersede patch-package for those ecosystems. Its release cadence is reactive to critical issues and ecosystem changes.

total hits 17
actors 7 distinct systems
last hit 4d ago AhrefsBot
GPTBot
2
Script
2
ClaudeBot
1
Search engines
3

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇮🇳 India · 🇳🇴 Norway