{"id":21815281,"url":"https://github.com/chaedie/axios-curl-parser","last_synced_at":"2026-02-16T19:06:21.490Z","repository":{"id":263490865,"uuid":"890573933","full_name":"Chaedie/axios-curl-parser","owner":"Chaedie","description":"A lightweight tool for converting Axios request configurations into cURL commands, making it easy for developers to debug or share HTTP requests.","archived":false,"fork":false,"pushed_at":"2024-12-24T01:56:12.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-12T13:24:07.014Z","etag":null,"topics":["axios","curl","parser"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/axios-curl-parser","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chaedie.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-18T20:07:33.000Z","updated_at":"2024-12-24T01:56:16.000Z","dependencies_parsed_at":"2024-12-24T02:19:57.669Z","dependency_job_id":"487501cf-5c8d-4bcf-baed-0bec108045c9","html_url":"https://github.com/Chaedie/axios-curl-parser","commit_stats":null,"previous_names":["chaedie/axios-curl-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chaedie/axios-curl-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaedie%2Faxios-curl-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaedie%2Faxios-curl-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaedie%2Faxios-curl-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaedie%2Faxios-curl-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chaedie","download_url":"https://codeload.github.com/Chaedie/axios-curl-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chaedie%2Faxios-curl-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274904621,"owners_count":25371355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","curl","parser"],"created_at":"2024-11-27T15:17:15.394Z","updated_at":"2026-02-16T19:06:21.454Z","avatar_url":"https://github.com/Chaedie.png","language":"TypeScript","readme":"# Axios-curl-parser\n\nThis module is for parsing axios response to curl command format.\n\nIf your team want to make debug log with `curl` command, This module will be help you.\n\n# Example\n\n```ts\nimport axios, { AxiosResponse } from 'axios'\nimport { axiosResponseToCurlCommand } from 'axios-curl-parser'\n\n\naxios.interceptors.response.use(async (response: AxiosResponse\u003cany\u003e) =\u003e {\n    const curlCommand = axiosResponseToCurlCommand(response)\n    console.debug(curlCommand)\n    return response\n})\n\naxios\n    .get('https://jsonplaceholder.typicode.com/posts/1', {\n        headers: { 'Content-Type': 'application/json', Accept: 'application/json', 'Accept-Encoding': '' },\n    })\n    .then((response: any) =\u003e {})\n```\n\n## Sample Result\n\n```shell\ncurl -X GET \\ \n  -H \"Accept: application/json\" \\ \n  -H \"Content-Type: application/json\" \\ \n  -H \"Accept-Encoding: \" \\ \n  -H \"User-Agent: axios/1.7.7\" \\ \n  \"https://jsonplaceholder.typicode.com/posts/1\"\n```\n\nYou can copy \u0026 paste for terminal and reqest curl command with this result. So you will not have to go to \"network tab\" on the inspector of the browser.\n\n## Sample Usage - with Slack notification\n\nOur team setting up the frontend error logger with `axios-curl-parser` so we just forward our error log to another developer for debugging.\ncurl command has all of the important information for error debugging so `axios-curl-parser` increase our team's productivity.\n\n\u003e Try it for your team!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaedie%2Faxios-curl-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaedie%2Faxios-curl-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaedie%2Faxios-curl-parser/lists"}