{"library":"js-middleware","type":"library","category":null,"description":"js-middleware is a versatile JavaScript library designed to implement a powerful middleware pattern, allowing developers to inject custom logic into the execution flow of any object's methods. It aims to bring the scalability and maintainability benefits seen in frameworks like ReduxJS and ExpressJS to general-purpose JavaScript objects. The package is currently at version 0.3.1, with a recent patch 0.3.2, indicating it's actively maintained, though possibly with a slower release cadence. Its primary differentiator is the ability to apply middleware to arbitrary methods of any class or object instance, providing a flexible mechanism to modify arguments, perform side effects, or control method execution. This approach fosters highly modular and testable code by separating cross-cutting concerns from core business logic, making it suitable for extending existing objects without direct modification.","language":"javascript","status":"active","version":"0.3.1","tags":["javascript","middleware","javascript middleware","redux middleware","express middleware","middleware pattern"],"last_verified":"Wed May 27","install":[{"cmd":"npm install js-middleware","imports":["import { MiddlewareManager } from 'js-middleware';","const { MiddlewareManager } = require('js-middleware');","const manager = new window.MiddlewareManager(targetObject);"]},{"cmd":"yarn add js-middleware","imports":[]},{"cmd":"pnpm add js-middleware","imports":[]}],"homepage":null,"github":"https://github.com/unbug/js-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/js-middleware","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/js-middleware/compatibility"}}