{"library":"koa-override","type":"library","category":null,"description":"koa-override is a Koa middleware designed to enable clients to utilize HTTP verbs like PUT or DELETE in environments where direct support is limited, typically by overriding the method via a `_method` field in the request body or an `X-HTTP-Method-Override` header. The current stable version is 4.0.0, released in June 2024. This package is maintained by the Egg.js team, indicating active development and stability within the Koa ecosystem. It provides a simple API, `override([options])`, allowing configuration of allowed override methods (defaulting to `POST` requests). A key differentiator is its explicit method overriding mechanism, making it a robust solution for RESTful API compatibility challenges with legacy clients or specific network constraints. It ships with TypeScript types and supports both CommonJS and ES Modules since version 4.0.0.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","koa-override","override-method","method-override","override","rewrite","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-override","imports":["import override from 'koa-override';","const override = require('koa-override');","app.use(override());"]},{"cmd":"yarn add koa-override","imports":[]},{"cmd":"pnpm add koa-override","imports":[]}],"homepage":null,"github":"https://github.com/eggjs/koa-override","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-override","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/koa-override/compatibility"}}