{"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.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":"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.8.4","@babel/core":"7.9.0","@babel/plugin-transform-modules-commonjs":"7.9.0","@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.0","decache":"^4.5.1","intelli-espower-loader":"^1.0.1","mocha":"^7.1.1","nock":"^12.0.3","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":"a9f95a4cbb586302b82b929124085df2149568c5","_id":"axios-cookiejar-support@1.0.0","_nodeVersion":"10.20.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9pBlIU5jfrGZTnUQlt8symShviSTOSlOKGtryHx76lJPnKIXDqUT3JDAjJ1ywOQLyfiWrthIt4iJiVP2L2S4jA==","shasum":"9fceb20d3dd541eec1eb1a346bf3265a3b6e7bca","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-1.0.0.tgz","fileCount":13,"unpackedSize":24045,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekWgtCRA9TVsSAnZWagAAIt0P/0TyYNlZjcuIn/JXdrAk\nRwznXraKEyEE1EuQXZplC1wW3GPqGCnJefnzjVGq5t92JqZMxH1rHFH1pm+s\nMW+kvmtPXGEtKcgS4xs2RnLlCtFOxZEEzj+faNoT1h4VZ/kiWdRpvNtWTzSB\n6zIWZ/9KiJu6KxJ4001v7V9o4lw0D00hJ4Va07EFTEDUtDvTrej6llUBBbtv\nMHBg3hWQHZXvETvvz4Joe17nQbuy8pFsQ1SbnTwsCuKDxc6iR2clqiykNL5q\nLGWijOgMXaSnmvfNgQ6/bs6BSPP5cdtx7b8etzDOtYiEt49NQoPEuJ7c4v6i\naR20VHpdsd92Wv3jvatOAlXyT5iq+EbNjzcUr/GGkwkaUwTmPfhwLvz8QLIl\nQop9MaC57AWjSlxlfK4m0bfNbRDZVK6SU5qGyCtNo4hbMhIviboEY7S1ZR18\nqG/XWsa6v8ZQ9VSnBkznN+7I4sblvLAZeYmRj52dJxsr/sf3AET92ewczqlY\nt+sXHYnKdWH0JsdfwqVlKQI6X8It1nDx1xMCGoKsbq+Pu2yEtEpG9XX0xrLj\nevIN6x+XypYGPlmM2xyVtIHM4fGuA/g5qcpkgZSoC9GCxsaGA5lqeRpzzrug\nWGoGUU7T6PREGP72yiCFyo77n3OcTMFE+O7y3IckNroMJ4wLq7WVJGBo/28p\nytgi\r\n=pqYL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLrfSXDAT7FR+wXxhf5kXy5v8GAvzEq2LC4tugffYpwwIgYNq4dJrxSYq6Lstun/kk9F70Ib1cje2Pwp9yzujm2tA="}],"size":5901,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-1.0.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_1.0.0_1586587692640_0.295671905722263"},"_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":1586587692753,"_cnpm_publish_time":1586587692753,"dist-tags":{"latest":"7.0.0"}}