axios-case-converter

JSON →
library 1.1.1 ·javascript
verified Jun 7, 2026

Axios middleware that automatically transforms object keys between snake_case and camelCase in HTTP requests and responses. Current stable version is 1.1.1. It uses Axios interceptors to convert outgoing request data, params, and headers to snake_case/Header-Case, and incoming response data and headers back to camelCase. Built on top of the 'change-case' library. Requires Axios >=1.0.0 as a peer dependency. Differentiates from similar libraries by also handling URL params and headers, and offering fine-grained options like preservedKeys, ignoreHeaders, and caseFunctions for overriding transformation behavior. Ships TypeScript declarations.