{"library":"compose-middleware","type":"library","category":null,"description":"compose-middleware is a utility library designed to combine an array of Express- or Connect-style middleware functions into a single, cohesive middleware function. This package is currently stable at version 5.0.1, with recent updates primarily focusing on TypeScript type improvements and stricter function signatures. Historically, major versions have introduced changes to error handling logic and middleware validation. Its key differentiators include built-in support for inline error handling middleware, which can be composed separately using the `errors` export, and robust validation of middleware functions to prevent common pitfalls in middleware chains. It provides a flexible way to structure complex middleware pipelines for web frameworks.","language":"javascript","status":"active","version":"5.0.1","tags":["javascript","middleware","express","compose","flatten","function","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install compose-middleware","imports":["import { compose } from 'compose-middleware'","import { errors } from 'compose-middleware'","import type { ComposeMiddleware } from 'compose-middleware'"]},{"cmd":"yarn add compose-middleware","imports":[]},{"cmd":"pnpm add compose-middleware","imports":[]}],"homepage":null,"github":"https://github.com/blakeembrey/compose-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/compose-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/compose-middleware/compatibility"}}