{"library":"express-response-formatter","type":"library","category":null,"description":"Express middleware that enhances the response object with a `formatter` property providing readable methods like `ok()`, `created()`, `badRequest()`, etc. Responses are automatically structured: success (2xx/3xx) returns `{ data: ... }`, client/server errors (4xx/5xx) return `{ error: ... }`, and an optional second parameter adds a `meta` field. Version 2.0.2 (latest) ships with TypeScript declarations. It follows a simple, opinionated format and is intended for projects wanting consistent JSON API responses without heavy frameworks. Release cadence is intermittent; maintained as of 2023.","language":"javascript","status":"active","version":"2.0.2","tags":["javascript","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install express-response-formatter","imports":["import { responseEnhancer } from 'express-response-formatter';","import type { ResponseFormatter } from 'express-response-formatter';","import type { FormatterResponse } from 'express-response-formatter';"]},{"cmd":"yarn add express-response-formatter","imports":[]},{"cmd":"pnpm add express-response-formatter","imports":[]}],"homepage":"https://github.com/aofleejay/express-response-formatter#readme","github":"https://github.com/aofleejay/express-response-formatter","docs":null,"changelog":null,"pypi":null,"npm":"express-response-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}