{"id":18821142,"url":"https://github.com/compwright/axios-header-interceptor","last_synced_at":"2026-01-23T16:36:35.318Z","repository":{"id":60865298,"uuid":"546271129","full_name":"compwright/axios-header-interceptor","owner":"compwright","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-22T19:23:01.000Z","size":1556,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-23T12:24:14.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/compwright.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"compwright"}},"created_at":"2022-10-05T20:24:48.000Z","updated_at":"2026-01-22T19:22:58.000Z","dependencies_parsed_at":"2024-06-23T05:28:55.475Z","dependency_job_id":"5de5f05c-5f54-41f8-9c9c-77d6c24d19fd","html_url":"https://github.com/compwright/axios-header-interceptor","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"5530753ee1f07e20f2a501ded0e382bf67e118d5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/compwright/axios-header-interceptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faxios-header-interceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faxios-header-interceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faxios-header-interceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faxios-header-interceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/axios-header-interceptor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faxios-header-interceptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28695594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-08T00:34:33.289Z","updated_at":"2026-01-23T16:36:35.291Z","avatar_url":"https://github.com/compwright.png","language":"JavaScript","funding_links":["https://github.com/sponsors/compwright"],"categories":[],"sub_categories":[],"readme":"# axios-header-interceptor\n\n[![Download Status](https://img.shields.io/npm/dm/axios-header-interceptor.svg?style=flat-square)](https://www.npmjs.com/package/axios-header-interceptor)\n[![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor\u0026message=❤\u0026logo=GitHub\u0026link=https://github.com/sponsors/compwright)](https://github.com/sponsors/compwright)\n\nA tiny [axios](https://www.npmjs.com/package/axios) interceptor for adding request headers.\n\n## Installation\n\nWith NPM:\n\n```bash\nnpm install --save axios-header-interceptor\n```\n\nWith Yarn:\n\n```bash\nyarn add axios-header-interceptor\n```\n\n## Example usage\n\n```javascript\nimport axios from 'axios'\nimport addHeader from 'axios-header-interceptor'\nconst client = axios.createClient()\nclient.interceptors.response.use(\n  addHeader({ 'X-Requested-With': 'myapp/axios' })\n)\n```\n\n## Adding OAuth 2.0 access token header\n\n```javascript\nimport axios from 'axios'\nimport { addOauthHeader } from 'axios-header-interceptor'\nconst client = axios.createClient()\n// Sets the `Authorization: Bearer ACCESS_TOKEN` header\nclient.interceptors.response.use(\n  addOauthHeader('ACCESS_TOKEN')\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Faxios-header-interceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Faxios-header-interceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Faxios-header-interceptor/lists"}