{"name":"axios-cookiejar-support","description":"Add tough-cookie support to axios.","author":{"name":"3846masa"},"license":"MIT","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":"0.4.1","main":"./lib/index","directories":{"example":"example","test":"test"},"scripts":{"build":"babel lib -x .mjs --out-dir lib","clean":"rimraf lib/**/*.js","test":"mocha --require intelli-espower-loader"},"dependencies":{"@types/tough-cookie":"^2.3.3","is-redirect":"^1.0.0","pify":"^4.0.0","tough-cookie":"^2.4.3"},"peerDependencies":{"axios":">=0.16.2"},"devDependencies":{"@babel/cli":"7.0.0","@babel/core":"7.0.0","@babel/plugin-transform-modules-commonjs":"7.0.0","axios":"0.18.0","cookie":"0.3.1","decache":"4.4.0","eslint":"5.4.0","fast-async":"7.0.6","intelli-espower-loader":"1.0.1","mocha":"5.2.0","nock":"9.6.1","power-assert":"1.6.0","rimraf":"2.6.2"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"browser":{"./lib/index":"./noop.js"},"types":"./index.d.ts","gitHead":"12f9f700d580121897624aab54f98725b7f95673","_id":"axios-cookiejar-support@0.4.1","_shasum":"a28b5f07f29e21ed47c9412be8ee6ba3b1869c1a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.4","_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"dist":{"shasum":"a28b5f07f29e21ed47c9412be8ee6ba3b1869c1a","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-0.4.1.tgz","integrity":"sha512-CHfFbqc/Tv3O3Y+v4r4Pmppe5RpDKiXue4rgl2gXgsN7HOqIOLzfC9UWnrCmIBAJ81saNFhc2J0MS3Moh+Z6mw==","fileCount":24,"unpackedSize":127450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiAWvCRA9TVsSAnZWagAAbY4P/RhnoZqSLWWP8ultbSkA\netXxxTZBXkuZ/yn4qmNSiz9d4NzfIyNjhxCxz3hrWfZV47Gl9w4Da2Aubefk\nwojnJvYP/YQ/cvNEX461WfxGo3SixmpJoGQG8rkSsnavMGMnXM4Qwv4Ny7q6\nAkeKAcTpFwocVd7DW9TEZQxS4/xFUtCl76I7uhgt5lZe4L3brKC6/Epn9qFT\ntYOLcFlxXGQR4MF1/pcZgKxtwAQ2TzjundzvqXYEkw3QIUNpii+eRLsvT3n5\nF7fVy+XCKFOBP2jpRCC6SX+zT0BsLL7/SV2snC4v2ro8TCI6Wcq4rxWSuxYo\nWNL7gpSLiDwkf5A7I+Jvdjle+b2xYOT8dnYXLVBwS28P9qLb8QvwO3AduFSh\nDXR6w8xLd1NZyC/w8XKJK15BuA5sdXQaQaic/pBWFntf9z+tJF9SqepchB2L\n6YE1gD3brIPH6THoAOQ70jpmW7EdDTIzNABJNe/sWHG40HrCbe1P1TDg57pr\nC24X48BDZGHY60D22UKJLPGgFG1UcYxqoNHijJunQPACC0WZZNIboSkXFjhF\n6OF0Azv9aLikYTu/FfO+X28gegYDNxPjjAeZ2dveBCC1VNZPOCXxdPEMpRaI\nx4I/dZ41LDpAI9+AvW6BLc72pHQWK8UYo5pizPmTpu4rRVOQN2R3fd/4g/oz\nXARI\r\n=VUEU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqvge3UGbfLASKUaxplXhJFKYI0AO/Dms91qV/60oXAQIgNwO12XTrQZyyA4sBD76iMFib7ijs2FzXMnQgE8yq8BA="}],"size":32994,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-0.4.1.tgz"},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support_0.4.1_1535641006847_0.3910736681158238"},"_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":1535641006980,"_cnpm_publish_time":1535641006980,"dist-tags":{"latest":"7.0.0"}}