{"name":"axios-cookiejar-support","version":"3.0.0","description":"Add tough-cookie support to axios.","license":"MIT","author":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"homepage":"https://github.com/3846masa/axios-cookiejar-support#readme","repository":{"type":"git","url":"git+https://github.com/3846masa/axios-cookiejar-support.git"},"bugs":{"url":"https://github.com/3846masa/axios-cookiejar-support/issues"},"main":"dist/index.js","browser":"noop.js","scripts":{"prebuild":"rimraf dist","build":"tsc","semantic-release":"semantic-release","pretest":"npm run build","test":"ava"},"types":"dist/index.d.ts","dependencies":{"http-cookie-agent":"^2.0.0"},"peerDependencies":{"axios":">=0.20.0","tough-cookie":">=4.0.0"},"devDependencies":{"@ava/typescript":"3.0.1","@semantic-release/changelog":"5.0.1","@semantic-release/exec":"5.0.0","@semantic-release/git":"9.0.1","@types/node":"14.18.16","@types/tough-cookie":"4.0.2","ava":"4.2.0","axios":"0.27.2","semantic-release":"17.4.7","tough-cookie":"4.0.0","typescript":"4.6.4"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"engines":{"node":">=14.18.0 <15.0.0 || >=16.0.0"},"publishConfig":{"access":"public"},"ava":{"files":["**/__tests__/*.spec.ts"],"typescript":{"rewritePaths":{"src/":"dist/"},"compile":false}},"gitHead":"2fdd7358778b926be499ea5c37b1c88d6af4228f","_id":"axios-cookiejar-support@3.0.0","_nodeVersion":"16.14.2","_npmVersion":"7.23.0","dist":{"integrity":"sha512-hwacS4JUXbiwN7t7cOQ0EvUXj5S7g1hK6hSd4E0F0aOEOXuIoq8H1ue5lne36MRxddhrgRSGryo+7v6r6lZLGQ==","shasum":"c5a24fe5a639d9db28f870d2e960f3c15617d7d1","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-3.0.0.tgz","fileCount":6,"unpackedSize":5835,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdbVunvWZS+E8oZKT8KibIlJZ3ZmPmggT185DoGMElGwIgVJEDvl7y3uKwTCYYcIUstd23DMP/BrPUXU9ML1q+fTM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicKxwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKVA//cIVbhMnebw25EdmTcDgXPCDOEYXBWt4UY0thWPg5wi74JkGX\r\nxZwlRxSrKiKcPbFedpE9WFnVXs+BnfKIwO7trOGE+0X1eskyy4EH4FdtNV8H\r\nT010IMSN+xo0kEbY9/ScQlSmogYlzI3na8ZQYaRvJ6ksGUI014MLYoYQc1IQ\r\nWmt5KjstiG2J2AgG+RY19PT1wQVyEoIhmKuwWjo/N/GS+ljjpIjKE2nDjjMP\r\nwQvZjbYcOBNzfoHFNr6vj3KdRZQd501fSw9EQqx+94j05FwXYPScvH7/o/2n\r\nkN3QJG/ATdQa9/q1nYOzPS/021gugw+0sIUJHpQMd7MUlUUQSegX77Uj35xO\r\nvELnIwiaM+S61jd2bHvXwlepFndI2znmYq0dWrnmEhJjEye74jIqIE6HIWA5\r\nulcPdDaR3pqiQ745epTKybYa3Uq+KxczHy5CBxb332tKxDq4c/U6nfxW8peI\r\n46d8RcuX3EBhlsT+QyRNPJ2qN7GsneGw6nCscdjD7VG9T+ZZ99JKkt2txvv9\r\nv81IhxZLHiVUKTfGM3pEV+QjWk7lB2Yl+fUmT8c4WK/lTXKHlsBxeE8VeIEM\r\ns0Gt2DDlQLEUQOIOPMqt/I2Vces0qbVibZmmE8L2FLT8MarlJns59nSKcSPU\r\nsf6fW9qRvLAQGbRIoaKW5QfFgLQ9G4GmrcA=\r\n=LGeT\r\n-----END PGP SIGNATURE-----\r\n","size":2584,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-3.0.0.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_3.0.0_1651551344561_0.858440547756115"},"_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":1651551344921,"_cnpm_publish_time":1651551344921,"dist-tags":{"latest":"7.0.0"}}