{"library":"shimmer","type":"library","category":null,"description":"The `shimmer` package (version 1.2.1) is a JavaScript utility designed for safe monkeypatching of functions, primarily within Node.js CommonJS environments. It provides a set of tools, including `wrap`, `massWrap`, `unwrap`, and `massUnwrap`, to intercept and augment the behavior of existing functions on objects or entire modules. The library's core philosophy is to add behavior around an original function, rather than replacing it, and includes important guidelines for maintaining function integrity (e.g., preserving return values, not altering async/sync nature). Released approximately seven years ago, its current status suggests it is in maintenance mode rather than active development. It differentiates itself by providing explicit safety mechanisms and logging for potential issues during monkeypatching, defaulting to `console.error` for non-throwing error reporting. This makes it suitable for extending or observing existing Node.js module functionality with reduced risk compared to direct function reassignment.","language":"javascript","status":"maintenance","version":"1.2.1","tags":["javascript","monkeypatch","swizzle","wrapping","danger","hmm","shim"],"install":[{"cmd":"npm install shimmer","imports":["const shimmer = require('shimmer');","const shimmer = require('shimmer');\nshimmer.wrap(targetModule, 'methodName', function (original) { /* ... */ });","const shimmer = require('shimmer');\nshimmer.unwrap(targetModule, 'methodName');","const shimmer = require('shimmer');\nconst customShimmer = shimmer({ logger: myCustomLogger });"]},{"cmd":"yarn add shimmer","imports":[]},{"cmd":"pnpm add shimmer","imports":[]}],"homepage":null,"github":"https://github.com/othiym23/shimmer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/shimmer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/shimmer/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}