AWS Lambda Middleware is a lightweight library (v1.1.2, last updated 2023) for applying middleware and validating request parameters in AWS Lambda functions. It provides PropTypes for type checking and data correction, a Validate function for custom rules, and supports Express and other frameworks. Key differentiators include minimal overhead for Lambda, deep array/object validation, and customizable error message templates. Release cadence is sporadic, with major changes between v0.9 and v1.0 including reserved prop names, option changes, and required() method replacing isRequired.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
CommonJS destructuring only; no default export.
Prop is an alias for PropTypes; both work.
isRequired deprecated in v1.0; use .required() method.
Creates a Lambda handler with parameter validation using PropTypes and middleware chaining.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.