r2curl converts Axios request configurations or responses into cURL command strings for debugging. Version 0.2.4 is the latest, released as a stable package. It operates independently of Axios internals, avoiding concurrency issues found in middleware-based alternatives. Currently supports AxiosRequestConfig and AxiosResponse; node-fetch and request support are planned. Ships TypeScript definitions.
npm install r2curlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts an Axios response object into a cURL command string and logs it.
Ensure input is either AxiosRequestConfig or AxiosResponse.
Always pass a request config or response object.
Use only 'single' (default) or 'double'.
Manually verify generated curl for headers with quotes or backslashes.
Use `import r2curl from 'r2curl'` (default import).
Ensure a valid AxiosRequestConfig or AxiosResponse object is passed.
Use `import r2curl from 'r2curl'`.
No dependency data recorded yet.