{"id":16103785,"url":"https://github.com/freewall/axios-console-logger","last_synced_at":"2026-04-26T23:31:30.742Z","repository":{"id":149895667,"uuid":"622197652","full_name":"FreeWall/axios-console-logger","owner":"FreeWall","description":"A console logger for Axios HTTP client.","archived":false,"fork":false,"pushed_at":"2023-04-01T21:01:35.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T06:02:32.459Z","etag":null,"topics":["axios","axios-interceptor","logging","node"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/@freewall/axios-console-logger","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FreeWall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-04-01T12:13:10.000Z","updated_at":"2023-04-01T21:00:05.000Z","dependencies_parsed_at":"2023-05-31T05:00:29.698Z","dependency_job_id":null,"html_url":"https://github.com/FreeWall/axios-console-logger","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Faxios-console-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Faxios-console-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Faxios-console-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Faxios-console-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreeWall","download_url":"https://codeload.github.com/FreeWall/axios-console-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247424143,"owners_count":20936725,"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","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","axios-interceptor","logging","node"],"created_at":"2024-10-09T18:58:45.871Z","updated_at":"2026-04-26T23:31:30.709Z","avatar_url":"https://github.com/FreeWall.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Axios Console Logger\n\n[![npm version](https://img.shields.io/npm/v/@freewall/axios-console-logger?color=blue)](https://www.npmjs.com/@freewall/axios-console-logger)\n[![publish status](https://img.shields.io/github/actions/workflow/status/FreeWall/axios-console-logger/publish.yml)](https://github.com/FreeWall/axios-console-logger/releases/latest)\n\nA console logger for Axios HTTP client.\n\n## Installation\n\n```shell\nnpm install @freewall/axios-console-logger\n```\n\n## Usage\n\n```js\nimport { AxiosConsoleLogger } from '@freewall/axios-console-logger';\n\nconst logger = new AxiosConsoleLogger();\n\naxios.interceptors.request.use((request) =\u003e logger.request(request));\n\naxios.interceptors.response.use(\n  (response) =\u003e logger.response(response),\n  (error) =\u003e logger.error(error),\n);\n```\n\n### Options\n\n```js\n// default values:\nnew AxiosConsoleLogger({\n  colors: {\n    get: {\n      request: '#54b7d3',\n      response: '#408ba1',\n    },\n    post: {\n      request: '#96c750',\n      response: '#6f943b',\n    },\n  },\n  multiline: false,\n  responseSize: true,\n  responseTime: true,\n  requestKeys: ['params', 'data'],\n  responseKeys: ['data'],\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreewall%2Faxios-console-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreewall%2Faxios-console-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreewall%2Faxios-console-logger/lists"}