{"name":"axios-cookiejar-support","version":"7.0.0","description":"Add tough-cookie support to axios.","keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"homepage":"https://github.com/3846masa/axios-cookiejar-support#readme","bugs":{"url":"https://github.com/3846masa/axios-cookiejar-support/issues"},"repository":{"type":"git","url":"git+https://github.com/3846masa/axios-cookiejar-support.git"},"funding":"https://github.com/sponsors/3846masa","license":"MIT","author":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"type":"module","exports":{".":{"node":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"browser":{"types":"./dist/index.d.ts","default":"./noop.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"prebuild":"rimraf dist","build":"tsc --project tsconfig.build.json","format":"pnpm run --sequential \"/^format:.*/\"","format:eslint":"eslint --fix .","format:prettier":"prettier --write .","prelint":"pnpm run build","lint":"pnpm run \"/^lint:.*/\"","lint:eslint":"eslint .","lint:prettier":"prettier --check .","lint:tsc":"tsc --noEmit","release":"release-it","test":"vitest run"},"dependencies":{"http-cookie-agent":"^8.0.0"},"devDependencies":{"@3846masa/configs":"github:3846masa/configs#6be5ac743b5cca398e436bd5e73dd9f99671a60d","@babel/plugin-proposal-explicit-resource-management":"7.27.4","@babel/preset-env":"7.29.3","@babel/preset-typescript":"7.28.5","@release-it/conventional-changelog":"11.0.0","@types/eslint":"9.6.1","@types/node":"22.19.17","axios":"1.16.0","conventional-changelog-conventionalcommits":"9.3.1","disposablestack":"1.1.8","release-it":"20.0.1","rimraf":"6.1.3","tough-cookie":"6.0.1","typescript":"6.0.3","vitest":"4.1.5"},"peerDependencies":{"axios":">=0.20.0","tough-cookie":">=4.0.0"},"packageManager":"pnpm@10.33.2","engines":{"node":">=22.0.0"},"publishConfig":{"access":"public"},"pnpm":{"overrides":{"conventional-changelog-conventionalcommits":"$conventional-changelog-conventionalcommits"}},"gitHead":"4f22d5d3d195a89ce9f7f055de6e8de656933d42","_id":"axios-cookiejar-support@7.0.0","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-IpxfiGiEsHp3uj3fjtTiM2LjQGKF5Ig7gZSsVKTJ9RN6KZor17bEwU1ZgYMcrrT3qKP3pz1FdzufgHjtDxKIvg==","shasum":"0efbbb4ac2772a7a7cfe4315de242a8b77c946d5","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-7.0.0.tgz","fileCount":6,"unpackedSize":7905,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/axios-cookiejar-support@7.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBZhgCY2FSFq/x/SYSOYxR/fOHOlHRUGR2LBVdg51hS+AiBlPswCxqvmq9XDJBmImuHu77gIZzbUshdvFAZ26roSQw=="}],"size":3244,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-7.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8a0e9038-9b8c-425a-9ded-e4eead3b341f"}},"directories":{},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/axios-cookiejar-support_7.0.0_1778089806450_0.36853308158746056"},"_hasShrinkwrap":false,"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","publish_time":1778089806606,"_cnpm_publish_time":1778089806606,"dist-tags":{"latest":"7.0.0"}}