cURL to Axios
Paste a cURL command below.
Paste a cURL command and convert it into Axios request code. Method, URL, headers, body and auth map to the matching axios call signature.
Paste a cURL command below.
The parser extracts the method, URL, headers and body from the cURL command, then emits the matching axios method call. GET style requests put headers in the config object, while POST style requests pass the body as the second argument and config as the third.
Axios adds interceptors, automatic JSON transforms, request cancellation and better error objects on top of fetch. Converting cURL examples to Axios gives you code that drops straight into most existing codebases.