{"library":"koa-formatter","type":"library","category":null,"description":"A response body formatter middleware for Koa (v0.1.0, stable) that automatically wraps JSON API responses into a consistent envelope with ok, status, errors, and result fields. It supports custom formatter functions, error aggregation, and includes Flowtype definitions. Unmaintained since 2016, no recent releases; suitable for legacy Koa v1/before async/await middleware patterns. Alternatives: koa-respond, koa-json, or manual ctx.body assignment.","language":"javascript","status":"abandoned","version":"0.1.0","tags":["javascript","api","json","body","koa","formatter"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install koa-formatter","imports":["const formatter = require('koa-formatter')","app.use(formatter())","const { defaultFormatter } = require('koa-formatter')"]},{"cmd":"yarn add koa-formatter","imports":[]},{"cmd":"pnpm add koa-formatter","imports":[]}],"homepage":"https://github.com/njakob/koa-formatter","github":"git://github.com/njakob/koa-formatter","docs":null,"changelog":null,"pypi":null,"npm":"koa-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}