{"name":"axios-cookiejar-support","description":"Add tough-cookie support to axios.","license":"MIT","author":{"name":"3846masa"},"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"},"version":"1.0.1","main":"./lib/index","browser":{"./lib/index":"./noop.js"},"scripts":{"prebuild":"yarn clean","build":"babel lib -x .mjs --out-dir lib","clean":"rimraf lib/**/*.js","test":"mocha test.spec.js --require intelli-espower-loader"},"types":"./index.d.ts","dependencies":{"is-redirect":"^1.0.0","pify":"^5.0.0"},"peerDependencies":{"@types/tough-cookie":">=2.3.3","axios":">=0.16.2","tough-cookie":">=2.3.3"},"devDependencies":{"@babel/cli":"7.12.1","@babel/core":"7.12.3","@babel/plugin-transform-modules-commonjs":"7.12.1","@types/tough-cookie":"^4.0.0","axios--0.16.x":"./axios/0.16.x","axios--0.17.x":"./axios/0.17.x","axios--0.18.x":"./axios/0.18.x","axios--0.19.x":"./axios/0.19.x","cookie":"^0.4.1","decache":"^4.6.0","intelli-espower-loader":"^1.0.1","mocha":"^8.2.0","nock":"^13.0.4","power-assert":"^1.6.1","rimraf":"3.0.2","tough-cookie":"^4.0.0"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"engines":{"node":">= 10.0.0"},"gitHead":"39c2d72ec40880cd1070d3c122f48e82f510f198","_id":"axios-cookiejar-support@1.0.1","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-IZJxnAJ99XxiLqNeMOqrPbfR7fRyIfaoSLdPUf4AMQEGkH8URs0ghJK/xtqBsD+KsSr3pKl4DEQjCn834pHMig==","shasum":"7b32af7d932508546c68b1fc5ba8f562884162e1","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-1.0.1.tgz","fileCount":13,"unpackedSize":24427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfk5jLCRA9TVsSAnZWagAAzUQP+QDR6kKv/SBymBmBEg9f\nFWazHz8U9lqvh+16gZlRb99d82cX0+maDGFY3YPF1PEvQCfLpk0EIDA+Qg7+\nk5PVFBbHDQSsw2gI8lScTMWHkVPrAclY7yD9ICSwdQaoAD9b2n6j/Z7v7OZG\nQVJeld87oeuavjvz+kK1/X/XsrQ1l4rrxrhWchC6oWD7hlE0u3XTSRcwyMw6\nAA0nSI8LWkxvVJ38Rci8FG7QE/lcOH2vTw1g24LlQ6dlA4Q+qYlTYe6ESd7D\n/LodvUc9pXo5EZGBZg30mjCCnNiNhbG1IAsU095MgeEutZ5xTPIWeHBJzATj\nmRWAd/5cuYEJay6bZjqtwh7yOFq2eY4TsyGg2F1t5PVunIWUxPzTXRPDMCVv\nvUq2S+IBDtNg7HYcySrbYDajRLfx6Nw4LoRDq5tnnWXMkHPzXrILmEB0t8bH\nomreVm6mSxbinHpWkWg8jxhwUiKbxAO6pz/icsTOhjTRvGIFrBC4dYyHQxqP\nF2lOoI8rqrIjMamNFR8+EGeYKCfUPLyz7MVGyH7B6aJaB4ahxbjgp+GeaC1E\ndKGUQ/S1FR8SZnkJ4t8Jbcaokql2BSgf1HfVXeCtgeWE2vMK6x/kYeiNRz3p\n74Fzgkr76f8mCGD9oINlz1ZURtVYL/fpAX7GYXi4CJ2s+irLBq6rcmanXImv\nRMop\r\n=TYi6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHUvGnDAvYeYWRY/a+sLb3qlDXdRUQLJtc/sbcalCPKgIhAO/J/QFPjqYGHp4Xjy3ze9NoVo/MpjVA/7Hu7D7H6BL+"}],"size":6000,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-1.0.1.tgz"},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support_1.0.1_1603508426849_0.9056630344263124"},"_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":1603508427012,"_cnpm_publish_time":1603508427012,"dist-tags":{"latest":"7.0.0"}}