{"library":"middy-middleware-json-error-handler","type":"library","category":null,"description":"A middleware for the Middy.js Lambda middleware engine that converts thrown errors into structured JSON HTTP responses, compatible with http-errors. Current stable version is 4.0.0 (released 2023-07-26). Follows semantic release, with updates every few months. Key differentiators: automatic JSON serialization, support for http-errors and custom error classes, configurable property omission (stack, name, etc.), and the ability to expose internal errors via the `expose` property even for 5xx responses. Ships TypeScript types.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","middy","middleware","error","http","json","typescript"],"install":[{"cmd":"npm install middy-middleware-json-error-handler","imports":["import JSONErrorHandlerMiddleware from 'middy-middleware-json-error-handler'","const JSONErrorHandlerMiddleware = require('middy-middleware-json-error-handler').default",".use(JSONErrorHandlerMiddleware(options))"]},{"cmd":"yarn add middy-middleware-json-error-handler","imports":[]},{"cmd":"pnpm add middy-middleware-json-error-handler","imports":[]}],"homepage":null,"github":"https://github.com/dbartholomae/middy-middleware-json-error-handler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/middy-middleware-json-error-handler","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/middy-middleware-json-error-handler/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}