{"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.3.2","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.1","pify":"3.0.0","tough-cookie":"2.3.3"},"peerDependencies":{"axios":">=0.16.2"},"devDependencies":{"@babel/cli":"^7.0.0-beta.32","@babel/core":"^7.0.0-beta.32","@babel/plugin-transform-modules-commonjs":"^7.0.0-beta.32","axios":"0.17.1","cookie":"0.3.1","decache":"4.3.0","eslint":"4.13.0","fast-async":"^6.3.0","intelli-espower-loader":"1.0.1","mocha":"4.0.1","nock":"9.1.4","power-assert":"1.4.4","rimraf":"^2.6.2"},"keywords":["axios","cookie","cookiejar","cookies","tough-cookie"],"browser":{"./index.js":"./noop.js"},"types":"./index.d.ts","gitHead":"eb2e9d92ad628077c2a5481c3b7248c3d803dd65","_id":"axios-cookiejar-support@0.3.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"dist":{"integrity":"sha512-p2C9f4AziuygJnXfimTwZlOx8EUqDRTes350HI9Z12iUWfCi1t8DuMVT4Bpu5yUkaAoyZm+YQ+OZevniUlwxUw==","shasum":"73c74412d9a71bebe81efff9262cf8ba7c44d914","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-0.3.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1URhG0bAWY3DguyPH92ZDGtFTiJ/ryEi5xpJ2w2JZUgIhALPRnjrgHV/AmrcaWzUOFY1ku74PphZ7c1J6w8jEN5if"}],"size":31771,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-0.3.2.tgz"},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support-0.3.2.tgz_1515235320934_0.5861625792458653"},"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":1515235321085,"_cnpm_publish_time":1515235321085,"dist-tags":{"latest":"7.0.0"}}