{"name":"axios-cookiejar-support","version":"2.0.3","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":"^1.0.2"},"peerDependencies":{"axios":">=0.20.0","tough-cookie":">=4.0.0"},"devDependencies":{"@ava/typescript":"2.0.0","@semantic-release/changelog":"5.0.1","@semantic-release/exec":"5.0.0","@semantic-release/git":"9.0.1","@types/node":"12.20.33","@types/tough-cookie":"4.0.1","ava":"3.15.0","axios":"0.22.0","semantic-release":"17.4.7","tough-cookie":"4.0.0","typescript":"4.4.3"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"engines":{"node":">=12.19.0 <13.0.0 || >=14.5.0"},"publishConfig":{"access":"public"},"ava":{"files":["**/__tests__/*.spec.ts"],"typescript":{"rewritePaths":{"src/":"dist/"},"compile":false}},"gitHead":"02f5cd3e52e3838072ebcdd36e5def731867955b","_id":"axios-cookiejar-support@2.0.3","_nodeVersion":"14.18.0","_npmVersion":"7.23.0","dist":{"integrity":"sha512-tvMB+0JhxXLjjvePsXzqXhBI4DMlW4ImR4pKKNl+xclwF0IviNV+CkuhubQCCFjPzOXv7PIzOq3z7WFiF9pMpw==","shasum":"54fc8911d16555a5d3cfd88ec68776ecbac7184a","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-2.0.3.tgz","fileCount":6,"unpackedSize":5836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2kK1CRA9TVsSAnZWagAAb7gP/2VJgv/DZERTYdSMqUAu\n3fXuIEC3RBs78XDhiN/QCSqCkEfVZFAbfW9TIbCBYiah8m2QVCiPeigS/7Kf\ngJuSqEHZhIlWdgXctkoWcfN+db3j+UFIHuLdPUSLPDDmC+91jBOtulmRFdGi\no955TmKCNr6hDEaJbs2B3UWaeL+0E10PKJ3YPpR8OJj/dfE6BZp0OWz4mR+D\nCM+LF8NZcIBeToO5qmt6TT54nksO0MacBYC/NTuNn74d1q7yn5lfO4ENqqgD\n+ylLASh4XWVey8aaK8z9Ryfjfq3YJtlNVuHpcRfRsL5hSo+YSmcdlx/9LQhM\nwTVciLvUibcnMo1C/whjggdfL+NheWut5+pRF9/OAGwFOUC406YkjSLkqBva\nPW6mmnLzMGQP5cwohpD4I/DPKIrg5JhTnSD9EUaJ1SOCUbxyiQX+y02lJhcq\nwx27Mh7/BUIsOxeiZel3MyV/1ALoQuMHpQeEfWsoE5hlatuiRx5/45EJDJU7\n5in8n1n0Au/z4KkkTkH6aclUmqVajbv6M8NY7NXOUFKXvcDYI1hHkA6r/5dJ\nCYRYtqFBw/IC+v+HlM+vxsskriIszli0hXPfGk7M7bsnsU5nmrSv7ZCtgXZ/\nDiFtQTMJvLWsz92GxzllrzIULiRf7Rv0YVNxwlYVG5ernxtmKVnyODsdxjdw\neKG1\r\n=UvVj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDoeNcsSPnnfCxpELPTolqYq+DVq/rDPfQ22nMgtqZcyAiEA4K4HU1UrkWuyx6oi7I3FdR4+6BMBpMPfJtkWj89MheU="}],"size":2590,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-2.0.3.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_2.0.3_1634219163731_0.9431792047864558"},"_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":1634219164010,"_cnpm_publish_time":1634219164010,"dist-tags":{"latest":"7.0.0"}}