{"id":20653030,"url":"https://github.com/3846masa/axios-cookiejar-support","last_synced_at":"2025-05-14T13:08:13.723Z","repository":{"id":37547382,"uuid":"67123361","full_name":"3846masa/axios-cookiejar-support","owner":"3846masa","description":"Add tough-cookie support to axios.","archived":false,"fork":false,"pushed_at":"2025-05-04T18:43:55.000Z","size":3623,"stargazers_count":325,"open_issues_count":3,"forks_count":57,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-06T12:52:15.142Z","etag":null,"topics":["axios","axios-ecosystem","cookiejar","tough-cookie"],"latest_commit_sha":null,"homepage":"","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/3846masa.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":"3846masa"}},"created_at":"2016-09-01T10:53:55.000Z","updated_at":"2025-05-04T18:43:18.000Z","dependencies_parsed_at":"2023-12-29T22:14:59.350Z","dependency_job_id":"e2e0d320-7f06-4ec2-952a-d8209b838325","html_url":"https://github.com/3846masa/axios-cookiejar-support","commit_stats":{"total_commits":756,"total_committers":4,"mean_commits":189.0,"dds":0.07539682539682535,"last_synced_commit":"2d7f3dac03a7d9ceba57fc4ffdb9590109d4e647"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Faxios-cookiejar-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Faxios-cookiejar-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Faxios-cookiejar-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3846masa%2Faxios-cookiejar-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3846masa","download_url":"https://codeload.github.com/3846masa/axios-cookiejar-support/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149960,"owners_count":22022851,"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-ecosystem","cookiejar","tough-cookie"],"created_at":"2024-11-16T17:40:43.514Z","updated_at":"2025-05-14T13:08:08.694Z","avatar_url":"https://github.com/3846masa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/3846masa"],"categories":[],"sub_categories":[],"readme":"# axios-cookiejar-support\n\n![axios-cookiejar-support](./docs/assets/ogp.jpg)\n\n[![github sponsors](https://flat.badgen.net/badge/GitHub%20Sponsors/Support%20me%20%E2%9D%A4/ff69b4?icon=github)](https://github.com/sponsors/3846masa)\n[![npm](https://flat.badgen.net/npm/v/axios-cookiejar-support)](https://www.npmjs.com/package/axios-cookiejar-support)\n[![license](https://flat.badgen.net/badge/license/MIT/blue)](LICENSE)\n[![standard-readme compliant](https://flat.badgen.net/badge/readme%20style/standard/green)](https://github.com/RichardLitt/standard-readme)\n\nAdd `tough-cookie` support to axios.\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Extended Request Config](#extended-request-config)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Install\n\n```\nnpm install axios tough-cookie axios-cookiejar-support\n```\n\n## Usage\n\n```js\nimport axios from 'axios';\nimport { wrapper } from 'axios-cookiejar-support';\nimport { CookieJar } from 'tough-cookie';\n\nconst jar = new CookieJar();\nconst client = wrapper(axios.create({ jar }));\n\nawait client.get('https://example.com');\n```\n\nSee [examples](./examples) for more details.\n\n### Extended Request Config\n\n```ts\nimport type { CookieJar } from 'tough-cookie';\n\ndeclare module 'axios' {\n  interface AxiosRequestConfig {\n    jar?: CookieJar;\n  }\n}\n```\n\nSee also https://github.com/axios/axios#request-config .\n\n## FAQ\n\n- Q. Why can't I assign the httpAgent / httpsAgent?\n  - A. axios-cookiejar-support uses httpAgent / httpsAgent to read and write cookies. If other Agents are assigned, cookies cannot be read/written.\n- Q. I want to use it with another Agent (e.g., http-proxy-agent).\n  - A. Consider using http-cookie-agent. axios-cookiejar-support also uses http-cookie-agent. Read http-cookie-agent's README for more details.\n\n## Contributing\n\nPRs accepted.\n\n## License\n\n[MIT (c) 3846masa](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3846masa%2Faxios-cookiejar-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3846masa%2Faxios-cookiejar-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3846masa%2Faxios-cookiejar-support/lists"}