{"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.6","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","is-redirect":"^1.0.0","pify":"3.0.0","tough-cookie":"2.3.4"},"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.18.0","cookie":"0.3.1","decache":"4.4.0","eslint":"5.0.0","fast-async":"^6.3.0","intelli-espower-loader":"1.0.1","mocha":"5.1.0","nock":"9.2.4","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":"2b5c939e9b84d98dc695977d33e7641b3f2c5df9","_id":"axios-cookiejar-support@0.3.6","_shasum":"23bb88805df431e48c28e043d17fce8364bf89cd","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.4","_npmUser":{"name":"3846masa","email":"3846masahiro+git@gmail.com"},"dist":{"shasum":"23bb88805df431e48c28e043d17fce8364bf89cd","tarball":"http://registry-npm.ywwl.com/axios-cookiejar-support/download/axios-cookiejar-support-0.3.6.tgz","integrity":"sha512-SIsSu5rm3lN2aqxmyTbSYDxBX2LipPlVLrNoczc9Goh3fZvnQcG2b8W5M9GDXMXrJLAMSuZ0cI7PH1SzvgSg8w==","fileCount":24,"unpackedSize":126671,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbh+7LCRA9TVsSAnZWagAARTYP/13oAD1MCuGrlO2JYmdt\nlwb1MVb3rbKgNjGfE+pu7msCzHNoVjR6d2YQUuh9jWFbYbkytNbboxk1UI+b\nOqfAXZF6n3S48cnu+G3y5mLSgdJLgsCMtZVIVtsJY7au4BuE/coz68R6uAbD\n7Jqt1sh5QSdJ+O9PGB6FXdyiI7GAfKT5oLdbNIUlg2/BQa2rn7s6WCct8nef\nNioRARg25oml3SZ6YOiZ4ovxxOIHmtfPo5mKLW7q6vE1tGC5zqArwfPzaRhb\n5YsSyCOCjseVaZhY5Cpig18T6G8uCTgAlRCAWXFc8phgu52GI928xR8Q/Ame\n1RYO8HyN7B6sW61ZtFuOEQDPBhAki6htYOFcLwvyR6yIGGmLkh1sCznwUZSF\nN2RIjVymJ1q47ZWGjtx/tqquZpoEkWEyU7lwHJG1fa84sQyACYfcYmvvk79Q\nxqBSqQdukNrCbS47PeV3kiD6nnx5g0j3GteRl7z3GqbwFxFH9P9kzGrffsmI\nEplqyEryEQyopborGdsdDI1KVbDwLO2QkCn3vx/KlVOZQhsdAi6lMO5lyy9t\nYZBifthFDQMzdISYomtPL/nEOJ+H6ztikS0bxdfjXZgupoMIe1J3uuhvWrkv\nidCQjHt8MCd4x+bmF92wgcCTotMLU3wli5wSXclAM3Vw98o67zHV/Yyfgpk1\nut+h\r\n=V1ME\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDc0t919kc5NzONCkV5fnpnU/4uqdAdFCGthoOv/wDtpgIhAOjVWBZGK6qDmHCS++6zNUwbCNmxKxH4WtQUS27RuETi"}],"size":33222,"noattachment":false,"key":"/axios-cookiejar-support/-/axios-cookiejar-support-0.3.6.tgz"},"maintainers":[{"name":"3846masa","email":"3846masahiro+git@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-cookiejar-support_0.3.6_1535635147266_0.28356845553946397"},"_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":1535635147397,"_cnpm_publish_time":1535635147397,"dist-tags":{"latest":"7.0.0"}}