{"name":"axios-cookiejar-support","version":"2.0.2","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.1"},"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.26","@types/tough-cookie":"4.0.1","ava":"3.15.0","axios":"0.21.4","semantic-release":"17.4.7","tough-cookie":"4.0.0","typescript":"4.4.3"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"engines":{"node":">=12.0.0"},"publishConfig":{"access":"public"},"ava":{"files":["**/__tests__/*.spec.ts"],"typescript":{"rewritePaths":{"src/":"dist/"},"compile":false}},"gitHead":"b41efc51963b035c11fc36b9c22492ef5c8e32ee","_id":"axios-cookiejar-support@2.0.2","_nodeVersion":"14.17.6","_npmVersion":"7.23.0","dist":{"integrity":"sha512-Y9QwjsGNhkXoX2J4hSYBQPbCYu2N4p8jqiQ24jNPj0v7LpdhVUv5YyUVowshyCQ/t2WrhywGHUgghHC6Q0twsA==","shasum":"13ee91bc5cf269c6b9a17c2de7f52250fcf66826","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-2.0.2.tgz","fileCount":6,"unpackedSize":5815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcfjlrYlYLMVLnNPiyRXzSrY/v5rtdbiRsNT5l5KX+4gIhAPtsHeahinZ8w1iPecOBqxrtqaQmXKmgdh/q/6Bp6N3B"}],"size":2576,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-2.0.2.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.2_1632474437869_0.4367743707887901"},"_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":1632474438001,"_cnpm_publish_time":1632474438001,"dist-tags":{"latest":"7.0.0"}}