{"name":"axios-cookiejar-support","version":"5.0.5","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"},"main":"dist/index.js","browser":"noop.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","semantic-release":"semantic-release","test":"NODE_OPTIONS=\"--experimental-vm-modules\" jest"},"dependencies":{"http-cookie-agent":"^6.0.8"},"devDependencies":{"@3846masa/configs":"github:3846masa/configs#cc0d6cce430487cc6e972676837632a18a2ac4b8","@babel/plugin-proposal-explicit-resource-management":"7.25.9","@babel/preset-env":"7.26.0","@babel/preset-typescript":"7.26.0","@jest/globals":"29.7.0","@semantic-release/changelog":"6.0.3","@semantic-release/exec":"6.0.3","@semantic-release/git":"10.0.1","@types/eslint":"9.6.1","@types/node":"18.19.68","axios":"1.7.9","babel-jest":"29.7.0","disposablestack":"1.1.7","jest":"29.7.0","rimraf":"5.0.10","semantic-release":"19.0.5","tough-cookie":"5.0.0","typescript":"5.7.2"},"peerDependencies":{"axios":">=0.20.0","tough-cookie":">=4.0.0"},"packageManager":"pnpm@9.15.0","engines":{"node":">=18.0.0"},"publishConfig":{"access":"public"},"pnpm":{"patchedDependencies":{"@semantic-release/git@10.0.1":"patches/@semantic-release__git@10.0.1.patch"}},"_id":"axios-cookiejar-support@5.0.5","gitHead":"b94e74154251672a58539f0634275e5eb00dba90","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-jJG+p7JnOYxkVrYkCDKBrLqUmcpwHZTNQrEcIEKr5qe7YVTyPAD9nCsi1cO5LDmQpQApfS430czO+oceI3g/3g==","shasum":"6030e17b438a64e3967a5ca190ee4202481c0ecf","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-5.0.5.tgz","fileCount":6,"unpackedSize":7930,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJc2uAALEgUgZW97/H0KCvGShjOzwlHTut0WtgXgWLYAIgfIHcdpLQioBJQWcAi42QExJJCXDgUh1XjqGa7zVwXv0="}],"size":3308,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-5.0.5.tgz"},"_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/axios-cookiejar-support_5.0.5_1734383500176_0.048992230773032386"},"_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":1734383500347,"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_cnpm_publish_time":1734383500347,"dist-tags":{"latest":"7.0.0"}}