{"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.1","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.12.0","fast-async":"^6.3.0","intelli-espower-loader":"1.0.1","mocha":"4.0.1","nock":"9.1.1","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":"551ba88bbecba5e935fa5a31e01c094c27251e11","_id":"axios-cookiejar-support@0.3.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"dist":{"integrity":"sha512-wChNNUKXIgfKo9N5sCWtYQ5VPWj8bYeLSyTGweN+XlDYygiPHvP7AS33toRFi5VNyk6b0uiPs5Gob5MJwMeocw==","shasum":"d8398cb98b5509816dfe7105c776c6532dda87aa","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-0.3.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnldwYard48ufeRICQZfK7HzrXoMb2pDrrPhHGjBbLlAiAecm2f0IA0cwCpocm0XwLTfm+8mVxGk9NBpRQ7+mGvFw=="}],"size":31769,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-0.3.1.tgz"},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support-0.3.1.tgz_1513275253533_0.6992217199876904"},"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":1513275254473,"_cnpm_publish_time":1513275254473,"dist-tags":{"latest":"7.0.0"}}