{"name":"axios-cookiejar-support","version":"4.0.0","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"},"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"},"ava":{"files":["**/__tests__/*.spec.ts"],"typescript":{"rewritePaths":{"src/":"dist/"},"compile":false}},"dependencies":{"http-cookie-agent":"^3.0.0"},"devDependencies":{"@3846masa/configs":"github:3846masa/configs#a45bbd3e20a59f0c83aef18648144d8f04884f9b","@ava/typescript":"3.0.1","@semantic-release/changelog":"6.0.1","@semantic-release/exec":"6.0.3","@semantic-release/git":"10.0.1","@types/node":"14.18.16","@types/tough-cookie":"4.0.2","ava":"4.2.0","axios":"0.27.2","npm-run-all":"4.1.5","semantic-release":"19.0.2","tough-cookie":"4.0.0","typescript":"4.6.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":"bbbb8ed782d8f57fe28ad6a0b952b537e505bbd2","_id":"axios-cookiejar-support@4.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-vZ+ILgpoWOiJwnqlmdmHOKIeJHFP24c+KL0di1Bor4TL4Gfz8i+6Y6oljzqMmYwdA4u5BcrLCN9hlEKauLyHng==","shasum":"e4648202dfb65c95580fb16ddb4437599c2a4171","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-4.0.0.tgz","fileCount":6,"unpackedSize":6283,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKx2oyJtf7bOD7hvhsZgdU2dick5MAtn9Fs6uie13SCAiEA5gwn3sx4/Ey2+W0zPqEh4NvC4j6DL0+UKl+YQtRLUq8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidpxRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrxiw//Rx4lpZRwCQ12NplqsAo0NrJpXSTEfJaMUyKnjUWnlXrADklK\r\nP2HAsRjdZdKrqp4tz62kPnAB1pV20iaEle9H4femyx1zgpPb7PL83JTDfGlL\r\ncTXhG8ZFdI+dmYFGyij1kGOUBZ1Q2Q4Yu4R3OKesJbTbSXVXRrbzoah6hlv/\r\nuLWYJ0EQwGpfqfWFhSpyUGHgz72qZD+VtzSuscqyd7Vspf1X9rec0u6yGxHJ\r\nZqrTXo80tNlfWi56umDmUzXalN/wXV0uGeySI1+h4wBBe0gZUC0gOggBUWcb\r\nOllacc2cF1Ea8NF9DmW6ml9VfsFz315o0MoU64IS9LJDfSEHRN4Jo5WKbAUK\r\nEoJqp6onPtGJx0nRsSBwh2RlKcZJFY8KnUI/nE0ZBbBFcDAY+J3D9dcctsYq\r\naNINrHIz0+5J1KCIIGUC0PMtVuqRajkhzProL2+vb9SSapZIJq/78Skv4fB6\r\nuyiWhNaCQiQqS5hiyay2mKvwdmcDI57SQWKb+jQhPBob8GlEq63QRLmEvTaN\r\nsjo/uQL2sGiFjuy06FJLm9kw5Sl8FeWJfHHmlGr+9Ul2lsLHwoozMFLh8J0h\r\njsT3JGUunLi+pRbhKlPsAwpa/AB/ka4K5H2pJjsvxr2AM1SwWFboqp0c6NjY\r\nB2AilHjQE9zEc1zZyg9hrFNgNzLVKZvwQpw=\r\n=vY6l\r\n-----END PGP SIGNATURE-----\r\n","size":2759,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-4.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_4.0.0_1651940432841_0.7968594447447119"},"_hasShrinkwrap":false,"deprecated":"v4.0.0 is deprecated because it cannot work on windows. Please use v4.0.1.","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":1651940433078,"_cnpm_publish_time":1651940433078,"dist-tags":{"latest":"7.0.0"}}