{"name":"axios-cookiejar-support","version":"4.0.6","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","format":"npm-run-all format:*","format:eslint":"eslint --fix --ext .js,.ts,.mjs,.mts .","format:prettier":"prettier --write .","lint":"npm-run-all lint:*","lint:eslint":"eslint --ext .js,.ts,.mjs,.mts .","lint:prettier":"prettier --check .","lint:tsc":"tsc --noEmit","semantic-release":"semantic-release","pretest":"npm run build","test":"ava","patch-package":"patch-package"},"ava":{"files":["**/__tests__/*.spec.ts"],"typescript":{"rewritePaths":{"src/":"dist/"},"compile":false}},"dependencies":{"http-cookie-agent":"^5.0.2"},"devDependencies":{"@3846masa/configs":"github:3846masa/configs#1988447d45dfc908a7a96aecbdc9eb3affa4ca74","@ava/typescript":"3.0.1","@semantic-release/changelog":"6.0.2","@semantic-release/exec":"6.0.3","@semantic-release/git":"10.0.1","@types/node":"14.18.36","@types/tough-cookie":"4.0.2","ava":"5.1.0","axios":"1.2.1","npm-run-all":"4.1.5","patch-package":"6.5.0","semantic-release":"19.0.5","tough-cookie":"4.1.2","typescript":"4.9.4"},"peerDependencies":{"axios":">=0.20.0","tough-cookie":">=4.0.0"},"engines":{"node":">=14.18.0 <15.0.0 || >=16.0.0"},"publishConfig":{"access":"public"},"gitHead":"85ea4f0c343771ee9533f3a44bdc877d18d06106","_id":"axios-cookiejar-support@4.0.6","_nodeVersion":"16.18.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-lWDhgM6bc2xYAsHkXEhceLpTu9ytAeIz1VSuL5FoUgGx2lqcMNbNxTD9Hm4x5c8JF5Me0HfNrb06fhEGMC30mQ==","shasum":"f57f75b1ae9bec929063130adc264eeabe81f5cc","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-4.0.6.tgz","fileCount":6,"unpackedSize":7624,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELXisgPNNwA4WY8Jpwb60kZxWlvQveJpWei6pl2s0hgAiEAlfL0P/B3+o+3j9nR5EFaRwseFT5a+yTyCorJMPNlUTw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsT50ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpheg//TM0MaKQJFx/EQxCnk6LjS8dDK6evm7oN+vI7DabwwRcTtIXI\r\nqyiEBX44jUzDdJIlYBd3VLab473P31QoykB0N8+KVbrNaLizNr+sEXok0qj/\r\n/ooBeZlJ+tjtWi55H2qSxYMSnQ7S0aN/5Dkg+DWhrio5t1j3F6vQ+tG+PuAQ\r\nWG4hCh8yODLQ3ae9nVcZcsCm4wvDcGctDwXzIIAkYFxg5AMXvyUjG4RbQXTB\r\nNLZ0ed6MNLFhrTYocGTinF02v41RUbXDNqW742JGtuYEwXXrgLJHwUia2RCO\r\nGPpWvyPE1YdPIZPMYX31a6LtFsEmWO/ScZfz5/4HFIXeHC5BnsHOT0uJaEP3\r\n9NxTSyJhuLdxuZkvQdN0qCqCYpxOwbZXo966WvFHa4ajK91c0BwKtzluPS4c\r\nhhvqlhkFCNE4f3G2upvti2xq/qJoJZ0LM1weQ4B4EMgFqm4V3O+64WZzlEmk\r\nuFtZy8sA4o6IddlbCGtYxZMpS2YzPCtgV6ovXIsnlJ+kClnR9Gx6dRZuiO88\r\njFVrc8SK3Nnipa2SSpBqBpBLgWl8zXoV4wJPWag+hOEqAcB8PIrGu3b6JfgY\r\n0tqbzPLlz9hnvHEt649hrA6yYuVbtqnHfMz2asLXmdKcKrg7rFwgYGk6u3I+\r\n0HmSJf5dyYMo/HXNVBk57/Vtp+QsoAYvTEE=\r\n=NIxK\r\n-----END PGP SIGNATURE-----\r\n","size":3153,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-4.0.6.tgz"},"_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"directories":{},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support_4.0.6_1672560244737_0.5657971333286667"},"_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":1672560244878,"_cnpm_publish_time":1672560244878,"dist-tags":{"latest":"7.0.0"}}