patch-console is a lightweight npm package that monkey-patches the global console object. This allows you to intercept and modify console outputs like log, warn, and error before they are actually displayed in the console. Useful for debugging, testing, or adding custom formatting/filtering to console messages in Node.js or browser environments. It offers flexible configuration for selectively patching specific console methods and provides callbacks for pre- and post-processing console arguments. It's ideal for gaining better control over your application's console logging behavior.