{"id":20662581,"url":"https://github.com/system233/node-axios-cookies","last_synced_at":"2026-05-28T01:02:00.078Z","repository":{"id":233110890,"uuid":"785975957","full_name":"System233/node-axios-cookies","owner":"System233","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-13T10:01:35.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T00:30:28.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/System233.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":"2024-04-13T03:59:43.000Z","updated_at":"2024-04-13T10:01:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c78284c0-cb4c-4e3a-a1b8-ecae47f9967d","html_url":"https://github.com/System233/node-axios-cookies","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"fd2cf1827878fda6cf3d5aa697b102efb58af1e8"},"previous_names":["system233/node-axios-cookie"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/System233%2Fnode-axios-cookies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/System233%2Fnode-axios-cookies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/System233%2Fnode-axios-cookies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/System233%2Fnode-axios-cookies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/System233","download_url":"https://codeload.github.com/System233/node-axios-cookies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242799115,"owners_count":20186887,"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":[],"created_at":"2024-11-16T19:14:40.875Z","updated_at":"2025-12-13T13:20:13.699Z","avatar_url":"https://github.com/System233.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n Copyright (c) 2024 System233\n \n This software is released under the MIT License.\n https://opensource.org/licenses/MIT\n--\u003e\n\n# Axios-Cookie \n\nA Cookie support library for Axios, automatically manages cookies on request, just like `request.Session`.\n\n\n## Documentation\n\nSee the [Documentation](/docs/modules.md) for details.\n\n## Example\n\n```ts\n\nimport { setupCookieJar } from 'axios-cookie'\nimport axios from 'axios'\n\n// Create a Axios instance\nconst instance = axios.create()\n// Setup CookieJar, All cookies will be stored here.\nconst jar = setupCookieJar(instance,\u003cadapter?\u003e)\n\n// Access value in CookieJar through Key.\njar.setValue(\u003curl\u003e,'key','value')\njar.getValue(\u003curl\u003e,'key')\n\n// Remove a key\njar.setValue(\u003curl\u003e,null)\n\n// Send a Request that will include the `Cookie` header configured in CookieJar.\ninstance.get(\u003curl\u003e);\n\n// Get the Cookie Header value for site \u003curl\u003e.\njar.getCookie(\u003curl\u003e)\n// Put Set-Cookie Header into the CookieJar.\njar.setCookie(\u003curl\u003e,\u003cset-cookie\u003e)\n\n// Import from/Export to JSON Object.\njar.toJSON()\njar.fromJSON(obj)\n\n// Get the internal CookieJar Storage, `cookiejar` or `tough-cookie`.\njar.toRaw()\n```\n\n## Adapters\n\nThere are currently two CookieJar stores supported by default:\n1. [SimpleCookieJarAdapter](/docs/classes/adapters_cookiejar.SimpleCookieJarAdapter.md), powered by [cookiejar](https://github.com/bmeck/node-cookiejar). [default,built-in]. \nVery fast and tiny, x5~x6 faster than tough-cookie.\nThe original version has too few functions and has been modified to adapt to the new functions.\nBuilt-in features, no additional installation required.\n2. [ToughCookieJarAdapter](/docs/classes/adapters_tough.ToughCookieJarAdapter.md), powered by [tough-cookie](https://github.com/salesforce/tough-cookie). \nSlow and large, but powerful!\nNeed to install `tough-cookie` manually.\n\n## Test\n\n```shell\nnpm run test\n# or\nyarn run test\n# or\nnode --test\n```\n\n\n## LICENSE\n\n[MIT](/LICENSE) License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystem233%2Fnode-axios-cookies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystem233%2Fnode-axios-cookies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystem233%2Fnode-axios-cookies/lists"}