{"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":"0.5.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":{"@types/tough-cookie":"^2.3.3","is-redirect":"^1.0.0","pify":"^4.0.0","tough-cookie":"^3.0.1"},"peerDependencies":{"axios":">=0.16.2"},"devDependencies":{"@babel/cli":"7.5.0","@babel/core":"7.5.4","@babel/plugin-transform-modules-commonjs":"7.5.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.0","decache":"^4.5.1","fast-async":"7.0.6","intelli-espower-loader":"^1.0.1","mocha":"^6.2.0","nock":"^10.0.6","power-assert":"^1.6.1","rimraf":"3.0.0"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"gitHead":"bfbca734b6616960df7337c3e919cece46cb3e37","_id":"axios-cookiejar-support@0.5.1","_shasum":"0622c2849cefbaf8424a50b630283231b62fc277","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.17.1","_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"dist":{"shasum":"0622c2849cefbaf8424a50b630283231b62fc277","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-0.5.1.tgz","integrity":"sha512-mmMbNDjpkAKlyxVOYjkpvV6rDRoSjBXwHbfkWvnsplRTGYCergbHvZInRB1G3lqumllUQwo0A4uPoqEsYfzq3A==","fileCount":13,"unpackedSize":25259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdz2UBCRA9TVsSAnZWagAAKVAP/jLKRU4mK289PRC37f2K\nPrdm6TzcvZD9emePlkG/RjuYlfDXNEtM4GZo6e2KvZKeqI2uOdTLmMa8poSu\nKP61iaYrTZNc1cYVnBDdyrtUwNPv/mas1mG5YvvY1IKEeVMjKMBjf23mcMwN\nvCHFSq1SYOA6borbXttPK7F0V+YLCNXpS/rMgT1xiv2gnN/WYf6hetMih2Ln\nZwga/MMsMmxgPKPRctqfaN+2PPhEmB2WKeAyGBpduNb1H9QManIp6EjigyYH\nbbOheMMKlhcC7RLg/qyIhbaCIf4r70gh8bJeccCwX2qmaZFmpzTVdKT1hSFb\nee34kNhrWYll9yMefMiltdJu16s/pQ053O/TFQLK5cUn67V/FT90B5/c0Npx\nv3YvVtwYRONhKdB+Bx43ruyrjilM6ZoN4ZyfamaUMThJZX6oKPbheGiJLjpU\nfye6qpbSd4QvuCTVHNroiuR8Mm+GEDfsBbHTGNTOxXa8r8I7fp7ruadBCUiU\ny4JglV+5DCsVWU+cGXNSCNOP07OzTqTjS8pD2GAIfJWe6hruIPnqhopxvoZj\nlP+OqskuV6nS0+zX6JHmisv6Q2jdlE8yLcZD88W3UF541Wru48laMhTpQFn1\nKNWWmesWK0Y7M9phXy6Mg6ZXkMsY5gSfwFp6NcK9OdtA4LeJU54/CT0ZryzC\n4QxC\r\n=Yojo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWMEE39vft50uYcwK0bkzKZDtqnqOfvVj7PmsFKNl1bwIhAOJuGH7vXtlvFPvbDgbsUw0y+9TTmblwb8YIybLLom0Q"}],"size":6243,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-0.5.1.tgz"},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support_0.5.1_1573872897433_0.5062417042255511"},"_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":1573872897576,"_cnpm_publish_time":1573872897576,"dist-tags":{"latest":"7.0.0"}}