{"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.0","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":"echo noop"},"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.4.4","@babel/core":"7.4.5","@babel/plugin-transform-modules-commonjs":"7.4.4","fast-async":"7.0.6","rimraf":"2.6.3"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"licenseText":"The MIT License (MIT)\nCopyright © 2016 3846masa\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"axios-cookiejar-support@0.5.0","dist":{"shasum":"f4fe02eeb5513285dc8844353f8218736e6bdd7c","integrity":"sha512-QrAmYWkdymQeDc62jcPkKmYbVnM4hihAUpn844ShERxjmF+PLomfWGWsB/mxepv4JBBzhkIZ2utHohYtDDbUJw==","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-0.5.0.tgz","fileCount":16,"unpackedSize":24073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBPIjCRA9TVsSAnZWagAAKlMP/A87FtrQVWwpNKZi2ePQ\n6i6VMom4S33ZCDTPcHPGVGWHGfg6SYxINpbfZ4IMraQ0ESDgvHpHsLEnHi8t\ngEkiY/Aml7d87F2v01tVKCMy1O/kmWpmNM+N7mWtUdWRm4lrGh+u0y+IKqE8\nGe5+MacoUBhUtTcy3f16CMIwj416VlD7E8Afem0l5estu9UeX60ufHO9duex\ncDmBFxu5w8ICltmnpY98y+YnrWxrqufFcm1KH6BQgmDNmPV3uM6rJhGg73PU\n8J0STR3Cvb/t8otnsEW9w+6gLdwg9PgktxTKm2YmI+ZkV8QkdFliRRzompAx\nnhncmW4ewcDY7AKr4DaGkQ5Flcc+HKJATmp1ubKzUqPVi57kymxF7FBE953T\nMZkDCXvXJUbO4KjDimbpKtdiCgTk9rNNVrgKcIKeMX+x0lO7nkpXbTQzLJI6\nqEKFghlTISl72tBWDbS1o+IcDYwNOEJLr+NkCwvgkxNpWyJpSCmTWWgqlb3r\neiaknisIUOFVIWBWaUppMwLo6baCUkmljNxh2HsGi5BuBw/Gep4tCaEQiell\nz3QauPYT748KSC3zNjv+ea6g1dd//eztIkk5Bdc3YlC9nLGk8wYYKWydMYsn\n9dfW9kRAzz8WsA1+YZ99Hq+UREHSYL1WTRGOeDIueR3DJW5nHKTZn+5oEKAb\n3N3n\r\n=GV+k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLvDws2xcOd7P8BHITbXYEzw9kaX+5HhcNqd/xfaSpsAIhALdGKDG0pvK2MrJnaxFjtLoHXK2q6Zac3XPpMq1wdgDM"}],"size":6111,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-0.5.0.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_0.5.0_1560605218527_0.1477564052839362"},"_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":1560605218646,"_cnpm_publish_time":1560605218646,"dist-tags":{"latest":"7.0.0"}}