Axios third-party module that logs all axios requests as curl commands in the console using interceptors. Version 2.0.0 (stable, maintained actively) supports Node.js without requiring ES6 imports and is a fork of the original axios-curlirize. Differentiators: works with additional axios instances, allows per-request disable via config option, and stores curl command in response.config.curlCommand.
npm install axios-curlirizeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes axios-curlirize with the default axios instance, makes a POST request, and logs the equivalent curl command.
Run `npm install axios` alongside axios-curlirize.
Upgrade Node.js to version 14 or later, or use a bundler like webpack with the appropriate targets.
Use `axios.post(url, data, { curlirize: false })`.Install axios: `npm install axios`.
Use `const curlirize = require('axios-curlirize').default;` or ES import as shown in the docs.Ensure you pass the actual axios instance or a properly created instance via `axios.create()`.