nestjs-convert-to-curl

JSON →
library 2.0.7 ·javascript
verified Jun 7, 2026

A lightweight TypeScript utility to convert Axios requests and errors into cURL commands for debugging and logging. Version 2.0.7 is released under MIT license. It supports all common HTTP methods, query parameters, headers, request bodies (JSON, strings, buffers), and anonymization of sensitive fields (including nested fields via dot notation). Unlike alternatives that require manual formatting, it integrates directly with Axios config and error objects. The package is ESM-only and ships TypeScript types. Release cadence is stable, with minor updates.