{"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.0","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":"6.3.7","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":"7c90b5b2d5abc666f51a13ec3f424de7bb906a3c","_id":"axios-cookiejar-support@0.4.0","_shasum":"331146c5e0113e67d9efa19efa2316e71c7a1c4c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.4","_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"dist":{"shasum":"331146c5e0113e67d9efa19efa2316e71c7a1c4c","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-0.4.0.tgz","integrity":"sha512-lpT137+xGXV/Y2ojFXLJVV/hu8bAp4ZBpsM0njj7Sg+tascIRhbE73WRAumnlfdvsX96eG1tUD2b4HXlkBVusA==","fileCount":24,"unpackedSize":128985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiAR/CRA9TVsSAnZWagAAOnwQAI/HU/DvqhjPoHigeKAr\nherSIZ4F0hNIE4zgzsll0RAgc7l5woL2wGSN7TRQWu3EuytJ292G7UE67w0J\n5of0c20J4ekkLBH4xG1JG4/bYU5kUwRBio7XqCG9Xqx8zXG3vMOR5DXtaFuP\nCh7tPpyADiegd59vUv41n1DSiCckAYbprDI0J/YGId0j21ub8rVodcy2P5WY\nepcOygEJ6HJj3Zk9pvIMIoEvD1oHe+mzJUJBXf3ceV4O4GoDjI7kxvnmsnZu\njMpk4zY5gm437e5I+Jmg/vjxcRxV5PR6iS5cQpCTpAKqyFqoILJi61K4gar4\nGee2jwpa8xWeBEDcoonzZuJGAtPiUqEX48w0LE2SIVm6EYmKLappHesxa1PA\nyWKVuBXpbC2hYZrhx4sjYxO81zwxGT0P2oS6/c7zjMBJOwgUjXYSsKrF2n37\nA6JtUrql/nKKdwlqD+IBXeppcyueVMQ1Cuuc1+38J7dVevPldAy9PnxY6LkZ\nLKDJU6TL8rn1EHivtikkhHBoRN1J2yu8Qai7nxDhXsyZmYtouQHBxHurIhLX\nc6K9xJS2NW5hH3MdoU5TRY+4WSS5HGeVXS1kJEV4ovXOSPd8k8fyPK0PnCqH\nmTTgFe6A7QO8B8RJGyOQP2RuAsbMgIX0bRuR5pN+R39iOPfhJhvMxVwjxI1j\naoP3\r\n=KP+c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLH8XAzSXa5pcLV1Vs3NrgvpLZQQ1nlh4U/nrqfq2O9wIhAKh2lt1MBq1uz8He29iVKXG7qFks9OUR7jx2CF2/U+XG"}],"size":33168,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-0.4.0.tgz"},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support_0.4.0_1535640702573_0.22914025840252905"},"_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":1535640702766,"_cnpm_publish_time":1535640702766,"dist-tags":{"latest":"7.0.0"}}