{"library":"serverless-middleware","type":"library","category":null,"description":"Serverless Framework plugin (v3.4.0) enabling middleware chaining directly in serverless.yaml for AWS Lambda functions. Allows defining pre/post handlers, error catches, and execution termination via context.end(). Supports Node.js 14+ (12x–22x) and ES6 modules since v3.2.0. Differentiator: no code changes required—all wiring in YAML; supports mixed then/catch chains and TypeScript with webpack workaround. Released semi-annually, breaking changes limited to runtime/Serverless major bumps.","language":"javascript","status":"active","version":"3.4.0","tags":["javascript","serverless","plugin","middleware"],"install":[{"cmd":"npm install serverless-middleware","imports":["plugins:\n  - serverless-middleware","// handler.js\nexport const authenticate = async (event, context) => { ... };","import serverlessMiddleware from 'serverless-middleware';"]},{"cmd":"yarn add serverless-middleware","imports":[]},{"cmd":"pnpm add serverless-middleware","imports":[]}],"homepage":null,"github":"https://github.com/juanjoDiaz/serverless-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/serverless-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/serverless-middleware/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}