{"name":"axios-cookiejar-support","version":"6.0.3","keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"author":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"license":"MIT","_id":"axios-cookiejar-support@6.0.3","maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"homepage":"https://github.com/3846masa/axios-cookiejar-support#readme","bugs":{"url":"https://github.com/3846masa/axios-cookiejar-support/issues"},"dist":{"shasum":"bd7b7c7185dd75e7b2e542a0816b28920460c44c","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-6.0.3.tgz","fileCount":6,"integrity":"sha512-hSjQ8xE82ifSUjU+VpT2WCPMB6xSgwvTRPTl4L/ddeEWNGgiYp/AOf4fM2CO7uF054mPhNT7KaqertqI8/BCig==","signatures":[{"sig":"MEUCIQC2kkC1G7YiZqxIHxhPLZbsnV1svnIUsz1zbxBTvWFtowIgTVIqupuJHOZ3lSKlhlLgdc24bYqnE2SbG0Is57KV2Gc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8026,"size":3290,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-6.0.3.tgz"},"main":"./dist/index.js","pnpm":{"patchedDependencies":{"@semantic-release/git@10.0.1":"patches/@semantic-release__git@10.0.1.patch"}},"type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"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"}}},"funding":"https://github.com/sponsors/3846masa","gitHead":"14870fe52f00c6581f44d3878de2de29e71e5528","scripts":{"lint":"pnpm run \"/^lint:.*/\"","test":"NODE_OPTIONS=\"--experimental-vm-modules\" jest","build":"tsc --project tsconfig.build.json","format":"pnpm run --sequential \"/^format:.*/\"","prelint":"pnpm run build","lint:tsc":"tsc --noEmit","prebuild":"rimraf dist","lint:eslint":"eslint .","format:eslint":"eslint --fix .","lint:prettier":"prettier --check .","format:prettier":"prettier --write .","semantic-release":"semantic-release"},"_npmUser":{"name":"3846masa","actor":{"name":"3846masa","type":"user","email":"3846masahiro+git@gmail.com"},"email":"3846masahiro+git@gmail.com"},"repository":{"url":"git+https://github.com/3846masa/axios-cookiejar-support.git","type":"git"},"_npmVersion":"10.8.2","description":"Add tough-cookie support to axios.","directories":{},"_nodeVersion":"20.19.3","dependencies":{"http-cookie-agent":"^7.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.3","devDependencies":{"jest":"29.7.0","axios":"1.10.0","rimraf":"6.0.1","babel-jest":"29.7.0","typescript":"5.8.3","@types/node":"20.19.2","tough-cookie":"5.1.2","@jest/globals":"29.7.0","@types/eslint":"9.6.1","disposablestack":"1.1.7","semantic-release":"24.2.5","@3846masa/configs":"github:3846masa/configs#6f1ed0b43db1cbfe7f1219a5acd31d0a4a867968","@babel/preset-env":"7.27.2","@semantic-release/git":"10.0.1","@semantic-release/exec":"7.1.0","@babel/preset-typescript":"7.27.1","@semantic-release/changelog":"6.0.3","@babel/plugin-proposal-explicit-resource-management":"7.27.4"},"peerDependencies":{"axios":">=0.20.0","tough-cookie":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/axios-cookiejar-support_6.0.3_1751199068179_0.25808998368237335","host":"s3://npm-registry-packages-npm-production"},"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":1751199068361,"_cnpm_publish_time":1751199068361,"dist-tags":{"latest":"7.0.0"}}