{"_id":"got-cjs","_rev":"14-d4c29a855e2f478baa0486235d62512d","name":"got-cjs","dist-tags":{"next":"12.0.4","latest":"12.5.4"},"versions":{"0.0.1":{"name":"got-cjs","version":"0.0.1","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.0.1","@szmarczak/http-timer":"^4.0.5","@types/cacheable-request":"^6.0.1","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.0","cacheable-request":"^7.0.1","decompress-response":"^6.0.0","get-stream":"^6.0.1","http2-wrapper":"^2.0.5","lowercase-keys":"^2.0.0","p-cancelable":"^2.1.1","responselike":"^2.0.0"},"devDependencies":{"@sindresorhus/tsconfig":"^1.0.2","@sinonjs/fake-timers":"^6.0.1","@types/benchmark":"^2.1.0","@types/express":"^4.17.11","@types/node":"^14.14.45","@types/node-fetch":"^2.5.10","@types/pem":"^1.9.5","@types/pify":"^5.0.0","@types/readable-stream":"^2.3.9","@types/request":"^2.48.5","@types/sinon":"^9.0.9","@types/tough-cookie":"^4.0.0","ava":"^3.15.0","axios":"^0.21.1","benchmark":"^2.1.4","body-parser":"^1.19.0","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^3.0.1","delay":"^5.0.0","express":"^4.17.1","form-data":"^4.0.0","nock":"^13.0.11","node-fetch":"^2.6.1","np":"^7.5.0","nyc":"^15.1.0","p-event":"^4.2.0","pem":"^1.14.4","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^10.0.0","slow-stream":"0.0.4","tempy":"^1.0.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^9.1.1","typescript":"4.2.4","xo":"^0.40.1"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-non-null-assertion":"off","import/order":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","gitHead":"06a2d3d7d8d4fcc6898b6364d1a18ca1d407092b","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@0.0.1","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-OsSKabSkymQjdPKLV9EPPBVYXqAGlGEp0LX8YuCZyuOAk0yZ5pXszFOfz+0VthZfTFR3SwxruAN89dtljrteow==","shasum":"de1fd605fbf1d64e6fcd9bad3892c51aeacf5d6a","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-0.0.1.tgz","fileCount":43,"unpackedSize":290287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv9lFCRA9TVsSAnZWagAA5kEQAKUZNOUwWpy3kKdppw9p\neU5JvPOBAHutmd1gewyXlWkCrZIoyi2jDoIBIAmMZ+eIfQRvuMT8MaV2MK/q\nb0jzLWutr43Yc7l927/6hG1/74s/HzpjhAuLXwO+tFyV2LWVfaeqQEsRri1z\nII9GJMdTb7k1oJs/z5N9mpjsbrVorQ5zb+ovwWkdCDS9TbiYd/G7ue2eizNi\nYKJDVT4+KkaMFr/YEsy1rCl64367BMeK6J68YImIsr9Fi9OAa5sZL6IK7mC1\n+VjYqnstTZU/PBh4ZhxeqziLaKBNqEJpK0K7fq6DlTrv332IYFsEqp1f4xb8\nQQYam6LL1KzZClBfaCiYx5NqMafAnGaEXlBGfUEAdeqPmPAEWeCFZ3YngdoY\nqCxMhtmy+gtJ7FiNoXZuAMF1mHCUQzG4Kj3WMd8+BFUJUvmSH8gEBPd20beJ\ntKmDbVnxzwzkoXgAKlaXze5lKFNLNEQqNqFgNMQ1RSQ3AEsHSPy8RGiCTC8a\nckAXVjlH9m03a5aJohhJf7JDw3aMXMxDrSr82JH1CjVcIXTRxKJdpiPHE40v\n1TYRazEudpOWnGg3pjOSHZie30Dr13Q88Q5tp8xlBY6DctsqKNXoH0S1rXls\nBD8ZWVvzBl4iBUEvNQX128EigC+qiznfaklNRMjpDSnfTHEBF1RWc+jd/B65\nx5Kw\r\n=1Gqt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2WLOc5i89vYYPRQrFGIWy4lIXqT8eFo8YaNNlF9OnFAiEAjCsOoouIZWYBYXu6McffRCY/d0IbtAgi2wKSBWP31b8="}]},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_0.0.1_1623185733833_0.878981930259424"},"_hasShrinkwrap":false},"0.0.2":{"name":"got-cjs","version":"0.0.2","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.0.1","@szmarczak/http-timer":"^4.0.5","@types/cacheable-request":"^6.0.1","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.0","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","get-stream":"^6.0.1","http2-wrapper":"^2.0.5","lowercase-keys":"^2.0.0","p-cancelable":"^2.1.1","responselike":"^2.0.0"},"devDependencies":{"@sindresorhus/tsconfig":"^1.0.2","@sinonjs/fake-timers":"^6.0.1","@types/benchmark":"^2.1.0","@types/express":"^4.17.11","@types/node":"^14.14.45","@types/node-fetch":"^2.5.10","@types/pem":"^1.9.5","@types/pify":"^5.0.0","@types/readable-stream":"^2.3.9","@types/request":"^2.48.5","@types/sinon":"^9.0.9","@types/tough-cookie":"^4.0.0","ava":"^3.15.0","axios":"^0.21.1","benchmark":"^2.1.4","body-parser":"^1.19.0","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^3.0.1","delay":"^5.0.0","express":"^4.17.1","form-data":"^4.0.0","nock":"^13.0.11","node-fetch":"^2.6.1","np":"^7.5.0","nyc":"^15.1.0","p-event":"^4.2.0","pem":"^1.14.4","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^10.0.0","slow-stream":"0.0.4","tempy":"^1.0.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^9.1.1","typescript":"4.2.4","xo":"^0.40.1"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-non-null-assertion":"off","import/order":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","readme":"<div align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"media/logo.svg\" alt=\"Got\">\n\t<br>\n\t<br>\n\t<br>\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\tSindre's open source work is supported by the community.<br>Special thanks to:\n\t\t\t</sup>\n\t\t</p>\n\t\t<br>\n\t\t<a href=\"https://moxy.studio\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/moxy-logo.svg\" width=\"160\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://retool.com/?utm_campaign=sindresorhus\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/retool-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://strapi.io/?ref=sindresorhus\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png\" width=\"200\" alt=\"Strapi\">\n\t\t\t</div>\n\t\t\t<b>Strapi is the leading open-source headless CMS.</b>\n\t\t\t<div>\n\t\t\t\t<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t</p>\n\t<!-- <p align=\"center\">Huge thanks to <a href=\"https://moxy.studio\"><img src=\"https://sindresorhus.com/assets/thanks/moxy-logo.svg\" valign=\"middle\" width=\"150\"></a> for sponsoring Sindre Sorhus!\n\t</p>\n\t<p align=\"center\"><sup>(they love Got too!)</sup></p> -->\n\t<br>\n\t<br>\n</div>\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.now.sh/badge?p=got)](https://packagephobia.now.sh/result?p=got)\n\n[Moving from Request?](documentation/migration-guides.md) [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\nFor browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the same people.\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Highlights\n\n- [Promise API](#api)\n- [Stream API](#streams)\n- [Pagination API](#pagination)\n- [HTTP2 support](#http2)\n- [Request cancelation](#aborting-the-request)\n- [RFC compliant caching](#cache-adapters)\n- [Follows redirects](#followredirect)\n- [Retries on failure](#retry)\n- [Progress events](#onuploadprogress-progress)\n- [Handles gzip/deflate/brotli](#decompress)\n- [Timeout handling](#timeout)\n- [Errors with metadata](#errors)\n- [JSON mode](#json-mode)\n- [WHATWG URL support](#url)\n- [HTTPS API](#advanced-https-api)\n- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Types](#types)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Used by 4K+ packages and 1.8M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Install\n\n```\n$ npm install got\n```\n\n## Usage\n\n###### Promise\n\n```js\nimport got from 'got';\n\ntry {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> '<!doctype html> ...'\n} catch (error) {\n\tconsole.log(error.response.body);\n\t//=> 'Internal server error ...'\n}\n```\n\n###### JSON\n\n```js\nimport got from 'got';\n\nconst {body} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t},\n\tresponseType: 'json'\n});\n\nconsole.log(body.data);\n//=> {hello: 'world'}\n```\n\nSee [JSON mode](#json-mode) for more details.\n\n###### Streams\n\n```js\nimport {promisify} from 'util';\nimport stream from 'stream';\nimport fs from 'fs';\nimport got from 'got';\n\nconst pipeline = promisify(stream.pipeline);\n\nawait pipeline(\n\tgot.stream('https://sindresorhus.com'),\n\tfs.createWriteStream('index.html')\n);\n\n// For POST, PUT, PATCH, and DELETE methods, `got.stream` returns a `stream.Writable`.\nawait pipeline(\n\tfs.createReadStream('index.html'),\n\tgot.stream.post('https://sindresorhus.com')\n);\n```\n\n**Tip:** `from.pipe(to)` doesn't forward errors. Instead, use [`stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback).\n\n**Note:** While `got.post('https://example.com')` resolves, `got.stream.post('https://example.com')` will hang indefinitely until a body is provided. If there's no body on purpose, remember to `.end()` the stream or set the [`body`](#body) option to an empty string.\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via [`options.method`](#method).\n\n**By default, Got will retry on failure. To disable this option, set [`options.retry`](#retry) to `0`.**\n\n#### got(url?, options?)\n\nReturns a Promise giving a [Response object](#response) or a [Got Stream](#streams-1) if `options.isStream` is set to true.\n\n##### url\n\nType: `string | object`\n\nThe URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url).\n\nProperties from `options` will override properties in the parsed `url`.\n\nIf no protocol is specified, it will throw a `TypeError`.\n\n**Note:** The query string is **not** parsed as search params. Example:\n\n```js\nawait got('https://example.com/?query=a b'); //=> https://example.com/?query=a%20b\nawait got('https://example.com/', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b\n\n// The query string is overridden by `searchParams`\nawait got('https://example.com/?query=a b', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b\n```\n\n##### options\n\nType: `object`\n\nAny of the [`https.request`](https://nodejs.org/api/https.html#https_https_request_options_callback) options.\n\n**Note:** Legacy URL support is disabled. `options.path` is supported only for backwards compatibility. Use `options.pathname` and `options.searchParams` instead. `options.auth` has been replaced with `options.username` & `options.password`.\n\n###### method\n\nType: `string`\\\nDefault: `GET`\n\nThe HTTP method used to make the request.\n\n###### prefixUrl\n\nType: `string | URL`\n\nWhen specified, `prefixUrl` will be prepended to `url`. The prefix can be any valid URL, either relative or absolute.\\\nA trailing slash `/` is optional - one will be added automatically.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n**Note:** Leading slashes in `input` are disallowed when using this option to enforce consistency and avoid confusion. For example, when the prefix URL is `https://example.com/foo` and the input is `/bar`, there's ambiguity whether the resulting URL would become `https://example.com/foo/bar` or `https://example.com/bar`. The latter is used by browsers.\n\n**Tip:** Useful when used with [`got.extend()`](#custom-endpoints) to create niche-specific Got instances.\n\n**Tip:** You can change `prefixUrl` using hooks as long as the URL still includes the `prefixUrl`. If the URL doesn't include it anymore, it will throw.\n\n```js\nimport got from 'got';\n\nawait got('unicorn', {prefixUrl: 'https://cats.com'});\n//=> 'https://cats.com/unicorn'\n\nconst instance = got.extend({\n\tprefixUrl: 'https://google.com'\n});\n\nawait instance('unicorn', {\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\toptions => {\n\t\t\t\toptions.prefixUrl = 'https://cats.com';\n\t\t\t}\n\t\t]\n\t}\n});\n//=> 'https://cats.com/unicorn'\n```\n\n###### headers\n\nType: `object`\\\nDefault: `{}`\n\nRequest headers.\n\nExisting headers will be overwritten. Headers set to `undefined` will be omitted.\n\n###### isStream\n\nType: `boolean`\\\nDefault: `false`\n\nReturns a `Stream` instead of a `Promise`. This is equivalent to calling `got.stream(url, options?)`.\n\n###### body\n\nType: `string | Buffer | stream.Readable` or [`form-data` instance](https://github.com/form-data/form-data)\n\n**Note #1:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note #2:** If you provide this option, `got.stream()` will be read-only.\n\n**Note #3:** If you provide a payload with the `GET` or `HEAD` method, it will throw a `TypeError` unless the method is `GET` and the `allowGetBody` option is set to `true`.\n\n**Note #4:** This option is not enumerable and will not be merged with the instance defaults.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\nSince Got 12, the `content-length` is not automatically set when `body` is a `fs.createReadStream`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note #1:** If you provide this option, `got.stream()` will be read-only.\\\n**Note #2:** This option is not enumerable and will not be merged with the instance defaults.\n\nJSON body. If the `Content-Type` header is not set, it will be set to `application/json`.\n\n###### context\n\nType: `object`\n\nUser data. `context` is shallow merged and enumerable. If it contains non-enumerable properties they will NOT be merged.\n\nIt's very useful for storing auth tokens:\n\n```js\nimport got from 'got';\n\nconst instance = got.extend({\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\toptions => {\n\t\t\t\tif (!options.context || !options.context.token) {\n\t\t\t\t\tthrow new Error('Token required');\n\t\t\t\t}\n\n\t\t\t\toptions.headers.token = options.context.token;\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst context = {\n\ttoken: 'secret'\n};\n\nconst response = await instance('https://httpbin.org/headers', {context});\n\n// Let's see the headers\nconsole.log(response.body);\n```\n\n###### responseType\n\nType: `string`\\\nDefault: `'text'`\n\n**Note:** When using streams, this option is ignored.\n\nThe parsing method. Can be `'text'`, `'json'` or `'buffer'`.\n\nThe promise also has `.text()`, `.json()` and `.buffer()` methods which return another Got promise for the parsed body.\\\nIt's like setting the options to `{responseType: 'json', resolveBodyOnly: true}` but without affecting the main Got promise.\n\nExample:\n\n```js\nconst responsePromise = got(url);\nconst bufferPromise = responsePromise.buffer();\nconst jsonPromise = responsePromise.json();\n\nconst [response, buffer, json] = await Promise.all([responsePromise, bufferPromise, jsonPromise]);\n// `response` is an instance of Got Response\n// `buffer` is an instance of Buffer\n// `json` is an object\n```\n\n```js\n// This\nconst body = await got(url).json();\n\n// is semantically the same as this\nconst body = await got(url, {responseType: 'json', resolveBodyOnly: true});\n```\n\n**Note:** `buffer` will return the raw body buffer. Modifying it will also alter the result of `promise.text()` and `promise.json()`. Before overwriting the buffer, please copy it first via `Buffer.from(buffer)`. See https://github.com/nodejs/node/issues/27080\n\n###### parseJson\n\nType: `(text: string) => unknown`\\\nDefault: `(text: string) => JSON.parse(text)`\n\nA function used to parse JSON responses.\n\n<details>\n<summary>Example</summary>\n\nUsing [`bourne`](https://github.com/hapijs/bourne) to prevent prototype pollution:\n\n```js\nimport got from 'got';\nimport Bourne from '@hapi/bourne';\n\nconst parsed = await got('https://example.com', {\n\tparseJson: text => Bourne.parse(text)\n}).json();\n\nconsole.log(parsed);\n```\n</details>\n\n###### stringifyJson\n\nType: `(object: unknown) => string`\\\nDefault: `(object: unknown) => JSON.stringify(object)`\n\nA function used to stringify the body of JSON requests.\n\n<details>\n<summary>Examples</summary>\n\nIgnore properties starting with `_`:\n\n```js\nimport got from 'got';\n\nawait got.post('https://example.com', {\n\tstringifyJson: object => JSON.stringify(object, (key, value) => {\n\t\tif (key.startsWith('_')) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn value;\n\t}),\n\tjson: {\n\t\tsome: 'payload',\n\t\t_ignoreMe: 1234\n\t}\n});\n```\n\nAll numbers as strings:\n\n```js\nimport got from 'got';\n\nawait got.post('https://example.com', {\n\tstringifyJson: object => JSON.stringify(object, (key, value) => {\n\t\tif (typeof value === 'number') {\n\t\t\treturn value.toString();\n\t\t}\n\n\t\treturn value;\n\t}),\n\tjson: {\n\t\tsome: 'payload',\n\t\tnumber: 1\n\t}\n});\n```\n</details>\n\n###### resolveBodyOnly\n\nType: `boolean`\\\nDefault: `false`\n\nWhen set to `true` the promise will return the [Response body](#body-1) instead of the [Response](#response) object.\n\n###### cookieJar\n\nType: `object` | [`tough.CookieJar` instance](https://github.com/salesforce/tough-cookie#cookiejar)\n\n**Note:** If you provide this option, `options.headers.cookie` will be overridden.\n\nCookie support. You don't have to care about parsing or how to store them. [Example](#cookies).\n\n###### cookieJar.setCookie\n\nType: `Function<Promise>`\n\nThe function takes two arguments: `rawCookie` (`string`) and `url` (`string`).\n\n###### cookieJar.getCookieString\n\nType: `Function<Promise>`\n\nThe function takes one argument: `url` (`string`).\n\n###### ignoreInvalidCookies\n\nType: `boolean`\\\nDefault: `false`\n\nIgnore invalid cookies instead of throwing an error. Only useful when the `cookieJar` option has been set. Not recommended.\n\n###### encoding\n\nType: `string`\\\nDefault: `'utf8'`\n\n[Encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to be used on `setEncoding` of the response data.\n\nTo get a [`Buffer`](https://nodejs.org/api/buffer.html), you need to set [`responseType`](#responseType) to `buffer` instead. Don't set this option to `null`.\n\n**Note:** This doesn't affect streams! Instead, you need to do `got.stream(...).setEncoding(encoding)`.\n\n###### form\n\nType: `object`\n\n**Note #1:** If you provide this option, `got.stream()` will be read-only.\\\n**Note #2:** This option is not enumerable and will not be merged with the instance defaults.\n\nThe form body is converted to a query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf the `Content-Type` header is not present, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object<string, string | number> | URLSearchParams`\n\nQuery string that will be added to the request URL. This will override the query string in `url`.\n\nIf you need to pass in an array, you can do it using a `URLSearchParams` instance:\n\n```js\nimport got from 'got';\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\nawait got('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nThere are some exceptions in regards to `URLSearchParams` behavior:\n\n**Note #1:** `null` values are not stringified, an empty string is used instead.\n\n**Note #2:** `undefined` values are not stringified, the entry is skipped instead.\n\n###### timeout\n\nType: `number | object`\n\nMilliseconds to wait for the server to end the response before aborting the request with [`got.TimeoutError`](#gottimeouterror) error (a.k.a. `request` property). By default, there's no timeout.\n\nThis also accepts an `object` with the following fields to constrain the duration of each phase of the request lifecycle:\n\n- `lookup` starts when a socket is assigned and ends when the hostname has been resolved. Does not apply when using a Unix domain socket.\n- `connect` starts when `lookup` completes (or when the socket is assigned if lookup does not apply to the request) and ends when the socket is connected.\n- `secureConnect` starts when `connect` completes and ends when the handshaking process completes (HTTPS only).\n- `socket` starts when the socket is connected. See [request.setTimeout](https://nodejs.org/api/http.html#http_request_settimeout_timeout_callback).\n- `response` starts when the request has been written to the socket and ends when the response headers are received.\n- `send` starts when the socket is connected and ends with the request has been written to the socket.\n- `request` starts when the request is initiated and ends when the response's `end` event fires.\n- ~~`read` starts when the `response` event is emitted and ends when the response's `end` event fires.~~\n\n**Note:** The `read` timeout is blocked by https://github.com/nodejs/node/issues/35923\n\n###### retry\n\nType: `number | object`\\\nDefault:\n- limit: `2`\n- calculateDelay: `({attemptCount, retryOptions, error, computedValue}) => computedValue | Promise<computedValue>`\n- methods: `GET` `PUT` `HEAD` `DELETE` `OPTIONS` `TRACE`\n- statusCodes: [`408`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) [`413`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413) [`429`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) [`500`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) [`502`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) [`503`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) [`504`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) [`521`](https://support.cloudflare.com/hc/en-us/articles/115003011431#521error) [`522`](https://support.cloudflare.com/hc/en-us/articles/115003011431#522error) [`524`](https://support.cloudflare.com/hc/en-us/articles/115003011431#524error)\n- maxRetryAfter: `undefined`\n- errorCodes: `ETIMEDOUT` `ECONNRESET` `EADDRINUSE` `ECONNREFUSED` `EPIPE` `ENOTFOUND` `ENETUNREACH` `EAI_AGAIN`\n\nAn object representing `limit`, `calculateDelay`, `methods`, `statusCodes`, `maxRetryAfter` and `errorCodes` fields for maximum retry count, retry handler, allowed methods, allowed status codes, maximum [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) time and allowed error codes.\n\nIf `maxRetryAfter` is set to `undefined`, it will use `options.timeout`.\\\nIf [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) header is greater than `maxRetryAfter`, it will cancel the request.\n\nDelays between retries counts with function `1000 * Math.pow(2, retry - 1) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` that receives an object with `attemptCount`, `retryOptions`, `error` and `computedValue` properties for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (or a Promise resolving with it) (`0` return value cancels retry).\n\n**Note:** Got does not retry on `POST` by default.\n\n**Note:** The `calculateDelay` function is responsible for the entire retry mechanism, including the `limit` property. To support the `limit` property, you need to check whether `computedValue` is different than `0`.\n\nBy default, it retries *only* on the specified methods, status codes, and on these network errors:\n- `ETIMEDOUT`: One of the [timeout](#timeout) limits were reached.\n- `ECONNRESET`: Connection was forcibly closed by a peer.\n- `EADDRINUSE`: Could not bind to any free port.\n- `ECONNREFUSED`: Connection was refused by the server.\n- `EPIPE`: The remote side of the stream being written has been closed.\n- `ENOTFOUND`: Couldn't resolve the hostname to an IP address.\n- `ENETUNREACH`: No internet connection.\n- `EAI_AGAIN`: DNS lookup timed out.\n\n<a name=\"retry-stream\"></a>\n\nYou can retry Got streams too. The implementation looks like this:\n\n```js\nimport fs from 'fs';\nimport got from 'got';\n\nlet writeStream;\n\nconst fn = (retryCount = 0) => {\n\tconst stream = got.stream('https://example.com');\n\tstream.retryCount = retryCount;\n\n\tif (writeStream) {\n\t\twriteStream.destroy();\n\t}\n\n\twriteStream = fs.createWriteStream('example.com');\n\n\tstream.pipe(writeStream);\n\n\t// If you don't attach the listener, it will NOT make a retry.\n\t// It automatically checks the listener count so it knows whether to retry or not :)\n\tstream.once('retry', fn);\n};\n\nfn();\n```\n\n###### followRedirect\n\nType: `boolean`\\\nDefault: `true`\n\nDefines if redirect responses should be followed automatically.\n\nNote that if a `303` is sent by the server in response to any request type (`POST`, `DELETE`, etc.), Got will automatically request the resource pointed to in the location header via `GET`. This is in accordance with [the spec](https://tools.ietf.org/html/rfc7231#section-6.4.4).\n\n###### methodRewriting\n\nType: `boolean`\\\nDefault: `true`\n\nSpecifies if the redirects should be [rewritten as `GET`](https://tools.ietf.org/html/rfc7231#section-6.4).\n\nIf `false`, when sending a POST request and receiving a `302`, it will resend the body to the new location using the same HTTP method (`POST` in this case).\n\n###### allowGetBody\n\nType: `boolean`\\\nDefault: `false`\n\n**Note:** The [RFC 7321](https://tools.ietf.org/html/rfc7231#section-4.3.1) doesn't specify any particular behavior for the GET method having a payload, therefore **it's considered an [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern)**.\n\nSet this to `true` to allow sending body for the `GET` method. However, the [HTTP/2 specification](https://tools.ietf.org/html/rfc7540#section-8.1.3) says that `An HTTP GET request includes request header fields and no payload body`, therefore when using the HTTP/2 protocol this option will have no effect. This option is only meant to interact with non-compliant servers when you have no other choice.\n\n###### maxRedirects\n\nType: `number`\\\nDefault: `10`\n\nIf exceeded, the request will be aborted and a `MaxRedirectsError` will be thrown.\n\n###### decompress\n\nType: `boolean`\\\nDefault: `true`\n\nDecompress the response automatically.\n\nThis will set the `accept-encoding` header to `gzip, deflate, br` unless you set it yourself.\n\nIf this is disabled, a compressed response is returned as a `Buffer`. This may be useful if you want to handle decompression yourself or stream the raw compressed data.\n\n###### cache\n\nType: `object | false`\\\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### cacheOptions\n\nType: `object | undefined`\\\nDefault: `{}`\n\n[Cache options](https://github.com/kornelski/http-cache-semantics#constructor-options) used for the specified request.\n\n###### dnsCache\n\nType: `CacheableLookup | false`\\\nDefault: `false`\n\nAn instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups. Useful when making lots of requests to different *public* hostnames.\n\n**Note:** This should stay disabled when making requests to internal hostnames such as `localhost`, `database.local` etc.\\\n`CacheableLookup` uses `dns.resolver4(..)` and `dns.resolver6(...)` under the hood and fall backs to `dns.lookup(...)` when the first two fail, which may lead to additional delay.\n\n###### dnsLookupIpVersion\n\nType: `'auto' | 'ipv4' | 'ipv6'`\\\nDefault: `'auto'`\n\nIndicates which DNS record family to use.\\\nValues:\n - `auto`: IPv4 (if present) or IPv6\n - `ipv4`: Only IPv4\n - `ipv6`: Only IPv6\n\nNote: If you are using the undocumented option `family`, `dnsLookupIpVersion` will override it.\n\n```js\n// `api6.ipify.org` will be resolved as IPv4 and the request will be over IPv4 (the website will respond with your public IPv4)\nawait got('https://api6.ipify.org', {\n\tdnsLookupIpVersion: 'ipv4'\n});\n\n// `api6.ipify.org` will be resolved as IPv6 and the request will be over IPv6 (the website will respond with your public IPv6)\nawait got('https://api6.ipify.org', {\n\tdnsLookupIpVersion: 'ipv6'\n});\n```\n\n###### lookup\n\nType: `Function`\\\nDefault: [`dns.lookup`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback)\n\nCustom DNS resolution logic.\n\nThe function signature is the same as [`dns.lookup`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback).\n\n###### request\n\nType: `Function`\\\nDefault: `http.request | https.request` *(Depending on the protocol)*\n\nCustom request function. The main purpose of this is to [support HTTP2 using a wrapper](https://github.com/szmarczak/http2-wrapper).\n\n###### http2\n\nType: `boolean`\\\nDefault: `false`\n\nIf set to `true`, Got will additionally accept HTTP2 requests.\n\nIt will choose either HTTP/1.1 or HTTP/2 depending on the ALPN protocol.\n\n**Note:** This option requires Node.js 15.10.0 or newer as HTTP/2 support on older Node.js versions is very buggy.\n\n**Note:** Overriding `options.request` will disable HTTP2 support.\n\n```js\nimport got from 'got';\n\nconst {headers} = await got('https://nghttp2.org/httpbin/anything', {http2: true});\n\nconsole.log(headers.via);\n//=> '2 nghttpx'\n```\n\n###### throwHttpErrors\n\nType: `boolean`\\\nDefault: `true`\n\nDetermines if a [`got.HTTPError`](#gothttperror) is thrown for unsuccessful responses.\n\nIf this is disabled, requests that encounter an error status code will be resolved with the `response` instead of throwing. This may be useful if you are checking for resource availability and are expecting error responses.\n\n###### agent\n\nType: `object`\n\nAn object representing `http`, `https` and `http2` keys for [`http.Agent`](https://nodejs.org/api/http.html#http_class_http_agent), [`https.Agent`](https://nodejs.org/api/https.html#https_class_https_agent) and [`http2wrapper.Agent`](https://github.com/szmarczak/http2-wrapper#new-http2agentoptions) instance. This is necessary because a request to one protocol might redirect to another. In such a scenario, Got will switch over to the right protocol agent for you.\n\nIf a key is not present, it will default to a global agent.\n\n```js\nimport got from 'got';\nimport HttpAgent from 'agentkeepalive';\n\nconst {HttpsAgent} = HttpAgent;\n\nawait got('https://sindresorhus.com', {\n\tagent: {\n\t\thttp: new HttpAgent(),\n\t\thttps: new HttpsAgent()\n\t}\n});\n```\n\n###### hooks\n\nType: `object<string, Function[]>`\n\nHooks allow modifications during the request lifecycle. Hook functions may be async and are run serially.\n\n###### hooks.init\n\nType: `Function[]`\\\nDefault: `[]`\n\nCalled with plain [request options](#options), right before their normalization. This is especially useful in conjunction with [`got.extend()`](#instances) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note #1:** This hook must be synchronous!\\\n**Note #2:** Errors in this hook will be converted into an instances of [`RequestError`](#gotrequesterror).\\\n**Note #3:** The options object may not have a `url` property. To modify it, use a `beforeRequest` hook instead.\n\n###### hooks.beforeRequest\n\nType: `Function[]`\\\nDefault: `[]`\n\nCalled with [normalized](source/core/index.ts) [request options](#options). Got will make no further changes to the request before it is sent. This is especially useful in conjunction with [`got.extend()`](#instances) when you want to create an API client that, for example, uses HMAC-signing.\n\n**Note:** Changing `options.json` or `options.form` has no effect on the request, you should change `options.body` instead. If needed, update the `options.headers` accordingly. Example:\n\n```js\nimport got from 'got';\n\ngot.post({\n\tjson: {payload: 'old'},\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\toptions => {\n\t\t\t\toptions.body = JSON.stringify({payload: 'new'});\n\t\t\t\toptions.headers['content-length'] = options.body.length.toString();\n\t\t\t}\n\t\t]\n\t}\n});\n```\n\n**Tip:** You can override the `request` function by returning a [`ClientRequest`-like](https://nodejs.org/api/http.html#http_class_http_clientrequest) instance or a [`IncomingMessage`-like](https://nodejs.org/api/http.html#http_class_http_incomingmessage) instance. This is very useful when creating a custom cache mechanism.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`\\\nDefault: `[]`\n\nCalled with [normalized](source/core/index.ts) [request options](#options) and the redirect [response](#response). Got will make no further changes to the request. This is especially useful when you want to avoid dead sites. Example:\n\n```js\nimport got from 'got';\n\nawait got('https://example.com', {\n\thooks: {\n\t\tbeforeRedirect: [\n\t\t\t(options, response) => {\n\t\t\t\tif (options.hostname === 'deadSite') {\n\t\t\t\t\toptions.hostname = 'fallbackSite';\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n});\n```\n\n###### hooks.beforeRetry\n\nType: `Function[]`\\\nDefault: `[]`\n\n**Note:** When using streams, this hook is ignored.\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options), the error and the retry count. Got will make no further changes to the request. This is especially useful when some extra work is required before the next try. Example:\n\n```js\nimport got from 'got';\n\ngot.post('https://example.com', {\n\thooks: {\n\t\tbeforeRetry: [\n\t\t\t(options, error, retryCount) => {\n\t\t\t\tif (error.response.statusCode === 413) { // Payload too large\n\t\t\t\t\toptions.body = getNewBody();\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n});\n```\n\n**Note:** When retrying in a `afterResponse` hook, all remaining `beforeRetry` hooks will be called without the `error` and `retryCount` arguments.\n\n###### hooks.afterResponse\n\nType: `Function[]`\\\nDefault: `[]`\n\n**Note:** When using streams, this hook is ignored.\n\nCalled with [response object](#response) and a retry function. Calling the retry function will trigger `beforeRetry` hooks.\n\nEach function should return the response. This is especially useful when you want to refresh an access token. Example:\n\n```js\nimport got from 'got';\n\nconst instance = got.extend({\n\thooks: {\n\t\tafterResponse: [\n\t\t\t(response, retryWithMergedOptions) => {\n\t\t\t\tif (response.statusCode === 401) { // Unauthorized\n\t\t\t\t\tconst updatedOptions = {\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\ttoken: getNewToken() // Refresh the access token\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t// Save for further requests\n\t\t\t\t\tinstance.defaults.options = got.mergeOptions(instance.defaults.options, updatedOptions);\n\n\t\t\t\t\t// Make a new retry\n\t\t\t\t\treturn retryWithMergedOptions(updatedOptions);\n\t\t\t\t}\n\n\t\t\t\t// No changes otherwise\n\t\t\t\treturn response;\n\t\t\t}\n\t\t],\n\t\tbeforeRetry: [\n\t\t\t(options, error, retryCount) => {\n\t\t\t\t// This will be called on `retryWithMergedOptions(...)`\n\t\t\t}\n\t\t]\n\t},\n\tmutableDefaults: true\n});\n```\n\n###### hooks.beforeError\n\nType: `Function[]`\\\nDefault: `[]`\n\nCalled with an `Error` instance. The error is passed to the hook right before it's thrown. This is especially useful when you want to have more detailed errors.\n\n**Note:** Errors thrown while normalizing input options are thrown directly and not part of this hook.\n\n```js\nimport got from 'got';\n\nawait got('https://api.github.com/some-endpoint', {\n\thooks: {\n\t\tbeforeError: [\n\t\t\terror => {\n\t\t\t\tconst {response} = error;\n\t\t\t\tif (response && response.body) {\n\t\t\t\t\terror.name = 'GitHubError';\n\t\t\t\t\terror.message = `${response.body.message} (${response.statusCode})`;\n\t\t\t\t}\n\n\t\t\t\treturn error;\n\t\t\t}\n\t\t]\n\t}\n});\n```\n\n##### pagination\n\nType: `object`\n\n**Note:** We're [looking for feedback](https://github.com/sindresorhus/got/issues/1052), any ideas on how to improve the API are welcome.\n\n###### pagination.transform\n\nType: `Function`\\\nDefault: `response => JSON.parse(response.body)`\n\nA function that transform [`Response`](#response) into an array of items. This is where you should do the parsing.\n\n###### pagination.paginate\n\nType: `Function`\\\nDefault: [`Link` header logic](source/index.ts)\n\nThe function takes an object with the following properties:\n- `response` - The current response object.\n- `currentItems` - Items from the current response.\n- `allItems` - An empty array, unless [`pagination.stackAllItems`](#pagination.stackAllItems) is set to `true`, in which case, it's an array of the emitted items.\n\nIt should return an object representing Got options pointing to the next page. The options are merged automatically with the previous request, therefore the options returned `pagination.paginate(...)` must reflect changes only. If there are no more pages, `false` should be returned.\n\nFor example, if you want to stop when the response contains less items than expected, you can use something like this:\n\n```js\nimport got from 'got';\n\nconst limit = 10;\n\nconst items = got.paginate('https://example.com/items', {\n\tsearchParams: {\n\t\tlimit,\n\t\toffset: 0\n\t},\n\tpagination: {\n\t\tpaginate: ({response, currentItems, allItems}) => {\n\t\t\tconst previousSearchParams = response.request.options.searchParams;\n\t\t\tconst previousOffset = previousSearchParams.get('offset');\n\n\t\t\tif (currentItems.length < limit) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tsearchParams: {\n\t\t\t\t\t...previousSearchParams,\n\t\t\t\t\toffset: Number(previousOffset) + limit,\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t}\n});\n\nconsole.log('Items from all pages:', items);\n```\n\n###### pagination.filter\n\nType: `Function`\\\nDefault: `({item, currentItems, allItems}) => true`\n\nChecks whether the item should be emitted or not.\n\n###### pagination.shouldContinue\n\nType: `Function`\\\nDefault: `({item, currentItems, allItems}) => true`\n\nChecks whether the pagination should continue.\n\nFor example, if you need to stop **before** emitting an entry with some flag, you should use `({item}) => !item.flag`. If you want to stop **after** emitting the entry, you should use `({item, allItems}) => allItems.some(item => item.flag)` instead.\n\n###### pagination.countLimit\n\nType: `number`\\\nDefault: `Infinity`\n\nThe maximum amount of items that should be emitted.\n\n###### pagination.backoff\n\nType: `number`\\\nDefault: `0`\n\nMilliseconds to wait before the next request is triggered.\n\n###### pagination.requestLimit\n\nType: `number`\\\nDefault: `10000`\n\nThe maximum amount of request that should be triggered. [Retries on failure](#retry) are not counted towards this limit.\n\nFor example, it can be helpful during development to avoid an infinite number of requests.\n\n###### pagination.stackAllItems\n\nType: `boolean`\\\nDefault: `false`\n\nDefines how the property `allItems` in [`pagination.paginate`](#pagination.paginate), [`pagination.filter`](#pagination.filter) and [`pagination.shouldContinue`](#pagination.shouldContinue) is managed.\n\nBy default, the property `allItems` is always an empty array. This setting can be helpful to save on memory usage when working with a large dataset.\n\nWhen set to `true`, the property `allItems` is an array of the emitted items.\n\n##### localAddress\n\nType: `string`\n\nThe IP address used to send the request from.\n\n### Advanced HTTPS API\n\nNote: If the request is not HTTPS, these options will be ignored.\n\n##### https.certificateAuthority\n\nType: `string | Buffer | Array<string | Buffer>`\n\nOverride the default Certificate Authorities ([from Mozilla](https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReport))\n\n```js\n// Single Certificate Authority\nawait got('https://example.com', {\n\thttps: {\n\t\tcertificateAuthority: fs.readFileSync('./my_ca.pem')\n\t}\n});\n```\n\n##### https.key\n\nType: `string | Buffer | Array<string | Buffer> | object[]`\n\nPrivate keys in [PEM](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) format.\\\n[PEM](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) allows the option of private keys being encrypted. Encrypted keys will be decrypted with `options.https.passphrase`.\\\nMultiple keys with different passphrases can be provided as an array of `{pem: <string | Buffer>, passphrase: <string>}`\n\n##### https.certificate\n\nType: `string | Buffer | (string | Buffer)[]`\n\n[Certificate chains](https://en.wikipedia.org/wiki/X.509#Certificate_chains_and_cross-certification) in [PEM](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) format.\\\nOne cert chain should be provided per private key (`options.https.key`).\\\nWhen providing multiple cert chains, they do not have to be in the same order as their private keys in `options.https.key`.\\\nIf the intermediate certificates are not provided, the peer will not be able to validate the certificate, and the handshake will fail.\n\n##### https.passphrase\n\nType: `string`\n\nThe passphrase to decrypt the `options.https.key` (if different keys have different passphrases refer to `options.https.key` documentation).\n\n##### https.pfx\n\nType: `string | Buffer | Array<string | Buffer | object>`\n\n[PFX or PKCS12](https://en.wikipedia.org/wiki/PKCS_12) encoded private key and certificate chain. Using `options.https.pfx` is an alternative to providing `options.https.key` and `options.https.certificate` individually. A PFX is usually encrypted, and if it is, `options.https.passphrase` will be used to decrypt it.\n\nMultiple PFX's can be be provided as an array of unencrypted buffers or an array of objects like:\n\n```ts\n{\n\tbuffer: string | Buffer,\n\tpassphrase?: string\n}\n```\n\nThis object form can only occur in an array. If the provided buffers are encrypted, `object.passphrase` can be used to decrypt them. If `object.passphrase` is not provided, `options.https.passphrase` will be used for decryption.\n\n##### Examples for `https.key`, `https.certificate`, `https.passphrase`, and `https.pfx`\n\n```js\n// Single key with certificate\nawait got('https://example.com', {\n\thttps: {\n\t\tkey: fs.readFileSync('./client_key.pem'),\n\t\tcertificate: fs.readFileSync('./client_cert.pem')\n\t}\n});\n\n// Multiple keys with certificates (out of order)\nawait got('https://example.com', {\n\thttps: {\n\t\tkey: [\n\t\t\tfs.readFileSync('./client_key1.pem'),\n\t\t\tfs.readFileSync('./client_key2.pem')\n\t\t],\n\t\tcertificate: [\n\t\t\tfs.readFileSync('./client_cert2.pem'),\n\t\t\tfs.readFileSync('./client_cert1.pem')\n\t\t]\n\t}\n});\n\n// Single key with passphrase\nawait got('https://example.com', {\n\thttps: {\n\t\tkey: fs.readFileSync('./client_key.pem'),\n\t\tcertificate: fs.readFileSync('./client_cert.pem'),\n\t\tpassphrase: 'client_key_passphrase'\n\t}\n});\n\n// Multiple keys with different passphrases\nawait got('https://example.com', {\n\thttps: {\n\t\tkey: [\n\t\t\t{pem: fs.readFileSync('./client_key1.pem'), passphrase: 'passphrase1'},\n\t\t\t{pem: fs.readFileSync('./client_key2.pem'), passphrase: 'passphrase2'},\n\t\t],\n\t\tcertificate: [\n\t\t\tfs.readFileSync('./client_cert1.pem'),\n\t\t\tfs.readFileSync('./client_cert2.pem')\n\t\t]\n\t}\n});\n\n// Single encrypted PFX with passphrase\nawait got('https://example.com', {\n\thttps: {\n\t\tpfx: fs.readFileSync('./fake.pfx'),\n\t\tpassphrase: 'passphrase'\n\t}\n});\n\n// Multiple encrypted PFX's with different passphrases\nawait got('https://example.com', {\n\thttps: {\n\t\tpfx: [\n\t\t\t{\n\t\t\t\tbuffer: fs.readFileSync('./key1.pfx'),\n\t\t\t\tpassphrase: 'passphrase1'\n\t\t\t},\n\t\t\t{\n\t\t\t\tbuffer: fs.readFileSync('./key2.pfx'),\n\t\t\t\tpassphrase: 'passphrase2'\n\t\t\t}\n\t\t]\n\t}\n});\n\n// Multiple encrypted PFX's with single passphrase\nawait got('https://example.com', {\n\thttps: {\n\t\tpassphrase: 'passphrase',\n\t\tpfx: [\n\t\t\t{\n\t\t\t\tbuffer: fs.readFileSync('./key1.pfx')\n\t\t\t},\n\t\t\t{\n\t\t\t\tbuffer: fs.readFileSync('./key2.pfx')\n\t\t\t}\n\t\t]\n\t}\n});\n```\n\n##### https.rejectUnauthorized\n\nType: `boolean`\\\nDefault: `true`\n\nIf set to `false`, all invalid SSL certificates will be ignored and no error will be thrown.\\\nIf set to `true`, it will throw an error whenever an invalid SSL certificate is detected.\n\nWe strongly recommend to have this set to `true` for security reasons.\n\n```js\nimport got from 'got';\n\n// Correct:\nawait got('https://example.com', {\n\thttps: {\n\t\trejectUnauthorized: true\n\t}\n});\n\n// You can disable it when developing an HTTPS app:\nawait got('https://localhost', {\n\thttps: {\n\t\trejectUnauthorized: false\n\t}\n});\n\n// Never do this:\nawait got('https://example.com', {\n\thttps: {\n\t\trejectUnauthorized: false\n\t}\n});\n```\n\n##### https.checkServerIdentity\n\nType: `Function`\\\nSignature: `(hostname: string, certificate: DetailedPeerCertificate) => Error | undefined`\\\nDefault: `tls.checkServerIdentity` (from the `tls` module)\n\nThis function enable a custom check of the certificate.\\\nNote: In order to have the function called the certificate must not be `expired`, `self-signed` or with an `untrusted-root`.\\\nThe function parameters are:\n- `hostname`: The server hostname (used when connecting)\n- `certificate`: The server certificate\n\nThe function must return `undefined` if the check succeeded or an `Error` if it failed.\n\n```js\nawait got('https://example.com', {\n\thttps: {\n\t\tcheckServerIdentity: (hostname, certificate) => {\n\t\t\tif (hostname === 'example.com') {\n\t\t\t\treturn; // Certificate OK\n\t\t\t}\n\n\t\t\treturn new Error('Invalid Hostname'); // Certificate NOT OK\n\t\t}\n\t}\n});\n```\n\n#### Response\n\nThe response object will typically be a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage), however, if returned from the cache it will be a [response-like object](https://github.com/lukechilds/responselike) which behaves in the same way.\n\n##### request\n\nType: `object`\n\n**Note:** This is not a [http.ClientRequest](https://nodejs.org/api/http.html#http_class_http_clientrequest).\n\n- `options` - The Got options that were set on this request.\n\n##### body\n\nType: `string | object | Buffer` *(Depending on `options.responseType`)*\n\nThe result of the request.\n\n##### rawBody\n\nType: `Buffer`\n\nThe raw result of the request.\n\n##### url\n\nType: `string`\n\nThe request URL or the final URL after redirects.\n\n##### ip\n\nType: `string`\n\nThe remote IP address.\n\n**Note:** Not available when the response is cached. This is hopefully a temporary limitation, see [lukechilds/cacheable-request#86](https://github.com/lukechilds/cacheable-request/issues/86).\n\n##### requestUrl\n\nType: `string`\n\nThe original request URL.\n\n##### timings\n\nType: `object`\n\nThe object contains the following properties:\n\n- `start` - Time when the request started.\n- `socket` - Time when a socket was assigned to the request.\n- `lookup` - Time when the DNS lookup finished.\n- `connect` - Time when the socket successfully connected.\n- `secureConnect` - Time when the socket securely connected.\n- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired `response` event.\n- `end` - Time when the response fired `end` event.\n- `error` - Time when the request fired `error` event.\n- `abort` - Time when the request fired `abort` event.\n- `phases`\n\t- `wait` - `timings.socket - timings.start`\n\t- `dns` - `timings.lookup - timings.socket`\n\t- `tcp` - `timings.connect - timings.lookup`\n\t- `tls` - `timings.secureConnect - timings.connect`\n\t- `request` - `timings.upload - (timings.secureConnect || timings.connect)`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `(timings.end || timings.error || timings.abort) - timings.start`\n\nIf something has not been measured yet, it will be `undefined`.\n\n**Note:** The time is a `number` representing the milliseconds elapsed since the UNIX epoch.\n\n##### isFromCache\n\nType: `boolean`\n\nWhether the response was retrieved from the cache.\n\n##### redirectUrls\n\nType: `string[]`\n\nThe redirect URLs.\n\n##### retryCount\n\nType: `number`\n\nThe number of times the request was retried.\n\n#### Streams\n\n**Note:** Progress events, redirect events and request/response events can also be used with promises.\n\n**Note:** To access `response.isFromCache` you need to use `got.stream(url, options).isFromCache`. The value will be undefined until the `response` event.\n\n#### got.stream(url, options?)\n\nSets `options.isStream` to `true`.\n\nReturns a [duplex stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex) with additional events:\n\n##### .on('request', request)\n\n`request` event to get the request object of the request.\n\n**Tip:** You can use `request` event to abort request:\n\n```js\ngot.stream('https://github.com')\n\t.on('request', request => setTimeout(() => request.destroy(), 50));\n```\n\n##### .on('response', response)\n\nThe `response` event to get the response object of the final request.\n\n##### .on('redirect', response, nextOptions)\n\nThe `redirect` event to get the response object of a redirect. The second argument is options for the next request to the redirect location.\n\n##### .on('uploadProgress', progress)\n##### .uploadProgress\n##### .on('downloadProgress', progress)\n##### .downloadProgress\n\nProgress events for uploading (sending a request) and downloading (receiving a response). The `progress` argument is an object like:\n\n```js\n{\n\tpercent: 0.1,\n\ttransferred: 1024,\n\ttotal: 10240\n}\n```\n\nIf the `content-length` header is missing, `total` will be `undefined`.\n\n```js\nconst response = await got('https://sindresorhus.com')\n\t.on('downloadProgress', progress => {\n\t\t// Report download progress\n\t})\n\t.on('uploadProgress', progress => {\n\t\t// Report upload progress\n\t});\n\nconsole.log(response);\n```\n\n##### .once('retry', retryCount, error)\n\nTo enable retrying on a Got stream, it is required to have a `retry` handler attached.\\\nWhen this event is emitted, you should reset the stream you were writing to and prepare the body again.\n\nSee the [`retry`](#retry-stream) option for an example implementation.\n\n##### .ip\n\nType: `string`\n\nThe remote IP address.\n\n##### .aborted\n\nType: `boolean`\n\nIndicates whether the request has been aborted or not.\n\n##### .timings\n\nThe same as `response.timings`.\n\n##### .isFromCache\n\nThe same as `response.isFromCache`.\n\n##### .socket\n\nThe same as `response.socket`.\n\n##### .on('error', error)\n\nThe emitted `error` is an instance of [`RequestError`](#gotrequesterror).\n\n#### Pagination\n\n#### got.paginate(url, options?)\n#### got.paginate.each(url, options?)\n\nReturns an async iterator:\n\n```js\nconst countLimit = 10;\n\nconst pagination = got.paginate('https://api.github.com/repos/sindresorhus/got/commits', {\n\tpagination: {countLimit}\n});\n\nconsole.log(`Printing latest ${countLimit} Got commits (newest to oldest):`);\n\nfor await (const commitData of pagination) {\n\tconsole.log(commitData.commit.message);\n}\n```\n\nSee [`options.pagination`](#pagination) for more pagination options.\n\n#### got.paginate.all(url, options?)\n\nReturns a Promise for an array of all results:\n\n```js\nconst countLimit = 10;\n\nconst results = await got.paginate.all('https://api.github.com/repos/sindresorhus/got/commits', {\n\tpagination: {countLimit}\n});\n\nconsole.log(`Printing latest ${countLimit} Got commits (newest to oldest):`);\nconsole.log(results);\n```\n\nSee [`options.pagination`](#pagination) for more pagination options.\n\n#### got.get(url, options?)\n#### got.post(url, options?)\n#### got.put(url, options?)\n#### got.patch(url, options?)\n#### got.head(url, options?)\n#### got.delete(url, options?)\n\nSets [`options.method`](#method) to the method name and makes a request.\n\n### Instances\n\n#### got.extend(...options)\n\nConfigure a new `got` instance with default `options`. The `options` are merged with the parent instance's `defaults.options` using [`got.mergeOptions`](#gotmergeoptionsparentoptions-newoptions). You can access the resolved options with the `.defaults` property on the instance.\n\n```js\nconst client = got.extend({\n\tprefixUrl: 'https://example.com',\n\theaders: {\n\t\t'x-unicorn': 'rainbow'\n\t}\n});\n\nclient.get('demo');\n\n/* HTTP Request =>\n * GET /demo HTTP/1.1\n * Host: example.com\n * x-unicorn: rainbow\n */\n```\n\n```js\nconst client = got.extend({\n\tprefixUrl: 'httpbin.org',\n\theaders: {\n\t\t'x-foo': 'bar'\n\t}\n});\nconst {headers} = await client.get('headers').json();\n//=> headers['x-foo'] === 'bar'\n\nconst jsonClient = client.extend({\n\tresponseType: 'json',\n\tresolveBodyOnly: true,\n\theaders: {\n\t\t'x-baz': 'qux'\n\t}\n});\nconst {headers: headers2} = await jsonClient.get('headers');\n//=> headers2['x-foo'] === 'bar'\n//=> headers2['x-baz'] === 'qux'\n```\n\nAdditionally, `got.extend()` accepts two properties from the `defaults` object: `mutableDefaults` and `handlers`. Example:\n\n```js\n// You can now modify `mutableGot.defaults.options`.\nconst mutableGot = got.extend({mutableDefaults: true});\n\nconst mergedHandlers = got.extend({\n\thandlers: [\n\t\t(options, next) => {\n\t\t\tdelete options.headers.referer;\n\n\t\t\treturn next(options);\n\t\t}\n\t]\n});\n```\n\n**Note:** Handlers can be asynchronous. The recommended approach is:\n\n```js\nconst handler = (options, next) => {\n\tif (options.isStream) {\n\t\t// It's a Stream\n\t\treturn next(options);\n\t}\n\n\t// It's a Promise\n\treturn (async () => {\n\t\ttry {\n\t\t\tconst response = await next(options);\n\t\t\tresponse.yourOwnProperty = true;\n\t\t\treturn response;\n\t\t} catch (error) {\n\t\t\t// Every error will be replaced by this one.\n\t\t\t// Before you receive any error here,\n\t\t\t// it will be passed to the `beforeError` hooks first.\n\t\t\t// Note: this one won't be passed to `beforeError` hook. It's final.\n\t\t\tthrow new Error('Your very own error.');\n\t\t}\n\t})();\n};\n\nconst instance = got.extend({handlers: [handler]});\n```\n\n#### got.extend(...options, ...instances, ...)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (including hooks),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.extend({\n\toptions: {\n\t\theaders: {\n\t\t\tcow: 'moo'\n\t\t}\n\t}\n});\n\n// The same as `got.extend(a).extend(b)`.\n// Note `a` is options and `b` is an instance.\ngot.extend(a, b);\n//=> {headers: {cat: 'meow', cow: 'moo'}}\n```\n\n#### got.mergeOptions(parent, ...sources)\n\nExtends parent options. Avoid using [object spread](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#Spread_in_object_literals) as it doesn't work recursively:\n\n```js\nconst a = {headers: {cat: 'meow', wolf: ['bark', 'wrrr']}};\nconst b = {headers: {cow: 'moo', wolf: ['auuu']}};\n\n{...a, ...b}            // => {headers: {cow: 'moo', wolf: ['auuu']}}\ngot.mergeOptions(a, b)  // => {headers: {cat: 'meow', cow: 'moo', wolf: ['auuu']}}\n```\n\n**Note:** Only Got options are merged! Custom user options should be defined via [`options.context`](#context).\n\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is not defined, the old value is used.\n- If the new property is explicitly set to `undefined`:\n\t- If the parent property is a plain `object`, the parent value is deeply cloned.\n\t- Otherwise, `undefined` is used.\n- If the parent value is an instance of `URLSearchParams`:\n\t- If the new value is a `string`, an `object` or an instance of `URLSearchParams`, a new `URLSearchParams` instance is created. The values are merged using [`urlSearchParams.append(key, value)`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/append). The keys defined in the new value override the keys defined in the parent value. Please note that `null` values point to an empty string and `undefined` values will exclude the entry.\n\t- Otherwise, the only available value is `undefined`.\n- If the new property is a plain `object`:\n\t- If the parent property is a plain `object` too, both values are merged recursively into a new `object`.\n\t- Otherwise, only the new value is deeply cloned.\n- If the new property is an `Array`, it overwrites the old one with a deep clone of the new property.\n- Properties that are not enumerable, such as `context`, `body`, `json`, and `form`, will not be merged.\n- Otherwise, the new value is assigned to the key.\n\n```js\nconst a = {json: {cat: 'meow'}};\nconst b = {json: {cow: 'moo'}};\n\ngot.mergeOptions(a, b);\n//=> {json: {cow: 'moo'}}\n```\n\n#### got.defaults\n\nType: `object`\n\nThe Got defaults used in that instance.\n\n##### [options](#options)\n\n##### handlers\n\nType: `Function[]`\\\nDefault: `[]`\n\nAn array of functions. You execute them directly by calling `got()`. They are some sort of \"global hooks\" - these functions are called first. The last handler (*it's hidden*) is either [`asPromise`](source/core/as-promise/index.ts) or [`asStream`](source/core/index.ts), depending on the `options.isStream` property.\n\nEach handler takes two arguments:\n\n###### [options](#options)\n\n###### next()\n\nReturns a `Promise` or a `Stream` depending on [`options.isStream`](#isstream).\n\n```js\nconst settings = {\n\thandlers: [\n\t\t(options, next) => {\n\t\t\tif (options.isStream) {\n\t\t\t\t// It's a Stream, so we can perform stream-specific actions on it\n\t\t\t\treturn next(options)\n\t\t\t\t\t.on('request', request => {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\trequest.abort();\n\t\t\t\t\t\t}, 50);\n\t\t\t\t\t});\n\t\t\t}\n\n\t\t\t// It's a Promise\n\t\t\treturn next(options);\n\t\t}\n\t],\n\toptions: got.mergeOptions(got.defaults.options, {\n\t\tresponseType: 'json'\n\t})\n};\n\nconst jsonGot = got.extend(settings);\n```\n\n##### mutableDefaults\n\nType: `boolean`\\\nDefault: `false`\n\nA read-only boolean describing whether the defaults are mutable or not. If set to `true`, you can [update headers over time](#hooksafterresponse), for example, update an access token when it expires.\n\n## Types\n\nGot exports some handy TypeScript types and interfaces. See the type definition for all the exported types.\n\n### Got\n\nTypeScript will automatically infer types for Got instances, but in case you want to define something like dependencies, you can import the available types directly from Got.\n\n```ts\nimport {GotRequestFunction} from 'got';\n\ninterface Dependencies {\n\treadonly post: GotRequestFunction\n}\n```\n\n### Hooks\n\nWhen writing hooks, you can refer to their types to keep your interfaces consistent.\n\n```ts\nimport {BeforeRequestHook} from 'got';\n\nconst addAccessToken = (accessToken: string): BeforeRequestHook => options => {\n\toptions.path = `${options.path}?access_token=${accessToken}`;\n}\n```\n\n## Errors\n\nEach error contains an `options` property which are the options Got used to create a request - just to make debugging easier.\\\nAdditionally, the errors may have `request` (Got Stream) and `response` (Got Response) properties depending on which phase of the request failed.\n\n#### got.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. All the errors below inherit this one.\n\n#### got.CacheError\n\nWhen a cache method fails, for example, if the database goes down or there's a filesystem error.\n\n#### got.ReadError\n\nWhen reading from response stream fails.\n\n#### got.ParseError\n\nWhen server response code is 2xx, and parsing body fails. Includes a `response` property.\n\n#### got.UploadError\n\nWhen the request body is a stream and an error occurs while reading from that stream.\n\n#### got.HTTPError\n\nWhen the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304. Includes a `response` property.\n\n#### got.MaxRedirectsError\n\nWhen the server redirects you more than ten times. Includes a `response` property.\n\n#### got.UnsupportedProtocolError\n\nWhen given an unsupported protocol.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\n\n#### got.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n## Aborting the request\n\nThe promise returned by Got has a [`.cancel()`](https://github.com/sindresorhus/p-cancelable) method which when called, aborts the request.\n\n```js\nconst request = got(url, options);\n\n// …\n\n// In another part of the code\nif (something) {\n\trequest.cancel();\n}\n\n// …\n\ntry {\n\tawait request;\n} catch (error) {\n\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t// Handle cancelation\n\t}\n\n\t// Handle other errors\n}\n```\n\nWhen using hooks, simply throw an error to abort the request.\n\n```js\nimport got from 'got';\n\nconst request = got(url, {\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\t() => {\n\t\t\t\tthrow new Error('Oops. Request canceled.');\n\t\t\t}\n\t\t]\n\t}\n});\n\ntry {\n\tawait request;\n} catch (error) {\n\t// …\n}\n```\n\nTo abort the Got Stream request, just call `stream.destroy()`.\n\n```js\nimport got from 'got';\n\nconst stream = got.stream(url);\nstream.destroy();\n```\n\n<a name=\"cache-adapters\"></a>\n## Cache\n\nGot implements [RFC 7234](https://httpwg.org/specs/rfc7234.html) compliant HTTP caching which works out of the box in-memory and is easily pluggable with a wide range of storage adapters. Fresh cache entries are served directly from the cache, and stale cache entries are revalidated with `If-None-Match`/`If-Modified-Since` headers. You can read more about the underlying cache behavior in the [`cacheable-request` documentation](https://github.com/lukechilds/cacheable-request). For DNS cache, Got uses [`cacheable-lookup`](https://github.com/szmarczak/cacheable-lookup).\n\nYou can use the JavaScript `Map` type as an in-memory cache:\n\n```js\nimport got from 'got';\n\nconst map = new Map();\n\nlet response = await got('https://sindresorhus.com', {cache: map});\nconsole.log(response.isFromCache);\n//=> false\n\nresponse = await got('https://sindresorhus.com', {cache: map});\nconsole.log(response.isFromCache);\n//=> true\n```\n\nGot uses [Keyv](https://github.com/lukechilds/keyv) internally to support a wide range of storage adapters. For something more scalable you could use an [official Keyv storage adapter](https://github.com/lukechilds/keyv#official-storage-adapters):\n\n```\n$ npm install @keyv/redis\n```\n\n```js\nimport got from 'got';\nimport KeyvRedis from '@keyv/redis';\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\nawait got('https://sindresorhus.com', {cache: redis});\n```\n\nGot supports anything that follows the Map API, so it's easy to write your own storage adapter or use a third-party solution.\n\nFor example, the following are all valid storage adapters:\n\n```js\nconst storageAdapter = new Map();\n\nawait got('https://sindresorhus.com', {cache: storageAdapter});\n```\n\n```js\nimport storageAdapter from './my-storage-adapter';\n\nawait got('https://sindresorhus.com', {cache: storageAdapter});\n```\n\n```js\nimport QuickLRU from 'quick-lru';\n\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\nawait got('https://sindresorhus.com', {cache: storageAdapter});\n```\n\nView the [Keyv docs](https://github.com/lukechilds/keyv) for more information on how to use storage adapters.\n\n## Proxies\n\nYou can use the [`tunnel`](https://github.com/koichik/node-tunnel) package with the `agent` option to work with proxies:\n\n```js\nimport got from 'got';\nimport tunnel from 'tunnel';\n\nawait got('https://sindresorhus.com', {\n\tagent: {\n\t\thttps: tunnel.httpsOverHttp({\n\t\t\tproxy: {\n\t\t\t\thost: 'localhost'\n\t\t\t}\n\t\t})\n\t}\n});\n```\n\nOtherwise, you can use the [`hpagent`](https://github.com/delvedor/hpagent) package, which keeps the internal sockets alive to be reused.\n\n```js\nimport got from 'got';\nimport {HttpsProxyAgent} from 'hpagent';\n\nawait got('https://sindresorhus.com', {\n\tagent: {\n\t\thttps: new HttpsProxyAgent({\n\t\t\tkeepAlive: true,\n\t\t\tkeepAliveMsecs: 1000,\n\t\t\tmaxSockets: 256,\n\t\t\tmaxFreeSockets: 256,\n\t\t\tscheduling: 'lifo',\n\t\t\tproxy: 'https://localhost:8080'\n\t\t})\n\t}\n});\n```\n\nAlternatively, use [`global-agent`](https://github.com/gajus/global-agent) to configure a global proxy for all HTTP/HTTPS traffic in your program.\n\nRead the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper/#proxy-support) docs to learn about proxying for HTTP/2.\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nimport {promisify} from 'util';\nimport got from 'got';\nimport {CookieJar} from 'tough-cookie';\n\nconst cookieJar = new CookieJar();\nconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\nawait setCookie('foo=bar', 'https://example.com');\nawait got('https://example.com', {cookieJar});\n```\n\n## Form data\n\nYou can use the [`form-data`](https://github.com/form-data/form-data) package to create POST request with form data:\n\n```js\nimport fs from 'fs';\nimport got from 'got';\nimport FormData from 'form-data';\n\nconst form = new FormData();\n\nform.append('my_file', fs.createReadStream('/foo/bar.jpg'));\n\ngot.post('https://example.com', {\n\tbody: form\n});\n```\n\n## OAuth\n\nYou can use the [`oauth-1.0a`](https://github.com/ddo/oauth-1.0a) package to create a signed OAuth request:\n\n```js\nimport crypto from 'crypto';\nimport got from 'got';\nimport OAuth from 'oauth-1.0a';\n\nconst oauth = OAuth({\n\tconsumer: {\n\t\tkey: process.env.CONSUMER_KEY,\n\t\tsecret: process.env.CONSUMER_SECRET\n\t},\n\tsignature_method: 'HMAC-SHA1',\n\thash_function: (baseString, key) => crypto.createHmac('sha1', key).update(baseString).digest('base64')\n});\n\nconst token = {\n\tkey: process.env.ACCESS_TOKEN,\n\tsecret: process.env.ACCESS_TOKEN_SECRET\n};\n\nconst url = 'https://api.twitter.com/1.1/statuses/home_timeline.json';\n\nawait got(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\n```\n\n## Unix Domain Sockets\n\nRequests can also be sent via [unix domain sockets](http://serverfault.com/questions/124517/whats-the-difference-between-unix-socket-and-tcp-ip-socket). Use the following URL scheme: `PROTOCOL://unix:SOCKET:PATH`.\n\n- `PROTOCOL` - `http` or `https` *(optional)*\n- `SOCKET` - Absolute path to a unix domain socket, for example: `/var/run/docker.sock`\n- `PATH` - Request path, for example: `/v2/keys`\n\n```js\nimport got from 'got';\n\nawait got('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\nawait got('unix:/var/run/docker.sock:/containers/json');\n```\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`got4aws`](https://www.npmjs.com/package/got4aws) package. This is an example for querying an [\"API Gateway\"](https://docs.aws.amazon.com/apigateway/api-reference/signing-requests/) with a signed request.\n\n```js\nimport got4aws from 'got4aws';\n\nconst awsClient = got4aws();\n\nconst response = await awsClient('https://<api-id>.execute-api.<api-region>.amazonaws.com/<stage>/endpoint/path', {\n\t// Request-specific options\n});\n```\n\n## Testing\n\nYou can test your requests by using the [`nock`](https://github.com/node-nock/nock) package to mock an endpoint:\n\n```js\nimport got from 'got';\nimport nock from 'nock';\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\nconst {body} = await got('https://sindresorhus.com');\n\nconsole.log(body);\n//=> 'Hello world!'\n```\n\nBear in mind, that by default `nock` mocks only one request. Got will [retry](#retry) on failed requests by default, causing a `No match for request ...` error. The solution is to either disable retrying (set `options.retry` to `0`) or call `.persist()` on the mocked request.\n\n```js\nimport got from 'got';\nimport nock from 'nock';\n\nconst scope = nock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(500, 'Internal server error')\n\t.persist();\n\ntry {\n\tawait got('https://sindresorhus.com')\n} catch (error) {\n\tconsole.log(error.response.body);\n\t//=> 'Internal server error'\n\n\tconsole.log(error.response.retryCount);\n\t//=> 2\n}\n\nscope.persist(false);\n```\n\nFor real integration testing we recommend using [`ava`](https://github.com/avajs/ava) with [`create-test-server`](https://github.com/lukechilds/create-test-server). We're using a macro so we don't have to `server.listen()` and `server.close()` every test. Take a look at one of our tests:\n\n```js\ntest('retry function gets iteration count', withServer, async (t, server, got) => {\n\tlet knocks = 0;\n\tserver.get('/', (request, response) => {\n\t\tif (knocks++ === 1) {\n\t\t\tresponse.end('who`s there?');\n\t\t}\n\t});\n\n\tawait got({\n\t\tretry: {\n\t\t\tcalculateDelay: ({attemptCount}) => {\n\t\t\t\tt.true(is.number(attemptCount));\n\t\t\t\treturn attemptCount < 2 ? 1 : 0;\n\t\t\t}\n\t\t}\n\t});\n});\n```\n\n## Tips\n\n### JSON mode\n\nTo pass an object as the body, you need to use the `json` option. It will be stringified using `JSON.stringify`. Example:\n\n```js\nimport got from 'got';\n\nconst {body} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t},\n\tresponseType: 'json'\n});\n\nconsole.log(body.data);\n//=> '{\"hello\":\"world\"}'\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nimport got from 'got';\n\nconst body = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(body);\n//=> {…}\n```\n\n### User Agent\n\nIt's a good idea to set the `'user-agent'` header so the provider can more easily see how their resource is used. By default, it's the URL to this repo. You can omit this header by setting it to `undefined`.\n\n```js\nimport fs from 'fs';\nimport got from 'got';\n\nconst packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));\n\nawait got('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${packageJson.version} (https://github.com/username/my-package)`\n\t}\n});\n\nawait got('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': undefined\n\t}\n});\n```\n\n### 304 Responses\n\nBear in mind; if you send an `if-modified-since` header and receive a `304 Not Modified` response, the body will be empty. It's your responsibility to cache and retrieve the body contents.\n\n### Custom endpoints\n\nUse `got.extend()` to make it nicer to work with REST APIs. Especially if you use the `prefixUrl` option.\n\n```js\nimport fs from 'fs';\nimport got from 'got';\n\nconst packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${packageJson.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\nconst list = await custom('v1/users/list');\n```\n\n## FAQ\n\n### Why yet another HTTP client?\n\nGot was created because the popular [`request`](https://github.com/request/request) package is bloated: [![Install size](https://packagephobia.now.sh/badge?p=request)](https://packagephobia.now.sh/result?p=request)\\\nFurthermore, Got is fully written in TypeScript and actively maintained.\n\n### Electron support has been removed\n\nThe Electron `net` module is not consistent with the Node.js `http` module. See [#899](https://github.com/sindresorhus/got/issues/899) for more info.\n\n## Comparison\n\n|                       | `got`               | [`request`][r0]    | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :x:                | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | :heavy_check_mark: | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :x:                | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-box)  | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][rio]][r1]     | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][ric]][r2]     | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][rd]][r3]      | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | [![][gc]][g4]       | [![][rc]][r4]      | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][rb]][r5]      | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][rbg]][r6]     | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][rdp]][r7]     | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][ris]][r8]     | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][rs]][r9]      | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][rts]][r10]    | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][rlc]][r11]    | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n<!-- GITHUB -->\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n<!-- ISSUES OPEN -->\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?label\n[kio]: https://badgen.net/github/open-issues/sindresorhus/ky?label\n[rio]: https://badgen.net/github/open-issues/request/request?label\n[nio]: https://badgen.net/github/open-issues/bitinn/node-fetch?label\n[aio]: https://badgen.net/github/open-issues/axios/axios?label\n[sio]: https://badgen.net/github/open-issues/visionmedia/superagent?label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n<!-- ISSUES CLOSED -->\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?label\n[kic]: https://badgen.net/github/closed-issues/sindresorhus/ky?label\n[ric]: https://badgen.net/github/closed-issues/request/request?label\n[nic]: https://badgen.net/github/closed-issues/bitinn/node-fetch?label\n[aic]: https://badgen.net/github/closed-issues/axios/axios?label\n[sic]: https://badgen.net/github/closed-issues/visionmedia/superagent?label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n<!-- DOWNLOADS -->\n[gd]: https://badgen.net/npm/dm/got?label\n[kd]: https://badgen.net/npm/dm/ky?label\n[rd]: https://badgen.net/npm/dm/request?label\n[nd]: https://badgen.net/npm/dm/node-fetch?label\n[ad]: https://badgen.net/npm/dm/axios?label\n[sd]: https://badgen.net/npm/dm/superagent?label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[r3]: https://www.npmjs.com/package/request\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n<!-- COVERAGE -->\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?label\n[kc]: https://badgen.net/codecov/c/github/sindresorhus/ky?label\n[rc]: https://badgen.net/coveralls/c/github/request/request?label\n[nc]: https://badgen.net/coveralls/c/github/bitinn/node-fetch?label\n[ac]: https://badgen.net/coveralls/c/github/mzabriskie/axios?label\n[sc]: https://badgen.net/codecov/c/github/visionmedia/superagent?label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[r4]: https://coveralls.io/github/request/request\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n<!-- BUILD -->\n[gb]: https://badgen.net/travis/sindresorhus/got?label\n[kb]: https://badgen.net/travis/sindresorhus/ky?label\n[rb]: https://badgen.net/travis/request/request?label\n[nb]: https://badgen.net/travis/bitinn/node-fetch?label\n[ab]: https://badgen.net/travis/axios/axios?label\n[sb]: https://badgen.net/travis/visionmedia/superagent?label\n\n[g5]: https://travis-ci.com/github/sindresorhus/got\n[k5]: https://travis-ci.com/github/sindresorhus/ky\n[r5]: https://travis-ci.org/github/request/request\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n<!-- BUGS -->\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/bug/open?label\n[kbg]: https://badgen.net/github/label-issues/sindresorhus/ky/bug/open?label\n[rbg]: https://badgen.net/github/label-issues/request/request/Needs%20investigation/open?label\n[nbg]: https://badgen.net/github/label-issues/bitinn/node-fetch/bug/open?label\n[abg]: https://badgen.net/github/label-issues/axios/axios/type:confirmed%20bug/open?label\n[sbg]: https://badgen.net/github/label-issues/visionmedia/superagent/Bug/open?label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A\"Needs+investigation\"\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3Aconfirmed+bug%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n<!-- DEPENDENTS -->\n[gdp]: https://badgen.net/npm/dependents/got?label\n[kdp]: https://badgen.net/npm/dependents/ky?label\n[rdp]: https://badgen.net/npm/dependents/request?label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?label\n[adp]: https://badgen.net/npm/dependents/axios?label\n[sdp]: https://badgen.net/npm/dependents/superagent?label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[r7]: https://www.npmjs.com/package/request?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n<!-- INSTALL SIZE -->\n[gis]: https://badgen.net/packagephobia/install/got?label\n[kis]: https://badgen.net/packagephobia/install/ky?label\n[ris]: https://badgen.net/packagephobia/install/request?label\n[nis]: https://badgen.net/packagephobia/install/node-fetch?label\n[ais]: https://badgen.net/packagephobia/install/axios?label\n[sis]: https://badgen.net/packagephobia/install/superagent?label\n\n[g8]: https://packagephobia.now.sh/result?p=got\n[k8]: https://packagephobia.now.sh/result?p=ky\n[r8]: https://packagephobia.now.sh/result?p=request\n[n8]: https://packagephobia.now.sh/result?p=node-fetch\n[a8]: https://packagephobia.now.sh/result?p=axios\n[s8]: https://packagephobia.now.sh/result?p=superagent\n\n<!-- GITHUB STARS -->\n[gs]: https://badgen.net/github/stars/sindresorhus/got?label\n[ks]: https://badgen.net/github/stars/sindresorhus/ky?label\n[rs]: https://badgen.net/github/stars/request/request?label\n[ns]: https://badgen.net/github/stars/bitinn/node-fetch?label\n[as]: https://badgen.net/github/stars/axios/axios?label\n[ss]: https://badgen.net/github/stars/visionmedia/superagent?label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[r9]: https://github.com/request/request\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n<!-- TYPESCRIPT SUPPORT -->\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[rts]: https://badgen.net/npm/types/request?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[r10]: https://github.com/request/request\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n<!-- LAST COMMIT -->\n[glc]: https://badgen.net/github/last-commit/sindresorhus/got?label\n[klc]: https://badgen.net/github/last-commit/sindresorhus/ky?label\n[rlc]: https://badgen.net/github/last-commit/request/request?label\n[nlc]: https://badgen.net/github/last-commit/bitinn/node-fetch?label\n[alc]: https://badgen.net/github/last-commit/axios/axios?label\n[slc]: https://badgen.net/github/last-commit/visionmedia/superagent?label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[r11]: https://github.com/request/request/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@3.0.0,@szmarczak/http-timer@4.0.5,@types/cacheable-request@6.0.1,@types/responselike@1.0.0,cacheable-lookup@5.0.3,cacheable-request@7.0.1,decompress-response@6.0.0,http2-wrapper@1.0.0,lowercase-keys@2.0.0,p-cancelable@2.0.0,responselike@2.0.0\n\n## Related\n\n- [gh-got](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [gl-got](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API\n- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL\n- [GotQL](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [got-fetch](https://github.com/alexghr/got-fetch) - Got with a `fetch` interface\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak) | [![Giovanni Minotti](https://github.com/Giotino.png?size=100)](https://github.com/Giotino)\n---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Giovanni Minotti](https://github.com/Giotino)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n- [Alexander Tesfamichael](https://github.com/alextes)\n- [Brandon Smith](https://github.com/brandon93s)\n- [Luke Childs](https://github.com/lukechilds)\n\n<a name=\"widely-used\"></a>\n## These amazing companies are using Got\n\n<table>\n<tbody>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://segment.com\">\n\t\t\t\t<img width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://antora.org\">\n\t\t\t\t<img width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://getvoip.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/exoframejs/exoframe\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"http://karaokes.moe\">\n\t\t\t\t<img width=\"140\" valign=\"middle\" src=\"https://camo.githubusercontent.com/6860e5fa4684c14d8e1aa65df0aba4e6808ea1a9/687474703a2f2f6b6172616f6b65732e6d6f652f6173736574732f696d616765732f696e6465782e706e67\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/renovatebot/renovate\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://camo.githubusercontent.com/206d470ac709b9a702a97b0c08d6f389a086793d/68747470733a2f2f72656e6f76617465626f742e636f6d2f696d616765732f6c6f676f2e737667\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://resist.bot\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://www.naturalcycles.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://microlink.io\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://radity.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n</tbody>\n</table>\n\n<br>\n\n> Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n>\n> — <a href=\"https://github.com/vadimdemedes\">Vadim Demedes</a>\n\n> Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n>\n> — <a href=\"https://github.com/mojavelinux\">Dan Allen</a>\n\n> GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n>\n> — <a href=\"https://github.com/danielkalen\">Daniel Kalen</a>\n\n> We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n>\n> — <a href=\"https://github.com/yamalight\">Tim Ermilov</a>\n\n> Karaoke Mugen uses Got to fetch content updates from its online server.\n>\n> — <a href=\"https://github.com/AxelTerizaki\">Axel Terizaki</a>\n\n> Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n>\n> — <a href=\"https://github.com/rarkins\">Rhys Arkins</a>\n\n> Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n>\n> — <a href=\"https://github.com/chris-erickson\">Chris Erickson</a>\n\n> Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n>\n> — <a href=\"https://github.com/kirillgroshkov\">Kirill Groshkov</a>\n\n> Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n>\n> — <a href=\"https://github.com/Kikobeats\">Kiko Beats</a>\n\n> We’re using Got at Radity. Thanks for such an amazing work!\n>\n> — <a href=\"https://github.com/MirzayevFarid\">Mirzayev Farid</a>\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `got` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-got?utm_source=npm-got&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n","readmeFilename":"readme.md","gitHead":"bc9e48ae689ceb132a192652f5ff6aeedbb4f56c","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@0.0.2","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-zR+28JFuza5nOQq0Yg18vYafDOVULKJl10+ktg0ClgTiGgb6vZhTKmPF3Euelv5blZYJxTf5pVJ21MRDXzeJHw==","shasum":"bfb6523eca4b3f88fceeed9b725a1f2a64bc500b","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-0.0.2.tgz","fileCount":43,"unpackedSize":303584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwKc5CRA9TVsSAnZWagAAwD4P/ixuatpDkkO4Y+UXQNtV\n5P+cUaOKWow4BG0DGad1wyMtxNx13p/I5GxRK2FFdmWfKHGBHEsfVs0dYBAZ\naY4IGZmk4eJLQGphny0OecaT907iFWOCTtcmlu4WUri6mtF2tB4AhMbrYQh2\nvjcOZu/jSYXw6ohQruJas21ErYKpfQFczkjUsMzxTZWeEuZ8dVjE+F15F6W/\nks43Az4IGLcNNGlFpw0Jz5ccqTxLsdZhqp1PhTjlU9tx48pGRUk3oB858c4B\nbY24icqxk9rI/saOwJ993aV7XeMilTJKLmeFGeWOb81bsoBxrqqVMG0OvYpT\n1hiibl9fIzc7IvN1bajr9XbSkjwABF9Y1xVpGcSw00+i7xIpJyuuWpu+09Bh\naC6KROhkeFCcR+QnTnQ8OKoBttyOUJcc2ZiQnRL0m8VWAEsQrmFjGSf2qDTw\noiV6FojxOukP/8TKjEQs7kDxkRu4OJ03ej/SVZ4KwYRGo27OHU3MVoFfDYjF\nOMMJXo5CotMdVaYAh5+h+OpaQ+LMH/Whk11vQou253QYjLLx0QPUba4RN6hs\numOwUBDeECd7nFHQPfeaEBCszvdYraBGEnuvv55RsIMbYrCM4ZlerrO1B2jj\nHsI1ik1kpqQ5aBSc3ezi6P4PI1v9LIXptr7kGvxBfv03hnmtvfLxHZ4nldkG\nyk4f\r\n=fePz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBhqaEuT1vvre9mEUc+MvkwPkdWfGGwoYXXISfVpP7ZVAiEA8H8vw1NJJjLkW7EGxh/ckZP5WcG2eM34mv3uJh4fs00="}]},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_0.0.2_1623238457097_0.9380813219863879"},"_hasShrinkwrap":false},"12.0.0-beta.2":{"name":"got-cjs","version":"12.0.0-beta.2","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.0.1","@szmarczak/http-timer":"^4.0.6","@types/cacheable-request":"^6.0.2","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.0","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","get-stream":"^6.0.1","http2-wrapper":"^2.0.7","lowercase-keys":"^2.0.0","p-cancelable":"^2.1.1","responselike":"^2.0.0"},"devDependencies":{"@hapi/bourne":"^2.0.0","@sindresorhus/tsconfig":"^1.0.2","@sinonjs/fake-timers":"^6.0.1","@types/benchmark":"^2.1.1","@types/express":"^4.17.13","@types/node":"^14.14.45","@types/node-fetch":"^2.5.11","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.11","@types/request":"^2.48.6","@types/sinon":"^9.0.9","@types/tough-cookie":"^4.0.1","ava":"^3.15.0","axios":"^0.21.1","benchmark":"^2.1.4","body-parser":"^1.19.0","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^3.0.1","delay":"^5.0.0","express":"^4.17.1","form-data":"^4.0.0","nock":"^13.1.1","node-fetch":"^2.6.1","np":"^7.5.0","nyc":"^15.1.0","p-event":"^4.2.0","pem":"^1.14.4","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^10.0.0","slow-stream":"0.0.4","tempy":"^1.0.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^10.1.0","typescript":"4.3.5","xo":"^0.41.0"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","readme":"<div align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"media/logo.svg\" alt=\"Got\">\n\t<br>\n\t<br>\n\t<br>\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\tSindre's open source work is supported by the community.<br>Special thanks to:\n\t\t\t</sup>\n\t\t</p>\n\t\t<br>\n\t\t<a href=\"https://moxy.studio\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/moxy-logo.svg\" width=\"160\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://retool.com/?utm_campaign=sindresorhus\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/retool-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://strapi.io/?ref=sindresorhus\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png\" width=\"200\" alt=\"Strapi\">\n\t\t\t</div>\n\t\t\t<b>Strapi is the leading open-source headless CMS.</b>\n\t\t\t<div>\n\t\t\t\t<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://www.monito.com\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/monito-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t</p>\n\t<br>\n\t<br>\n</div>\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.now.sh/badge?p=got)](https://packagephobia.now.sh/result?p=got)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n---\n\nFor browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the same people.\n\n---\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Install\n\n```\n$ npm install got\n```\n\n## Take a peek\n\n### JSON mode\n\nGot has a dedicated option for handling JSON payload.\\\nFurthermore, the promise exposes a `.json<T>()` function that returns `Promise<T>`.\n\n```js\nimport got from 'got';\n\nconst {data} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(data);\n//=> {\"hello\": \"world\"}\n```\n\nFor advanced JSON usage, check out the [`parseJson`](documentation/2-options.md#parsejson) and [`stringifyJson`](documentation/2-options.md#stringifyjson) options.\n\n**For more useful tips like this, visit the [Tips](documentation/tips.md) page.**\n\n## Highlights\n\n- [Used by 6K+ packages and 3M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Documentation\n\n#### Main API\n\n- [x] [Promise API](documentation/1-promise.md)\n- [x] [Options](documentation/2-options.md)\n- [x] [Stream API](documentation/3-streams.md)\n- [x] [Pagination API](documentation/4-pagination.md)\n- [x] [Advanced HTTPS API](documentation/5-https.md)\n- [x] [HTTP/2 support](documentation/2-options.md#http2)\n- [x] [`Response` class](documentation/3-streams.md#response-1)\n\n#### Timeouts and retries\n\n- [x] [Advanced timeout handling](documentation/6-timeout.md)\n- [x] [Retries on failure](documentation/7-retry.md)\n- [x] [Errors with metadata](documentation/8-errors.md)\n\n#### Advanced creation\n\n- [x] [Hooks](documentation/9-hooks.md)\n- [x] [Instances](documentation/10-instances.md)\n- [x] [Progress events & other events](documentation/3-streams.md#events)\n- [x] [Plugins](documentation/lets-make-a-plugin.md)\n- [x] [Compose](documentation/examples/advanced-creation.js)\n\n#### Cache, Proxy and UNIX sockets\n\n- [x] [RFC compliant caching](documentation/cache.md)\n- [x] [Proxy support](documentation/tips.md#proxying)\n- [x] [Unix Domain Sockets](documentation/tips.md#unix)\n\n#### Integration\n\n- [x] [TypeScript support](documentation/typescript.md)\n- [x] [AWS](documentation/tips.md#aws)\n- [x] [Testing](documentation/tips.md#testing)\n\n---\n\n### Migration guides\n\n- [Request migration guide](documentation/migration-guides/request.md)\n  - [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n- [Axios](documentation/migration-guides/axios.md)\n- [Node.js](documentation/migration-guides/nodejs.md)\n\n## Got plugins\n\n- [`got4aws`](https://github.com/SamVerschueren/got4aws) - Got convenience wrapper to interact with AWS v4 signed APIs\n- [`gh-got`](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [`gl-got`](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [`gotql`](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [`got-fetch`](https://github.com/alexghr/got-fetch) - Got with a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) interface\n\n### Legacy\n\n- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API\n- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL\n\n## Comparison\n\n|                       | `got`               | [`request`][r0]    | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :x:                | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | :heavy_check_mark: | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :x:                | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-box)  | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][rio]][r1]     | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][ric]][r2]     | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][rd]][r3]      | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | TBD       | [![][rc]][r4]      | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][rb]][r5]      | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][rbg]][r6]     | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][rdp]][r7]     | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][ris]][r8]     | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][rs]][r9]      | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][rts]][r10]    | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][rlc]][r11]    | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\\\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n<!-- GITHUB -->\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n<!-- ISSUES OPEN -->\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?label\n[kio]: https://badgen.net/github/open-issues/sindresorhus/ky?label\n[rio]: https://badgen.net/github/open-issues/request/request?label\n[nio]: https://badgen.net/github/open-issues/bitinn/node-fetch?label\n[aio]: https://badgen.net/github/open-issues/axios/axios?label\n[sio]: https://badgen.net/github/open-issues/visionmedia/superagent?label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n<!-- ISSUES CLOSED -->\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?label\n[kic]: https://badgen.net/github/closed-issues/sindresorhus/ky?label\n[ric]: https://badgen.net/github/closed-issues/request/request?label\n[nic]: https://badgen.net/github/closed-issues/bitinn/node-fetch?label\n[aic]: https://badgen.net/github/closed-issues/axios/axios?label\n[sic]: https://badgen.net/github/closed-issues/visionmedia/superagent?label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n<!-- DOWNLOADS -->\n[gd]: https://badgen.net/npm/dm/got?label\n[kd]: https://badgen.net/npm/dm/ky?label\n[rd]: https://badgen.net/npm/dm/request?label\n[nd]: https://badgen.net/npm/dm/node-fetch?label\n[ad]: https://badgen.net/npm/dm/axios?label\n[sd]: https://badgen.net/npm/dm/superagent?label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[r3]: https://www.npmjs.com/package/request\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n<!-- COVERAGE -->\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?label\n[kc]: https://badgen.net/codecov/c/github/sindresorhus/ky?label\n[rc]: https://badgen.net/coveralls/c/github/request/request?label\n[nc]: https://badgen.net/coveralls/c/github/bitinn/node-fetch?label\n[ac]: https://badgen.net/coveralls/c/github/mzabriskie/axios?label\n[sc]: https://badgen.net/codecov/c/github/visionmedia/superagent?label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[r4]: https://coveralls.io/github/request/request\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n<!-- BUILD -->\n[gb]: https://github.com/sindresorhus/got/actions/workflows/main.yml/badge.svg\n[kb]: https://github.com/sindresorhus/ky/actions/workflows/main.yml/badge.svg\n[rb]: https://badgen.net/travis/request/request?label\n[nb]: https://badgen.net/travis/bitinn/node-fetch?label\n[ab]: https://badgen.net/travis/axios/axios?label\n[sb]: https://badgen.net/travis/visionmedia/superagent?label\n\n[g5]: https://github.com/sindresorhus/got/actions/workflows/main.yml\n[k5]: https://github.com/sindresorhus/ky/actions/workflows/main.yml\n[r5]: https://travis-ci.org/github/request/request\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n<!-- BUGS -->\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/bug/open?label\n[kbg]: https://badgen.net/github/label-issues/sindresorhus/ky/bug/open?label\n[rbg]: https://badgen.net/github/label-issues/request/request/Needs%20investigation/open?label\n[nbg]: https://badgen.net/github/label-issues/bitinn/node-fetch/bug/open?label\n[abg]: https://badgen.net/github/label-issues/axios/axios/type:confirmed%20bug/open?label\n[sbg]: https://badgen.net/github/label-issues/visionmedia/superagent/Bug/open?label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A\"Needs+investigation\"\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3Aconfirmed+bug%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n<!-- DEPENDENTS -->\n[gdp]: https://badgen.net/npm/dependents/got?label\n[kdp]: https://badgen.net/npm/dependents/ky?label\n[rdp]: https://badgen.net/npm/dependents/request?label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?label\n[adp]: https://badgen.net/npm/dependents/axios?label\n[sdp]: https://badgen.net/npm/dependents/superagent?label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[r7]: https://www.npmjs.com/package/request?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n<!-- INSTALL SIZE -->\n[gis]: https://badgen.net/packagephobia/install/got?label\n[kis]: https://badgen.net/packagephobia/install/ky?label\n[ris]: https://badgen.net/packagephobia/install/request?label\n[nis]: https://badgen.net/packagephobia/install/node-fetch?label\n[ais]: https://badgen.net/packagephobia/install/axios?label\n[sis]: https://badgen.net/packagephobia/install/superagent?label\n\n[g8]: https://packagephobia.now.sh/result?p=got\n[k8]: https://packagephobia.now.sh/result?p=ky\n[r8]: https://packagephobia.now.sh/result?p=request\n[n8]: https://packagephobia.now.sh/result?p=node-fetch\n[a8]: https://packagephobia.now.sh/result?p=axios\n[s8]: https://packagephobia.now.sh/result?p=superagent\n\n<!-- GITHUB STARS -->\n[gs]: https://badgen.net/github/stars/sindresorhus/got?label\n[ks]: https://badgen.net/github/stars/sindresorhus/ky?label\n[rs]: https://badgen.net/github/stars/request/request?label\n[ns]: https://badgen.net/github/stars/bitinn/node-fetch?label\n[as]: https://badgen.net/github/stars/axios/axios?label\n[ss]: https://badgen.net/github/stars/visionmedia/superagent?label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[r9]: https://github.com/request/request\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n<!-- TYPESCRIPT SUPPORT -->\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[rts]: https://badgen.net/npm/types/request?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[r10]: https://github.com/request/request\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n<!-- LAST COMMIT -->\n[glc]: https://badgen.net/github/last-commit/sindresorhus/got?label\n[klc]: https://badgen.net/github/last-commit/sindresorhus/ky?label\n[rlc]: https://badgen.net/github/last-commit/request/request?label\n[nlc]: https://badgen.net/github/last-commit/bitinn/node-fetch?label\n[alc]: https://badgen.net/github/last-commit/axios/axios?label\n[slc]: https://badgen.net/github/last-commit/visionmedia/superagent?label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[r11]: https://github.com/request/request/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@4.0.1,@szmarczak/http-timer@4.0.5,@types/cacheable-request@6.0.1,@types/responselike@1.0.0,cacheable-lookup@6.0.0,cacheable-request@7.0.2,decompress-response@6.0.0,get-stream@6.0.1,http2-wrapper@2.0.5,lowercase-keys@2.0.0,p-cancelable@2.1.1,responselike@2.0.0\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak)\n---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n- [Alexander Tesfamichael](https://github.com/alextes)\n- [Brandon Smith](https://github.com/brandon93s)\n- [Luke Childs](https://github.com/lukechilds)\n- [Giovanni Minotti](https://github.com/Giotino)\n\n<a name=\"widely-used\"></a>\n## These amazing companies are using Got\n\n<table>\n<tbody>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://segment.com\">\n\t\t\t\t<img width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://antora.org\">\n\t\t\t\t<img width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://getvoip.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/exoframejs/exoframe\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"http://karaokes.moe\">\n\t\t\t\t<img width=\"140\" valign=\"middle\" src=\"https://camo.githubusercontent.com/6860e5fa4684c14d8e1aa65df0aba4e6808ea1a9/687474703a2f2f6b6172616f6b65732e6d6f652f6173736574732f696d616765732f696e6465782e706e67\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/renovatebot/renovate\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://camo.githubusercontent.com/206d470ac709b9a702a97b0c08d6f389a086793d/68747470733a2f2f72656e6f76617465626f742e636f6d2f696d616765732f6c6f676f2e737667\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://resist.bot\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://www.naturalcycles.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://microlink.io\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://radity.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n</tbody>\n</table>\n\n<!-- <br> -->\n\n<!-- *Creating an awesome product? Open an issue to get listed here.* -->\n\n<br>\n\n> Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n>\n> — <a href=\"https://github.com/vadimdemedes\">Vadim Demedes</a>\n\n> Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n>\n> — <a href=\"https://github.com/mojavelinux\">Dan Allen</a>\n\n> GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n>\n> — <a href=\"https://github.com/danielkalen\">Daniel Kalen</a>\n\n> We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n>\n> — <a href=\"https://github.com/yamalight\">Tim Ermilov</a>\n\n> Karaoke Mugen uses Got to fetch content updates from its online server.\n>\n> — <a href=\"https://github.com/AxelTerizaki\">Axel Terizaki</a>\n\n> Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n>\n> — <a href=\"https://github.com/rarkins\">Rhys Arkins</a>\n\n> Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n>\n> — <a href=\"https://github.com/chris-erickson\">Chris Erickson</a>\n\n> Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n>\n> — <a href=\"https://github.com/kirillgroshkov\">Kirill Groshkov</a>\n\n> Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n>\n> — <a href=\"https://github.com/Kikobeats\">Kiko Beats</a>\n\n> We’re using Got at Radity. Thanks for such an amazing work!\n>\n> — <a href=\"https://github.com/MirzayevFarid\">Mirzayev Farid</a>\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `got` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-got?utm_source=npm-got&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n","readmeFilename":"readme.md","gitHead":"b83ec560e638467049628478ed1855eaafee8518","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.0.0-beta.2","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-Tup/9eLi02hccRVz+Dn5o7VUf4hoRjv99QKZ32yjSlGlT7p0JbBSlOfxqaIoNL0ZykJHTQHmDw88d5RySfImaw==","shasum":"881490268ba110c1b385e2557e942ea9a961e0ec","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.0.0-beta.2.tgz","fileCount":43,"unpackedSize":247455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCwrCCRA9TVsSAnZWagAAObUP/1LaMrtu8Fk4mB6QXq96\nUaPuz4aUM1CKv/rER6rHnh8tRDX9CiMmHqaWKpnNXDeGt/C04GgYqJ5rtv5H\nEKmJP5+Fqqj0JjfxMNsDnu0F1o9AGspIeVuTh7A/eSKm3ysKAyg5Bin5mJ9m\nos0tCbY0webRZuMGV8CmImsCGknwVFdybSJc66AKnYI5NR45OT/PdzaXB8Dm\nI80UXixTCKAyf3SyBreryEDl5jS6DPJ0Op8qYPrH+7Pisj4Lf8jnIrQzJeD8\n92cGn4X8V4zOgpAUB2sVlq/dX5ysBxo2xaFxAYE4EezclVJPg22t0PQWnj5M\nu3VIgthbgvTPl63AR+wPvOyReQVXD98YTh6m+nUXNy74xSK92M/vi8ccfCX3\nOWz/OYi7hA4Ia1wO1otYUV6/Z30T/gjHR1AkZEmF8odCLbq4uvI25235wFCw\n50iMhf5vH97FNh+LmYqIOcluCF7zoj4cfQHUS7cjSpMhamZ4A7oBnG5JEuQH\n83iEBLj2HPtG/qcBuHdQQUjBLUc9+m+T+tNbSRvh+g4XSiyatKdFS5ypc4dD\nmdTVPsb0lasVdd22G9PSHPpNUKAhaSZ8SUI+UHBG0sxRY9/+UNV1xOmxVC95\nSKS7U02vHF7f/UT/flONkehl+y29dLQaR9Pw1eTYvsRQgIexwj2sO+hubAun\n5fw6\r\n=cmpL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsywZ03WxOe0hdQO/+N5ljx0OOhrxhhAtrl7QZRWptBAIgEfX8tqy8FN99+CLp86hlSANfgjzkOpZ/jRDi6uH6i3c="}]},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.0.0-beta.2_1628113602781_0.051159149326575726"},"_hasShrinkwrap":false},"12.0.0-beta.3":{"name":"got-cjs","version":"12.0.0-beta.3","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.0.1","@szmarczak/http-timer":"^4.0.6","@types/cacheable-request":"^6.0.2","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.0","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","get-stream":"^6.0.1","http2-wrapper":"^2.0.7","lowercase-keys":"^2.0.0","p-cancelable":"^2.1.1","responselike":"^2.0.0"},"devDependencies":{"@hapi/bourne":"^2.0.0","@sindresorhus/tsconfig":"^1.0.2","@sinonjs/fake-timers":"^6.0.1","@types/benchmark":"^2.1.1","@types/express":"^4.17.13","@types/node":"^14.14.45","@types/node-fetch":"^2.5.11","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.11","@types/request":"^2.48.6","@types/sinon":"^9.0.9","@types/tough-cookie":"^4.0.1","ava":"^3.15.0","axios":"^0.21.1","benchmark":"^2.1.4","body-parser":"^1.19.0","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^3.0.1","delay":"^5.0.0","express":"^4.17.1","form-data":"^4.0.0","nock":"^13.1.1","node-fetch":"^2.6.1","np":"^7.5.0","nyc":"^15.1.0","p-event":"^4.2.0","pem":"^1.14.4","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^10.0.0","slow-stream":"0.0.4","tempy":"^1.0.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^10.1.0","typescript":"4.3.5","xo":"^0.41.0"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","readme":"<div align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"media/logo.svg\" alt=\"Got\">\n\t<br>\n\t<br>\n\t<br>\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\tSindre's open source work is supported by the community.<br>Special thanks to:\n\t\t\t</sup>\n\t\t</p>\n\t\t<br>\n\t\t<a href=\"https://moxy.studio\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/moxy-logo.svg\" width=\"160\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://retool.com/?utm_campaign=sindresorhus\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/retool-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://strapi.io/?ref=sindresorhus\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png\" width=\"200\" alt=\"Strapi\">\n\t\t\t</div>\n\t\t\t<b>Strapi is the leading open-source headless CMS.</b>\n\t\t\t<div>\n\t\t\t\t<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://www.monito.com\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/monito-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t</p>\n\t<br>\n\t<br>\n</div>\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.now.sh/badge?p=got)](https://packagephobia.now.sh/result?p=got)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n---\n\nFor browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the same people.\n\n---\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Install\n\n```\n$ npm install got\n```\n\n## Take a peek\n\n### JSON mode\n\nGot has a dedicated option for handling JSON payload.\\\nFurthermore, the promise exposes a `.json<T>()` function that returns `Promise<T>`.\n\n```js\nimport got from 'got';\n\nconst {data} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(data);\n//=> {\"hello\": \"world\"}\n```\n\nFor advanced JSON usage, check out the [`parseJson`](documentation/2-options.md#parsejson) and [`stringifyJson`](documentation/2-options.md#stringifyjson) options.\n\n**For more useful tips like this, visit the [Tips](documentation/tips.md) page.**\n\n## Highlights\n\n- [Used by 6K+ packages and 3M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Documentation\n\n#### Main API\n\n- [x] [Promise API](documentation/1-promise.md)\n- [x] [Options](documentation/2-options.md)\n- [x] [Stream API](documentation/3-streams.md)\n- [x] [Pagination API](documentation/4-pagination.md)\n- [x] [Advanced HTTPS API](documentation/5-https.md)\n- [x] [HTTP/2 support](documentation/2-options.md#http2)\n- [x] [`Response` class](documentation/3-streams.md#response-1)\n\n#### Timeouts and retries\n\n- [x] [Advanced timeout handling](documentation/6-timeout.md)\n- [x] [Retries on failure](documentation/7-retry.md)\n- [x] [Errors with metadata](documentation/8-errors.md)\n\n#### Advanced creation\n\n- [x] [Hooks](documentation/9-hooks.md)\n- [x] [Instances](documentation/10-instances.md)\n- [x] [Progress events & other events](documentation/3-streams.md#events)\n- [x] [Plugins](documentation/lets-make-a-plugin.md)\n- [x] [Compose](documentation/examples/advanced-creation.js)\n\n#### Cache, Proxy and UNIX sockets\n\n- [x] [RFC compliant caching](documentation/cache.md)\n- [x] [Proxy support](documentation/tips.md#proxying)\n- [x] [Unix Domain Sockets](documentation/tips.md#unix)\n\n#### Integration\n\n- [x] [TypeScript support](documentation/typescript.md)\n- [x] [AWS](documentation/tips.md#aws)\n- [x] [Testing](documentation/tips.md#testing)\n\n---\n\n### Migration guides\n\n- [Request migration guide](documentation/migration-guides/request.md)\n  - [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n- [Axios](documentation/migration-guides/axios.md)\n- [Node.js](documentation/migration-guides/nodejs.md)\n\n## Got plugins\n\n- [`got4aws`](https://github.com/SamVerschueren/got4aws) - Got convenience wrapper to interact with AWS v4 signed APIs\n- [`gh-got`](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [`gl-got`](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [`gotql`](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [`got-fetch`](https://github.com/alexghr/got-fetch) - Got with a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) interface\n\n### Legacy\n\n- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API\n- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL\n\n## Comparison\n\n|                       | `got`               | [`request`][r0]    | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :x:                | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | :heavy_check_mark: | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :x:                | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-box)  | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][rio]][r1]     | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][ric]][r2]     | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][rd]][r3]      | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | TBD       | [![][rc]][r4]      | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][rb]][r5]      | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][rbg]][r6]     | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][rdp]][r7]     | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][ris]][r8]     | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][rs]][r9]      | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][rts]][r10]    | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][rlc]][r11]    | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\\\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n<!-- GITHUB -->\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n<!-- ISSUES OPEN -->\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?label\n[kio]: https://badgen.net/github/open-issues/sindresorhus/ky?label\n[rio]: https://badgen.net/github/open-issues/request/request?label\n[nio]: https://badgen.net/github/open-issues/bitinn/node-fetch?label\n[aio]: https://badgen.net/github/open-issues/axios/axios?label\n[sio]: https://badgen.net/github/open-issues/visionmedia/superagent?label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n<!-- ISSUES CLOSED -->\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?label\n[kic]: https://badgen.net/github/closed-issues/sindresorhus/ky?label\n[ric]: https://badgen.net/github/closed-issues/request/request?label\n[nic]: https://badgen.net/github/closed-issues/bitinn/node-fetch?label\n[aic]: https://badgen.net/github/closed-issues/axios/axios?label\n[sic]: https://badgen.net/github/closed-issues/visionmedia/superagent?label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n<!-- DOWNLOADS -->\n[gd]: https://badgen.net/npm/dm/got?label\n[kd]: https://badgen.net/npm/dm/ky?label\n[rd]: https://badgen.net/npm/dm/request?label\n[nd]: https://badgen.net/npm/dm/node-fetch?label\n[ad]: https://badgen.net/npm/dm/axios?label\n[sd]: https://badgen.net/npm/dm/superagent?label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[r3]: https://www.npmjs.com/package/request\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n<!-- COVERAGE -->\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?label\n[kc]: https://badgen.net/codecov/c/github/sindresorhus/ky?label\n[rc]: https://badgen.net/coveralls/c/github/request/request?label\n[nc]: https://badgen.net/coveralls/c/github/bitinn/node-fetch?label\n[ac]: https://badgen.net/coveralls/c/github/mzabriskie/axios?label\n[sc]: https://badgen.net/codecov/c/github/visionmedia/superagent?label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[r4]: https://coveralls.io/github/request/request\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n<!-- BUILD -->\n[gb]: https://github.com/sindresorhus/got/actions/workflows/main.yml/badge.svg\n[kb]: https://github.com/sindresorhus/ky/actions/workflows/main.yml/badge.svg\n[rb]: https://badgen.net/travis/request/request?label\n[nb]: https://badgen.net/travis/bitinn/node-fetch?label\n[ab]: https://badgen.net/travis/axios/axios?label\n[sb]: https://badgen.net/travis/visionmedia/superagent?label\n\n[g5]: https://github.com/sindresorhus/got/actions/workflows/main.yml\n[k5]: https://github.com/sindresorhus/ky/actions/workflows/main.yml\n[r5]: https://travis-ci.org/github/request/request\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n<!-- BUGS -->\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/bug/open?label\n[kbg]: https://badgen.net/github/label-issues/sindresorhus/ky/bug/open?label\n[rbg]: https://badgen.net/github/label-issues/request/request/Needs%20investigation/open?label\n[nbg]: https://badgen.net/github/label-issues/bitinn/node-fetch/bug/open?label\n[abg]: https://badgen.net/github/label-issues/axios/axios/type:confirmed%20bug/open?label\n[sbg]: https://badgen.net/github/label-issues/visionmedia/superagent/Bug/open?label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A\"Needs+investigation\"\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3Aconfirmed+bug%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n<!-- DEPENDENTS -->\n[gdp]: https://badgen.net/npm/dependents/got?label\n[kdp]: https://badgen.net/npm/dependents/ky?label\n[rdp]: https://badgen.net/npm/dependents/request?label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?label\n[adp]: https://badgen.net/npm/dependents/axios?label\n[sdp]: https://badgen.net/npm/dependents/superagent?label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[r7]: https://www.npmjs.com/package/request?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n<!-- INSTALL SIZE -->\n[gis]: https://badgen.net/packagephobia/install/got?label\n[kis]: https://badgen.net/packagephobia/install/ky?label\n[ris]: https://badgen.net/packagephobia/install/request?label\n[nis]: https://badgen.net/packagephobia/install/node-fetch?label\n[ais]: https://badgen.net/packagephobia/install/axios?label\n[sis]: https://badgen.net/packagephobia/install/superagent?label\n\n[g8]: https://packagephobia.now.sh/result?p=got\n[k8]: https://packagephobia.now.sh/result?p=ky\n[r8]: https://packagephobia.now.sh/result?p=request\n[n8]: https://packagephobia.now.sh/result?p=node-fetch\n[a8]: https://packagephobia.now.sh/result?p=axios\n[s8]: https://packagephobia.now.sh/result?p=superagent\n\n<!-- GITHUB STARS -->\n[gs]: https://badgen.net/github/stars/sindresorhus/got?label\n[ks]: https://badgen.net/github/stars/sindresorhus/ky?label\n[rs]: https://badgen.net/github/stars/request/request?label\n[ns]: https://badgen.net/github/stars/bitinn/node-fetch?label\n[as]: https://badgen.net/github/stars/axios/axios?label\n[ss]: https://badgen.net/github/stars/visionmedia/superagent?label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[r9]: https://github.com/request/request\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n<!-- TYPESCRIPT SUPPORT -->\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[rts]: https://badgen.net/npm/types/request?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[r10]: https://github.com/request/request\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n<!-- LAST COMMIT -->\n[glc]: https://badgen.net/github/last-commit/sindresorhus/got?label\n[klc]: https://badgen.net/github/last-commit/sindresorhus/ky?label\n[rlc]: https://badgen.net/github/last-commit/request/request?label\n[nlc]: https://badgen.net/github/last-commit/bitinn/node-fetch?label\n[alc]: https://badgen.net/github/last-commit/axios/axios?label\n[slc]: https://badgen.net/github/last-commit/visionmedia/superagent?label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[r11]: https://github.com/request/request/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@4.0.1,@szmarczak/http-timer@4.0.5,@types/cacheable-request@6.0.1,@types/responselike@1.0.0,cacheable-lookup@6.0.0,cacheable-request@7.0.2,decompress-response@6.0.0,get-stream@6.0.1,http2-wrapper@2.0.5,lowercase-keys@2.0.0,p-cancelable@2.1.1,responselike@2.0.0\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak)\n---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n- [Alexander Tesfamichael](https://github.com/alextes)\n- [Brandon Smith](https://github.com/brandon93s)\n- [Luke Childs](https://github.com/lukechilds)\n- [Giovanni Minotti](https://github.com/Giotino)\n\n<a name=\"widely-used\"></a>\n## These amazing companies are using Got\n\n<table>\n<tbody>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://segment.com\">\n\t\t\t\t<img width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://antora.org\">\n\t\t\t\t<img width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://getvoip.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/exoframejs/exoframe\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"http://karaokes.moe\">\n\t\t\t\t<img width=\"140\" valign=\"middle\" src=\"https://camo.githubusercontent.com/6860e5fa4684c14d8e1aa65df0aba4e6808ea1a9/687474703a2f2f6b6172616f6b65732e6d6f652f6173736574732f696d616765732f696e6465782e706e67\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/renovatebot/renovate\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://camo.githubusercontent.com/206d470ac709b9a702a97b0c08d6f389a086793d/68747470733a2f2f72656e6f76617465626f742e636f6d2f696d616765732f6c6f676f2e737667\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://resist.bot\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://www.naturalcycles.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://microlink.io\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://radity.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n</tbody>\n</table>\n\n<!-- <br> -->\n\n<!-- *Creating an awesome product? Open an issue to get listed here.* -->\n\n<br>\n\n> Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n>\n> — <a href=\"https://github.com/vadimdemedes\">Vadim Demedes</a>\n\n> Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n>\n> — <a href=\"https://github.com/mojavelinux\">Dan Allen</a>\n\n> GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n>\n> — <a href=\"https://github.com/danielkalen\">Daniel Kalen</a>\n\n> We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n>\n> — <a href=\"https://github.com/yamalight\">Tim Ermilov</a>\n\n> Karaoke Mugen uses Got to fetch content updates from its online server.\n>\n> — <a href=\"https://github.com/AxelTerizaki\">Axel Terizaki</a>\n\n> Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n>\n> — <a href=\"https://github.com/rarkins\">Rhys Arkins</a>\n\n> Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n>\n> — <a href=\"https://github.com/chris-erickson\">Chris Erickson</a>\n\n> Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n>\n> — <a href=\"https://github.com/kirillgroshkov\">Kirill Groshkov</a>\n\n> Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n>\n> — <a href=\"https://github.com/Kikobeats\">Kiko Beats</a>\n\n> We’re using Got at Radity. Thanks for such an amazing work!\n>\n> — <a href=\"https://github.com/MirzayevFarid\">Mirzayev Farid</a>\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `got` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-got?utm_source=npm-got&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n","readmeFilename":"readme.md","gitHead":"57367efc5ead58827f58818e6b282e7142be5673","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.0.0-beta.3","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-+JOxCAD8/IPPpAnaiaobSqi5Pt2rjrk+MxxK+v5lvnihllKhCG25bWphJnouHpBjxDaagNRopRwLzhqzUz3RdQ==","shasum":"e1572363afc18bbc99299bc6067932eeb13c7f37","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.0.0-beta.3.tgz","fileCount":43,"unpackedSize":249276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDPw3CRA9TVsSAnZWagAAPwUP/0ZbtqnFn4yAFC5kGrnk\nxIPFVKJiB1jHgLM8ENvrytxmKwDNG1NaBpSWoeOx0IIQ2fFF9muEdbGdRjFg\nfAi/yE41bvSe39PvuX/p7ZBuJSJ5dLrR+iZgK+wol6wQWDOsldzVcsCNq86c\nfp5rH1/kXCHCq829100NYf7WWUSIZJOpPkK7JJxASv+LEy3ACeMINbdcGSpB\nQUgOrpyeB9ESRBMZ1/BVoBzipgXJDBmVjoHtbKXzmSpzTuj6FTTTI1rj71ZB\ng4K5vw3T+UP/y2uj1vuFFAVTKnXtNJeuQ0XcZz8+HBeUlcLVKUtFp1GlIqut\nXmOWffmBtkIumeWTbLKpUkypm7068nI+xHcpraYdcRqDNvQTOGewcwyAEDCy\n70hDqqM0z4OhNJY7V54FEtOBFglgTG95YVjIapSXXWp377vaj6ncS8PWYJGA\nr39R9j19Af2/cJfm2zri89xYtYRUY0pQRVAUZ1vfDBopnJXuWZa8oK/oWT/w\nKgM2nhGGh48I+VqS4s2xPEzT+aHltO4xKLWUObXdCc4RMgTLrYmObvyMG6Y2\nnrdA6Y9h+FhcA+6TB9wFGM70wB44Lt1pq9733Vf9BpsqbgZShlhtmlDMYmfd\nqGBVeCmvjNzfCNz9ZN0tkP5TBYFPIlJGL5cw3a8gMQRk9uHAF+pVx6FyCq/W\npOr4\r\n=KHwo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0z57nrBtjg5Jda54gGar/LOqrAXgczQMloX9YNCxakgIhAJ2VThOJvqj6bR656sODpLzQoZQEP1PeVF4QulFYVYJk"}]},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.0.0-beta.3_1628240951413_0.9441471220735111"},"_hasShrinkwrap":false},"12.0.0-beta.4":{"name":"got-cjs","version":"12.0.0-beta.4","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.0.1","@szmarczak/http-timer":"^4.0.6","@types/cacheable-request":"^6.0.2","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.0","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","get-stream":"^6.0.1","http2-wrapper":"^2.0.7","lowercase-keys":"^2.0.0","p-cancelable":"^2.1.1","responselike":"^2.0.0"},"devDependencies":{"@hapi/bourne":"^2.0.0","@sindresorhus/tsconfig":"^1.0.2","@sinonjs/fake-timers":"^6.0.1","@types/benchmark":"^2.1.1","@types/express":"^4.17.13","@types/node":"^14.14.45","@types/node-fetch":"^2.5.11","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.11","@types/request":"^2.48.6","@types/sinon":"^9.0.9","@types/tough-cookie":"^4.0.1","ava":"^3.15.0","axios":"^0.21.1","benchmark":"^2.1.4","body-parser":"^1.19.0","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^3.0.1","delay":"^5.0.0","express":"^4.17.1","form-data":"^4.0.0","nock":"^13.1.1","node-fetch":"^2.6.1","np":"^7.5.0","nyc":"^15.1.0","p-event":"^4.2.0","pem":"^1.14.4","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^10.0.0","slow-stream":"0.0.4","tempy":"^1.0.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^10.1.0","typescript":"4.3.5","xo":"^0.41.0"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","readme":"<div align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"media/logo.svg\" alt=\"Got\">\n\t<br>\n\t<br>\n\t<br>\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\tSindre's open source work is supported by the community.<br>Special thanks to:\n\t\t\t</sup>\n\t\t</p>\n\t\t<br>\n\t\t<a href=\"https://moxy.studio\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/moxy-logo.svg\" width=\"160\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://retool.com/?utm_campaign=sindresorhus\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/retool-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://strapi.io/?ref=sindresorhus\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png\" width=\"200\" alt=\"Strapi\">\n\t\t\t</div>\n\t\t\t<b>Strapi is the leading open-source headless CMS.</b>\n\t\t\t<div>\n\t\t\t\t<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://www.monito.com\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/monito-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t</p>\n\t<br>\n\t<br>\n</div>\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.now.sh/badge?p=got)](https://packagephobia.now.sh/result?p=got)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n---\n\nFor browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the same people.\n\n---\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Install\n\n```\n$ npm install got\n```\n\n## Take a peek\n\n### JSON mode\n\nGot has a dedicated option for handling JSON payload.\\\nFurthermore, the promise exposes a `.json<T>()` function that returns `Promise<T>`.\n\n```js\nimport got from 'got';\n\nconst {data} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(data);\n//=> {\"hello\": \"world\"}\n```\n\nFor advanced JSON usage, check out the [`parseJson`](documentation/2-options.md#parsejson) and [`stringifyJson`](documentation/2-options.md#stringifyjson) options.\n\n**For more useful tips like this, visit the [Tips](documentation/tips.md) page.**\n\n## Highlights\n\n- [Used by 6K+ packages and 3M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Documentation\n\n#### Main API\n\n- [x] [Promise API](documentation/1-promise.md)\n- [x] [Options](documentation/2-options.md)\n- [x] [Stream API](documentation/3-streams.md)\n- [x] [Pagination API](documentation/4-pagination.md)\n- [x] [Advanced HTTPS API](documentation/5-https.md)\n- [x] [HTTP/2 support](documentation/2-options.md#http2)\n- [x] [`Response` class](documentation/3-streams.md#response-1)\n\n#### Timeouts and retries\n\n- [x] [Advanced timeout handling](documentation/6-timeout.md)\n- [x] [Retries on failure](documentation/7-retry.md)\n- [x] [Errors with metadata](documentation/8-errors.md)\n\n#### Advanced creation\n\n- [x] [Hooks](documentation/9-hooks.md)\n- [x] [Instances](documentation/10-instances.md)\n- [x] [Progress events & other events](documentation/3-streams.md#events)\n- [x] [Plugins](documentation/lets-make-a-plugin.md)\n- [x] [Compose](documentation/examples/advanced-creation.js)\n\n#### Cache, Proxy and UNIX sockets\n\n- [x] [RFC compliant caching](documentation/cache.md)\n- [x] [Proxy support](documentation/tips.md#proxying)\n- [x] [Unix Domain Sockets](documentation/tips.md#unix)\n\n#### Integration\n\n- [x] [TypeScript support](documentation/typescript.md)\n- [x] [AWS](documentation/tips.md#aws)\n- [x] [Testing](documentation/tips.md#testing)\n\n---\n\n### Migration guides\n\n- [Request migration guide](documentation/migration-guides/request.md)\n  - [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n- [Axios](documentation/migration-guides/axios.md)\n- [Node.js](documentation/migration-guides/nodejs.md)\n\n## Got plugins\n\n- [`got4aws`](https://github.com/SamVerschueren/got4aws) - Got convenience wrapper to interact with AWS v4 signed APIs\n- [`gh-got`](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [`gl-got`](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [`gotql`](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [`got-fetch`](https://github.com/alexghr/got-fetch) - Got with a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) interface\n- [`got-scraping`](https://github.com/apify/got-scraping) - Got wrapper specifically designed for web scraping purposes\n\n### Legacy\n\n- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API\n- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL\n\n## Comparison\n\n|                       | `got`               | [`request`][r0]    | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :x:                | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | :heavy_check_mark: | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :x:                | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-box)  | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][rio]][r1]     | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][ric]][r2]     | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][rd]][r3]      | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | TBD       | [![][rc]][r4]      | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][rb]][r5]      | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][rbg]][r6]     | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][rdp]][r7]     | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][ris]][r8]     | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][rs]][r9]      | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][rts]][r10]    | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][rlc]][r11]    | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\\\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n<!-- GITHUB -->\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n<!-- ISSUES OPEN -->\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?label\n[kio]: https://badgen.net/github/open-issues/sindresorhus/ky?label\n[rio]: https://badgen.net/github/open-issues/request/request?label\n[nio]: https://badgen.net/github/open-issues/bitinn/node-fetch?label\n[aio]: https://badgen.net/github/open-issues/axios/axios?label\n[sio]: https://badgen.net/github/open-issues/visionmedia/superagent?label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n<!-- ISSUES CLOSED -->\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?label\n[kic]: https://badgen.net/github/closed-issues/sindresorhus/ky?label\n[ric]: https://badgen.net/github/closed-issues/request/request?label\n[nic]: https://badgen.net/github/closed-issues/bitinn/node-fetch?label\n[aic]: https://badgen.net/github/closed-issues/axios/axios?label\n[sic]: https://badgen.net/github/closed-issues/visionmedia/superagent?label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n<!-- DOWNLOADS -->\n[gd]: https://badgen.net/npm/dm/got?label\n[kd]: https://badgen.net/npm/dm/ky?label\n[rd]: https://badgen.net/npm/dm/request?label\n[nd]: https://badgen.net/npm/dm/node-fetch?label\n[ad]: https://badgen.net/npm/dm/axios?label\n[sd]: https://badgen.net/npm/dm/superagent?label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[r3]: https://www.npmjs.com/package/request\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n<!-- COVERAGE -->\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?label\n[kc]: https://badgen.net/codecov/c/github/sindresorhus/ky?label\n[rc]: https://badgen.net/coveralls/c/github/request/request?label\n[nc]: https://badgen.net/coveralls/c/github/bitinn/node-fetch?label\n[ac]: https://badgen.net/coveralls/c/github/mzabriskie/axios?label\n[sc]: https://badgen.net/codecov/c/github/visionmedia/superagent?label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[r4]: https://coveralls.io/github/request/request\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n<!-- BUILD -->\n[gb]: https://github.com/sindresorhus/got/actions/workflows/main.yml/badge.svg\n[kb]: https://github.com/sindresorhus/ky/actions/workflows/main.yml/badge.svg\n[rb]: https://badgen.net/travis/request/request?label\n[nb]: https://badgen.net/travis/bitinn/node-fetch?label\n[ab]: https://badgen.net/travis/axios/axios?label\n[sb]: https://badgen.net/travis/visionmedia/superagent?label\n\n[g5]: https://github.com/sindresorhus/got/actions/workflows/main.yml\n[k5]: https://github.com/sindresorhus/ky/actions/workflows/main.yml\n[r5]: https://travis-ci.org/github/request/request\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n<!-- BUGS -->\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/bug/open?label\n[kbg]: https://badgen.net/github/label-issues/sindresorhus/ky/bug/open?label\n[rbg]: https://badgen.net/github/label-issues/request/request/Needs%20investigation/open?label\n[nbg]: https://badgen.net/github/label-issues/bitinn/node-fetch/bug/open?label\n[abg]: https://badgen.net/github/label-issues/axios/axios/type:confirmed%20bug/open?label\n[sbg]: https://badgen.net/github/label-issues/visionmedia/superagent/Bug/open?label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A\"Needs+investigation\"\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3Aconfirmed+bug%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n<!-- DEPENDENTS -->\n[gdp]: https://badgen.net/npm/dependents/got?label\n[kdp]: https://badgen.net/npm/dependents/ky?label\n[rdp]: https://badgen.net/npm/dependents/request?label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?label\n[adp]: https://badgen.net/npm/dependents/axios?label\n[sdp]: https://badgen.net/npm/dependents/superagent?label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[r7]: https://www.npmjs.com/package/request?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n<!-- INSTALL SIZE -->\n[gis]: https://badgen.net/packagephobia/install/got?label\n[kis]: https://badgen.net/packagephobia/install/ky?label\n[ris]: https://badgen.net/packagephobia/install/request?label\n[nis]: https://badgen.net/packagephobia/install/node-fetch?label\n[ais]: https://badgen.net/packagephobia/install/axios?label\n[sis]: https://badgen.net/packagephobia/install/superagent?label\n\n[g8]: https://packagephobia.now.sh/result?p=got\n[k8]: https://packagephobia.now.sh/result?p=ky\n[r8]: https://packagephobia.now.sh/result?p=request\n[n8]: https://packagephobia.now.sh/result?p=node-fetch\n[a8]: https://packagephobia.now.sh/result?p=axios\n[s8]: https://packagephobia.now.sh/result?p=superagent\n\n<!-- GITHUB STARS -->\n[gs]: https://badgen.net/github/stars/sindresorhus/got?label\n[ks]: https://badgen.net/github/stars/sindresorhus/ky?label\n[rs]: https://badgen.net/github/stars/request/request?label\n[ns]: https://badgen.net/github/stars/bitinn/node-fetch?label\n[as]: https://badgen.net/github/stars/axios/axios?label\n[ss]: https://badgen.net/github/stars/visionmedia/superagent?label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[r9]: https://github.com/request/request\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n<!-- TYPESCRIPT SUPPORT -->\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[rts]: https://badgen.net/npm/types/request?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[r10]: https://github.com/request/request\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n<!-- LAST COMMIT -->\n[glc]: https://badgen.net/github/last-commit/sindresorhus/got?label\n[klc]: https://badgen.net/github/last-commit/sindresorhus/ky?label\n[rlc]: https://badgen.net/github/last-commit/request/request?label\n[nlc]: https://badgen.net/github/last-commit/bitinn/node-fetch?label\n[alc]: https://badgen.net/github/last-commit/axios/axios?label\n[slc]: https://badgen.net/github/last-commit/visionmedia/superagent?label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[r11]: https://github.com/request/request/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@4.0.1,@szmarczak/http-timer@4.0.5,@types/cacheable-request@6.0.1,@types/responselike@1.0.0,cacheable-lookup@6.0.0,cacheable-request@7.0.2,decompress-response@6.0.0,get-stream@6.0.1,http2-wrapper@2.0.5,lowercase-keys@2.0.0,p-cancelable@2.1.1,responselike@2.0.0\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak)\n---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n- [Alexander Tesfamichael](https://github.com/alextes)\n- [Brandon Smith](https://github.com/brandon93s)\n- [Luke Childs](https://github.com/lukechilds)\n- [Giovanni Minotti](https://github.com/Giotino)\n\n<a name=\"widely-used\"></a>\n## These amazing companies are using Got\n\n<table>\n<tbody>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://segment.com\">\n\t\t\t\t<img width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://antora.org\">\n\t\t\t\t<img width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://getvoip.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/exoframejs/exoframe\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"http://karaokes.moe\">\n\t\t\t\t<img width=\"140\" valign=\"middle\" src=\"https://camo.githubusercontent.com/6860e5fa4684c14d8e1aa65df0aba4e6808ea1a9/687474703a2f2f6b6172616f6b65732e6d6f652f6173736574732f696d616765732f696e6465782e706e67\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/renovatebot/renovate\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://camo.githubusercontent.com/206d470ac709b9a702a97b0c08d6f389a086793d/68747470733a2f2f72656e6f76617465626f742e636f6d2f696d616765732f6c6f676f2e737667\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://resist.bot\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://www.naturalcycles.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://microlink.io\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://radity.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://apify.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/23726914/128673143-958b5930-b677-40ef-8087-5698a0c29c45.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n</tbody>\n</table>\n\n<!-- <br> -->\n\n<!-- *Creating an awesome product? Open an issue to get listed here.* -->\n\n<br>\n\n> Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n>\n> — <a href=\"https://github.com/vadimdemedes\">Vadim Demedes</a>\n\n> Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n>\n> — <a href=\"https://github.com/mojavelinux\">Dan Allen</a>\n\n> GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n>\n> — <a href=\"https://github.com/danielkalen\">Daniel Kalen</a>\n\n> We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n>\n> — <a href=\"https://github.com/yamalight\">Tim Ermilov</a>\n\n> Karaoke Mugen uses Got to fetch content updates from its online server.\n>\n> — <a href=\"https://github.com/AxelTerizaki\">Axel Terizaki</a>\n\n> Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n>\n> — <a href=\"https://github.com/rarkins\">Rhys Arkins</a>\n\n> Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n>\n> — <a href=\"https://github.com/chris-erickson\">Chris Erickson</a>\n\n> Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n>\n> — <a href=\"https://github.com/kirillgroshkov\">Kirill Groshkov</a>\n\n> Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n>\n> — <a href=\"https://github.com/Kikobeats\">Kiko Beats</a>\n\n> We’re using Got at Radity. Thanks for such an amazing work!\n>\n> — <a href=\"https://github.com/MirzayevFarid\">Mirzayev Farid</a>\n\n> Got has been a crucial component of Apify's scraping for years. We use it to extract data from billions of web pages every month, and we really appreciate the powerful API and extensibility, which allowed us to build our own specialized HTTP client on top of Got. The support has always been stellar too.\n>\n> — <a href=\"https://github.com/mnmkng\">Ondra Urban</a>\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `got` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-got?utm_source=npm-got&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n","readmeFilename":"readme.md","gitHead":"79547b35067f141cd6c1c528e5042fa4662fdf97","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.0.0-beta.4","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-WLW9+m06jQPDEacEIykiFoE97+c4lquCmBTKmMTELENFlfBkL50oyWX2mleNNHsUHSXSVu49QL/P4HCS948sRg==","shasum":"e177396c454e49963d49efc38745fe3f29336324","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.0.0-beta.4.tgz","fileCount":43,"unpackedSize":250407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFMukCRA9TVsSAnZWagAAkA0P/ioYId02ADGZ4P4HQods\n24YdSL4cArRa3SJ6xPkIDLMfEDR7UmwoXvqvkD6mX2cz8Vkk9RT/MLxetVEg\nCKzm4/kK0zpyjgwRgVBMHvgqQvfNNDFFLjyUPVFayi9yzblbnV0QQt823rG8\ndzyOhkAfEmdipETU/pp24JPQFGAiB94L5ptjOxhYKNmE3VNcVw5v+12LpJNA\nDa18+mQOaM3nraISSdOCDiECloE708PaQKy8E8O/l3xto1jk8RTsPoT2wjgB\ns/zQx9hd2BSbkblWA9SBUKlY+5Zp4bGyTBASgyrAxI6w6MD0lGIHeBeemL9d\ne7slXnFBiyERnRk+Ot4d8W1ch5eBIcE6tP3xO7P7+t9iZhutHXHJSQJn2kDv\ndGk3abUf3med+JZcgEBkHi3hTmTlh+Yh6ZiX94S/pYUzbq0w2eot39PP8216\nJWyY7VGHCckCwk/ycrKD+wcI2jq3Uo9RrVT8bDuf2mUFPF0QktxjHrs3FJnm\nxWt08y5ctTNJOfr353eylosc6hvIBw7IeWe9NhN0R/w4hkW+db9w9UI+ZxYh\nIJOwiBL2l9ES7ITUwS1vsWTTtC+sgnlLXhKZcKcxywPuDY2gNjf8rqxNVD15\nlvwN9t6veMVga2GlSMxTzmumc9fbJXhIgsTW7/1ODw0cJUyqiZoH//VJ6vol\nshKm\r\n=5CVV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbxsq9NkwpUhrATzv9xYJ1HdmsFEHxt5kQy5WjntEPQQIgNkpbNeBmijF9PNiyi0IzKlIxZ/gUlZ0rl+dpnSoJ1cI="}]},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.0.0-beta.4_1628752804598_0.48309740757990594"},"_hasShrinkwrap":false},"12.0.0":{"name":"got-cjs","version":"12.0.0","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/got.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.2.0","@szmarczak/http-timer":"4.0.6","@types/cacheable-request":"^6.0.2","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.4","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","form-data-encoder":"1.7.1","get-stream":"^6.0.1","http2-wrapper":"^2.1.9","lowercase-keys":"2.0.0","p-cancelable":"2.1.1","responselike":"^2.0.0"},"devDependencies":{"@hapi/bourne":"^2.0.0","@sindresorhus/tsconfig":"^2.0.0","@sinonjs/fake-timers":"^8.1.0","@types/benchmark":"^2.1.1","@types/express":"^4.17.13","@types/node":"^16.11.12","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.12","@types/request":"^2.48.7","@types/sinon":"^10.0.6","@types/sinonjs__fake-timers":"^8.1.1","@types/tough-cookie":"^4.0.1","ava":"^3.15.0","axios":"^0.24.0","benchmark":"^2.1.4","bluebird":"^3.7.2","body-parser":"^1.19.0","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^4.0.1","delay":"^5.0.0","express":"^4.17.1","form-data":"^4.0.0","formdata-node":"^4.3.1","nock":"^13.2.1","node-fetch":"^3.1.0","np":"^7.6.0","nyc":"^15.1.0","p-event":"^5.0.1","pem":"^1.14.4","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^12.0.1","slow-stream":"0.0.4","tempy":"^2.0.0","then-busboy":"^5.1.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^10.4.0","typescript":"4.5.3","xo":"^0.47.0"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off","no-lone-blocks":"off","unicorn/no-await-expression-member":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","respository":"apify/got-cjs","main":"./dist/source/index.js","readme":"<div align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"media/logo.svg\" alt=\"Got\">\n\t<br>\n\t<br>\n\t<br>\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\tSindre's open source work is supported by the community.<br>Special thanks to:\n\t\t\t</sup>\n\t\t</p>\n\t\t<br>\n\t\t<a href=\"https://retool.com/?utm_campaign=sindresorhus\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/retool-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://strapi.io/?ref=sindresorhus\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png\" width=\"200\" alt=\"Strapi\">\n\t\t\t</div>\n\t\t\t<b>Strapi is the leading open-source headless CMS.</b>\n\t\t\t<div>\n\t\t\t\t<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://www.monito.com\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/monito-logo.svg\" width=\"210\">\n\t\t\t</div>\n\t\t\t<b>Find the cheapest way to send money abroad</b>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://keygen.sh\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/keygen-logo.svg\" width=\"180\" alt=\"Keygen\">\n\t\t\t</div>\n\t\t\t<b>A dead-simple software licensing and distribution API built for developers</b>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t</p>\n\t<br>\n\t<br>\n</div>\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.com/badge?p=got)](https://packagephobia.com/result?p=got)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n---\n\nFor browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the same people.\n\n---\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Install\n\n```\n$ npm install got\n```\n\n## Take a peek\n\n### JSON mode\n\nGot has a dedicated option for handling JSON payload.\\\nFurthermore, the promise exposes a `.json<T>()` function that returns `Promise<T>`.\n\n```js\nimport got from 'got';\n\nconst {data} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(data);\n//=> {\"hello\": \"world\"}\n```\n\nFor advanced JSON usage, check out the [`parseJson`](documentation/2-options.md#parsejson) and [`stringifyJson`](documentation/2-options.md#stringifyjson) options.\n\n**For more useful tips like this, visit the [Tips](documentation/tips.md) page.**\n\n## Highlights\n\n- [Used by 6K+ packages and 3M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Documentation\n\n#### Main API\n\n- [x] [Promise API](documentation/1-promise.md)\n- [x] [Options](documentation/2-options.md)\n- [x] [Stream API](documentation/3-streams.md)\n- [x] [Pagination API](documentation/4-pagination.md)\n- [x] [Advanced HTTPS API](documentation/5-https.md)\n- [x] [HTTP/2 support](documentation/2-options.md#http2)\n- [x] [`Response` class](documentation/3-streams.md#response-1)\n\n#### Timeouts and retries\n\n- [x] [Advanced timeout handling](documentation/6-timeout.md)\n- [x] [Retries on failure](documentation/7-retry.md)\n- [x] [Errors with metadata](documentation/8-errors.md)\n\n#### Advanced creation\n\n- [x] [Hooks](documentation/9-hooks.md)\n- [x] [Instances](documentation/10-instances.md)\n- [x] [Progress events & other events](documentation/3-streams.md#events)\n- [x] [Plugins](documentation/lets-make-a-plugin.md)\n- [x] [Compose](documentation/examples/advanced-creation.js)\n\n#### Cache, Proxy and UNIX sockets\n\n- [x] [RFC compliant caching](documentation/cache.md)\n- [x] [Proxy support](documentation/tips.md#proxying)\n- [x] [Unix Domain Sockets](documentation/tips.md#unix)\n\n#### Integration\n\n- [x] [TypeScript support](documentation/typescript.md)\n- [x] [AWS](documentation/tips.md#aws)\n- [x] [Testing](documentation/tips.md#testing)\n\n---\n\n### Migration guides\n\n- [Request migration guide](documentation/migration-guides/request.md)\n  - [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n- [Axios](documentation/migration-guides/axios.md)\n- [Node.js](documentation/migration-guides/nodejs.md)\n\n## Got plugins\n\n- [`got4aws`](https://github.com/SamVerschueren/got4aws) - Got convenience wrapper to interact with AWS v4 signed APIs\n- [`gh-got`](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [`gl-got`](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [`gotql`](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [`got-fetch`](https://github.com/alexghr/got-fetch) - Got with a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) interface\n- [`got-scraping`](https://github.com/apify/got-scraping) - Got wrapper specifically designed for web scraping purposes\n- [`got-ssrf`](https://github.com/JaneJeon/got-ssrf) - Got wrapper to protect server-side requests against SSRF attacks\n\n### Legacy\n\n- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API\n- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL\n\n## Comparison\n\n|                       | `got`               | [`request`][r0]    | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :x:                | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | :heavy_check_mark: | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :x:                | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-box)  | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][rio]][r1]     | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][ric]][r2]     | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][rd]][r3]      | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | TBD       | [![][rc]][r4]      | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][rb]][r5]      | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][rbg]][r6]     | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][rdp]][r7]     | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][ris]][r8]     | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][rs]][r9]      | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][rts]][r10]    | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][rlc]][r11]    | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\\\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n<!-- GITHUB -->\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n<!-- ISSUES OPEN -->\n[gio]: https://img.shields.io/github/issues-raw/sindresorhus/got?color=gray&label\n[kio]: https://img.shields.io/github/issues-raw/sindresorhus/ky?color=gray&label\n[rio]: https://img.shields.io/github/issues-raw/request/request?color=gray&label\n[nio]: https://img.shields.io/github/issues-raw/bitinn/node-fetch?color=gray&label\n[aio]: https://img.shields.io/github/issues-raw/axios/axios?color=gray&label\n[sio]: https://img.shields.io/github/issues-raw/visionmedia/superagent?color=gray&label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n<!-- ISSUES CLOSED -->\n[gic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/got?color=blue&label\n[kic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/ky?color=blue&label\n[ric]: https://img.shields.io/github/issues-closed-raw/request/request?color=blue&label\n[nic]: https://img.shields.io/github/issues-closed-raw/bitinn/node-fetch?color=blue&label\n[aic]: https://img.shields.io/github/issues-closed-raw/axios/axios?color=blue&label\n[sic]: https://img.shields.io/github/issues-closed-raw/visionmedia/superagent?color=blue&label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n<!-- DOWNLOADS -->\n[gd]: https://img.shields.io/npm/dm/got?color=darkgreen&label\n[kd]: https://img.shields.io/npm/dm/ky?color=darkgreen&label\n[rd]: https://img.shields.io/npm/dm/request?color=darkgreen&label\n[nd]: https://img.shields.io/npm/dm/node-fetch?color=darkgreen&label\n[ad]: https://img.shields.io/npm/dm/axios?color=darkgreen&label\n[sd]: https://img.shields.io/npm/dm/superagent?color=darkgreen&label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[r3]: https://www.npmjs.com/package/request\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n<!-- COVERAGE -->\n[gc]: https://img.shields.io/coveralls/github/sindresorhus/got?color=0b9062&label\n[kc]: https://img.shields.io/codecov/c/github/sindresorhus/ky?color=0b9062&label\n[rc]: https://img.shields.io/coveralls/github/request/request?color=0b9062&label\n[nc]: https://img.shields.io/coveralls/github/bitinn/node-fetch?color=0b9062&label\n[ac]: https://img.shields.io/coveralls/github/mzabriskie/axios?color=0b9062&label\n[sc]: https://img.shields.io/codecov/c/github/visionmedia/superagent?color=0b9062&label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[r4]: https://coveralls.io/github/request/request\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n<!-- BUILD -->\n[gb]: https://github.com/sindresorhus/got/actions/workflows/main.yml/badge.svg\n[kb]: https://github.com/sindresorhus/ky/actions/workflows/main.yml/badge.svg\n[rb]: https://img.shields.io/travis/request/request?label\n[nb]: https://img.shields.io/travis/bitinn/node-fetch?label\n[ab]: https://img.shields.io/travis/axios/axios?label\n[sb]: https://img.shields.io/travis/visionmedia/superagent?label\n\n[g5]: https://github.com/sindresorhus/got/actions/workflows/main.yml\n[k5]: https://github.com/sindresorhus/ky/actions/workflows/main.yml\n[r5]: https://travis-ci.org/github/request/request\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n<!-- BUGS -->\n[gbg]: https://img.shields.io/github/issues-raw/sindresorhus/got/bug?color=darkred&label\n[kbg]: https://img.shields.io/github/issues-raw/sindresorhus/ky/bug?color=darkred&label\n[rbg]: https://img.shields.io/github/issues-raw/request/request/Needs%20investigation?color=darkred&label\n[nbg]: https://img.shields.io/github/issues-raw/bitinn/node-fetch/bug?color=darkred&label\n[abg]: https://img.shields.io/github/issues-raw/axios/axios/type:confirmed%20bug?color=darkred&label\n[sbg]: https://img.shields.io/github/issues-raw/visionmedia/superagent/Bug?color=darkred&label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A\"Needs+investigation\"\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3Aconfirmed+bug%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n<!-- DEPENDENTS -->\n[gdp]: https://badgen.net/npm/dependents/got?color=orange&label\n[kdp]: https://badgen.net/npm/dependents/ky?color=orange&label\n[rdp]: https://badgen.net/npm/dependents/request?color=orange&label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?color=orange&label\n[adp]: https://badgen.net/npm/dependents/axios?color=orange&label\n[sdp]: https://badgen.net/npm/dependents/superagent?color=orange&label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[r7]: https://www.npmjs.com/package/request?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n<!-- INSTALL SIZE -->\n[gis]: https://badgen.net/packagephobia/install/got?color=blue&label\n[kis]: https://badgen.net/packagephobia/install/ky?color=blue&label\n[ris]: https://badgen.net/packagephobia/install/request?color=blue&label\n[nis]: https://badgen.net/packagephobia/install/node-fetch?color=blue&label\n[ais]: https://badgen.net/packagephobia/install/axios?color=blue&label\n[sis]: https://badgen.net/packagephobia/install/superagent?color=blue&label\n\n[g8]: https://packagephobia.com/result?p=got\n[k8]: https://packagephobia.com/result?p=ky\n[r8]: https://packagephobia.com/result?p=request\n[n8]: https://packagephobia.com/result?p=node-fetch\n[a8]: https://packagephobia.com/result?p=axios\n[s8]: https://packagephobia.com/result?p=superagent\n\n<!-- GITHUB STARS -->\n[gs]: https://img.shields.io/github/stars/sindresorhus/got?color=white&label\n[ks]: https://img.shields.io/github/stars/sindresorhus/ky?color=white&label\n[rs]: https://img.shields.io/github/stars/request/request?color=white&label\n[ns]: https://img.shields.io/github/stars/bitinn/node-fetch?color=white&label\n[as]: https://img.shields.io/github/stars/axios/axios?color=white&label\n[ss]: https://img.shields.io/github/stars/visionmedia/superagent?color=white&label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[r9]: https://github.com/request/request\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n<!-- TYPESCRIPT SUPPORT -->\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[rts]: https://badgen.net/npm/types/request?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[r10]: https://github.com/request/request\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n<!-- LAST COMMIT -->\n[glc]: https://img.shields.io/github/last-commit/sindresorhus/got?color=gray&label\n[klc]: https://img.shields.io/github/last-commit/sindresorhus/ky?color=gray&label\n[rlc]: https://img.shields.io/github/last-commit/request/request?color=gray&label\n[nlc]: https://img.shields.io/github/last-commit/bitinn/node-fetch?color=gray&label\n[alc]: https://img.shields.io/github/last-commit/axios/axios?color=gray&label\n[slc]: https://img.shields.io/github/last-commit/visionmedia/superagent?color=gray&label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[r11]: https://github.com/request/request/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@4.0.1,@szmarczak/http-timer@4.0.5,@types/cacheable-request@6.0.1,@types/responselike@1.0.0,cacheable-lookup@6.0.0,cacheable-request@7.0.2,decompress-response@6.0.0,get-stream@6.0.1,http2-wrapper@2.0.5,lowercase-keys@2.0.0,p-cancelable@2.1.1,responselike@2.0.0\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak)\n---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n- [Alexander Tesfamichael](https://github.com/alextes)\n- [Brandon Smith](https://github.com/brandon93s)\n- [Luke Childs](https://github.com/lukechilds)\n- [Giovanni Minotti](https://github.com/Giotino)\n\n<a name=\"widely-used\"></a>\n## These amazing companies are using Got\n\n<table>\n<tbody>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://segment.com\">\n\t\t\t\t<img width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://antora.org\">\n\t\t\t\t<img width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://getvoip.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/exoframejs/exoframe\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"http://karaokes.moe\">\n\t\t\t\t<img width=\"140\" valign=\"middle\" src=\"https://camo.githubusercontent.com/6860e5fa4684c14d8e1aa65df0aba4e6808ea1a9/687474703a2f2f6b6172616f6b65732e6d6f652f6173736574732f696d616765732f696e6465782e706e67\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/renovatebot/renovate\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://camo.githubusercontent.com/206d470ac709b9a702a97b0c08d6f389a086793d/68747470733a2f2f72656e6f76617465626f742e636f6d2f696d616765732f6c6f676f2e737667\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://resist.bot\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://www.naturalcycles.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://microlink.io\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://radity.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://apify.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/23726914/128673143-958b5930-b677-40ef-8087-5698a0c29c45.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n</tbody>\n</table>\n\n<!-- <br> -->\n\n<!-- *Creating an awesome product? Open an issue to get listed here.* -->\n\n<br>\n\n> Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n>\n> — <a href=\"https://github.com/vadimdemedes\">Vadim Demedes</a>\n\n> Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n>\n> — <a href=\"https://github.com/mojavelinux\">Dan Allen</a>\n\n> GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n>\n> — <a href=\"https://github.com/danielkalen\">Daniel Kalen</a>\n\n> We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n>\n> — <a href=\"https://github.com/yamalight\">Tim Ermilov</a>\n\n> Karaoke Mugen uses Got to fetch content updates from its online server.\n>\n> — <a href=\"https://github.com/AxelTerizaki\">Axel Terizaki</a>\n\n> Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n>\n> — <a href=\"https://github.com/rarkins\">Rhys Arkins</a>\n\n> Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n>\n> — <a href=\"https://github.com/chris-erickson\">Chris Erickson</a>\n\n> Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n>\n> — <a href=\"https://github.com/kirillgroshkov\">Kirill Groshkov</a>\n\n> Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n>\n> — <a href=\"https://github.com/Kikobeats\">Kiko Beats</a>\n\n> We’re using Got at Radity. Thanks for such an amazing work!\n>\n> — <a href=\"https://github.com/MirzayevFarid\">Mirzayev Farid</a>\n\n> Got has been a crucial component of Apify's scraping for years. We use it to extract data from billions of web pages every month, and we really appreciate the powerful API and extensibility, which allowed us to build our own specialized HTTP client on top of Got. The support has always been stellar too.\n>\n> — <a href=\"https://github.com/mnmkng\">Ondra Urban</a>\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `got` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-got?utm_source=npm-got&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n","readmeFilename":"readme.md","gitHead":"2ac07e1b60f59e2219bd6c2809a9e40f56b146b6","bugs":{"url":"https://github.com/sindresorhus/got/issues"},"homepage":"https://github.com/sindresorhus/got#readme","_id":"got-cjs@12.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-gn33+66JxnhPl5ISyU3e7+qbRX0Vw7HxP76/GyDwuCpNFIAahSmuu4Xke5OIqSLy2WsEi5UjB4LhW76rw/i1+w==","shasum":"9b4d5efe0b95f7ea911eb7953e52f945d3bb2b95","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.0.0.tgz","fileCount":43,"unpackedSize":258222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0sWACRA9TVsSAnZWagAAj6sP/0TxMbGmdXvT7zWMi1Kr\n3KIT1gl3ox4o5n31K/g7AmVsQ96e7anO1qK2s67Vn0+Kur29FYsTB6gS2mTf\nW6rilbo4NzNgd6h3hEWJcue+cKCx05YgWwxrdKeVRGGjTqPx9kx4HldvW4Dc\nBS+Byv7yqKY5hco1ji03f8JfC+aJqGqhaZc0Ox0XQI+8wXoJf87Mt5fBNUHX\nyZm/RBwnK54aZqrj6DXb5oITN74Evc5hHvsHjJLz9DEFdZQePObIXT99hjC+\nYUXikDJT2J2dz23VLsfWjGOCjNagprrdZGxvnz8Jq4hXk3BBTOkam0oj3LdF\nCMIaAB3SCxV6GUN2e2nhbHTZ5M+m5KnDt5r78RsghDmKSUmiFFIZSdyCaUvY\nY8lG1+GHn1O79JHekDh6F81XGQ+3mJbSK68vBAymRyYqe3yXXbjW0IhldO2P\nw5OTXYvjg2HbyrdNdD3cjM3KzfKqSTWTTCOOHHiywdB3Xc5w7sxgMYWXSOBa\nRC0Tf/pS9dbTkGQ/5XO5gIjHfjyAjlbi0pzUf1behakt9C/8W2guzMNvoEk0\nLxKm1n30WbBMwW9kLU3DAOlGje72xOcseVIF8dJwRZphFkutfbeQaPf3g0d1\n7arLYBWlclXC1Zo9xxd+M4RUi0MCJE+XqhQoo5IaT4s1kpQ3GjJAAJH+1Wj8\nt5kM\r\n=waRj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEIEukTIMhT0mHE+e5FpJceLi1iGduHbtWh5ov0X7UAKAiATmFq1LP+2A4qysFq+u5fI0WxD3Td2sq5F+dc4IrOrkw=="}]},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.0.0_1641203072601_0.7840196835214097"},"_hasShrinkwrap":false},"12.0.1":{"name":"got-cjs","version":"12.0.1","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/got.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.2.0","@szmarczak/http-timer":"4.0.6","@types/cacheable-request":"^6.0.2","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.4","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","form-data-encoder":"1.7.1","get-stream":"^6.0.1","http2-wrapper":"^2.1.9","lowercase-keys":"2.0.0","p-cancelable":"2.1.1","responselike":"^2.0.0"},"devDependencies":{"@hapi/bourne":"^2.0.0","@sindresorhus/tsconfig":"^2.0.0","@sinonjs/fake-timers":"^8.1.0","@types/benchmark":"^2.1.1","@types/express":"^4.17.13","@types/node":"^16.11.12","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.12","@types/request":"^2.48.7","@types/sinon":"^10.0.6","@types/sinonjs__fake-timers":"^8.1.1","@types/tough-cookie":"^4.0.1","ava":"^3.15.0","axios":"^0.24.0","benchmark":"^2.1.4","bluebird":"^3.7.2","body-parser":"^1.19.0","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^4.0.1","delay":"^5.0.0","express":"^4.17.1","form-data":"^4.0.0","formdata-node":"^4.3.1","nock":"^13.2.1","node-fetch":"^3.1.0","np":"^7.6.0","nyc":"^15.1.0","p-event":"^5.0.1","pem":"^1.14.4","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^12.0.1","slow-stream":"0.0.4","tempy":"^2.0.0","then-busboy":"^5.1.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^10.4.0","typescript":"4.5.3","xo":"^0.47.0"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off","no-lone-blocks":"off","unicorn/no-await-expression-member":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","respository":"apify/got-cjs","main":"./dist/source/index.js","gitHead":"2ac07e1b60f59e2219bd6c2809a9e40f56b146b6","bugs":{"url":"https://github.com/sindresorhus/got/issues"},"homepage":"https://github.com/sindresorhus/got#readme","_id":"got-cjs@12.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-tRcTpee77XR9PNOp2Pu1P/XD67zkdeaBJ8kFz90for9dDTg6tqQKe64ORPbxFnB0mECKB+PQKCTcvJJdhv265g==","shasum":"e702d08fd046401a5f84a048f2d3a4f89ce9deb0","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.0.1.tgz","fileCount":43,"unpackedSize":258084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0tXxCRA9TVsSAnZWagAAf8UP/2mTUm57JnkutiVWpTq5\nBxEXt88eWAFkOWw0dUBiX3m/IC9Ownn5a2r7oFgUaPTc6jO2R74m9oopakFG\nTpVCGJ0stEABYvAONTPtwkxwiQtgjQjHJaQGU9J4p3bZBWrPZdoNaGsWXBMG\nA+7/ExvgknhhRTvg+o7E7VdIBuZCQVZA26i4oLBkBXkL7iFN3yNufcOzh9mS\nV3jXeuU4Nh+4ubVTrYa4FT+qPSNaFqtO2mBYF2I9fuQEySMKTNjecoAipBSn\nPEjw0YKAwkpAWzcY717P8tQn+d0N/OCYmEbbWx3vuxd+W1pPJ2HfriGl4Nwv\nl0VO2/4Ot4TXOWzS7hvxPaNoXkO4HReZfyLlEAjm4aKd5iUC2Pb5WBUXsIt+\nNHKvWoUgE8N3BgIEFa7hUy7qwchqeguDe2p46UrZCUBbniHsU7pUhNRmshcW\n3u0GiIJ/ACPHItQ7FKQhOVMFpQvfrHEoYVdFj2fGTNzRU25Oe5gTQhULaWFQ\nSirPD75s2rC5YtB9Yxu3KLlSjsFrtWR1CLo5cr79SxzbGldb7++F66vjyJv2\n3ToL94oiHMJLZuAaJMGPC7Cm3sGctLy9nZXbzpX17sr+r28WFw+a77sIsxqw\nuKAoqf5KuvarXqCbw9qPD9okdxonCpGq4dME8pHzVPz9KHIQF0hkAzAk54pc\n3Xzv\r\n=SN7d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWhIhWo7X6gGONuihkTic5q28DAfrvAFBDrBtVuhJfjQIhAJ0JnQNcqFAfBlMina3ewJAVFIdFRK53F0oFl5AvLQX0"}]},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.0.1_1641207281631_0.21703047096893702"},"_hasShrinkwrap":false},"12.0.4":{"name":"got-cjs","version":"12.0.4","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"^4.6.0","@szmarczak/http-timer":"4.0.6","@types/cacheable-request":"^6.0.2","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.4","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","form-data-encoder":"1.7.1","get-stream":"^6.0.1","http2-wrapper":"^2.1.10","lowercase-keys":"2.0.0","p-cancelable":"2.1.1","responselike":"^2.0.0"},"devDependencies":{"@hapi/bourne":"^2.0.0","@sindresorhus/tsconfig":"^2.0.0","@sinonjs/fake-timers":"^9.1.1","@types/benchmark":"^2.1.1","@types/express":"^4.17.13","@types/node":"^17.0.21","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.13","@types/request":"^2.48.8","@types/sinon":"^10.0.11","@types/sinonjs__fake-timers":"^8.1.1","@types/tough-cookie":"^4.0.1","ava":"^3.15.0","axios":"^0.26.1","benchmark":"^2.1.4","bluebird":"^3.7.2","body-parser":"^1.19.2","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^4.0.1","delay":"^5.0.0","express":"^4.17.3","form-data":"^4.0.0","formdata-node":"^4.3.2","nock":"^13.2.4","node-fetch":"^3.2.3","np":"^7.6.0","nyc":"^15.1.0","p-event":"^5.0.1","pem":"^1.14.6","pify":"^5.0.0","readable-stream":"^3.6.0","request":"^2.88.2","sinon":"^13.0.1","slow-stream":"0.0.4","tempy":"^2.0.0","then-busboy":"^5.1.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^10.7.0","typescript":"4.6.2","xo":"^0.48.0"},"types":"dist/source","sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","node/no-deprecated-api":"off","node/prefer-global/url":"off","node/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off","no-lone-blocks":"off","unicorn/no-await-expression-member":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","readme":"<div align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"media/logo.svg\" alt=\"Got\">\n\t<br>\n\t<br>\n\t<br>\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\tSindre's open source work is supported by the community.<br>Special thanks to:\n\t\t\t</sup>\n\t\t</p>\n\t\t<br>\n\t\t<a href=\"https://retool.com/?utm_campaign=sindresorhus\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/retool-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://strapi.io/?ref=sindresorhus\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png\" width=\"200\" alt=\"Strapi\">\n\t\t\t</div>\n\t\t\t<b>Strapi is the leading open-source headless CMS.</b>\n\t\t\t<div>\n\t\t\t\t<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://www.monito.com\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/monito-logo.svg\" width=\"210\">\n\t\t\t</div>\n\t\t\t<b>Find the cheapest way to send money abroad</b>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://keygen.sh\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/keygen-logo.svg\" width=\"180\" alt=\"Keygen\">\n\t\t\t</div>\n\t\t\t<b>A dead-simple software licensing and distribution API built for developers</b>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t</p>\n\t<br>\n\t<br>\n</div>\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.com/badge?p=got)](https://packagephobia.com/result?p=got)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n---\n\nFor browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the same people.\n\n---\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Install\n\n```sh\nnpm install got\n```\n\n**Warning:** This package is native [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) and no longer provides a CommonJS export. If your project uses CommonJS, you'll have to [convert to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) or use the [dynamic `import()`](https://v8.dev/features/dynamic-import) function. Please don't open issues for questions regarding CommonJS / ESM. You can also use [Got v11](https://github.com/sindresorhus/got/tree/v11.8.3) instead which is pretty stable.\n\n## Take a peek\n\n### JSON mode\n\nGot has a dedicated option for handling JSON payload.\\\nFurthermore, the promise exposes a `.json<T>()` function that returns `Promise<T>`.\n\n```js\nimport got from 'got';\n\nconst {data} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(data);\n//=> {\"hello\": \"world\"}\n```\n\nFor advanced JSON usage, check out the [`parseJson`](documentation/2-options.md#parsejson) and [`stringifyJson`](documentation/2-options.md#stringifyjson) options.\n\n**For more useful tips like this, visit the [Tips](documentation/tips.md) page.**\n\n## Highlights\n\n- [Used by 6K+ packages and 3M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Documentation\n\n#### Main API\n\n- [x] [Promise API](documentation/1-promise.md)\n- [x] [Options](documentation/2-options.md)\n- [x] [Stream API](documentation/3-streams.md)\n- [x] [Pagination API](documentation/4-pagination.md)\n- [x] [Advanced HTTPS API](documentation/5-https.md)\n- [x] [HTTP/2 support](documentation/2-options.md#http2)\n- [x] [`Response` class](documentation/3-streams.md#response-1)\n\n#### Timeouts and retries\n\n- [x] [Advanced timeout handling](documentation/6-timeout.md)\n- [x] [Retries on failure](documentation/7-retry.md)\n- [x] [Errors with metadata](documentation/8-errors.md)\n\n#### Advanced creation\n\n- [x] [Hooks](documentation/9-hooks.md)\n- [x] [Instances](documentation/10-instances.md)\n- [x] [Progress events & other events](documentation/3-streams.md#events)\n- [x] [Plugins](documentation/lets-make-a-plugin.md)\n- [x] [Compose](documentation/examples/advanced-creation.js)\n\n#### Cache, Proxy and UNIX sockets\n\n- [x] [RFC compliant caching](documentation/cache.md)\n- [x] [Proxy support](documentation/tips.md#proxying)\n- [x] [Unix Domain Sockets](documentation/tips.md#unix)\n\n#### Integration\n\n- [x] [TypeScript support](documentation/typescript.md)\n- [x] [AWS](documentation/tips.md#aws)\n- [x] [Testing](documentation/tips.md#testing)\n\n---\n\n### Migration guides\n\n- [Request migration guide](documentation/migration-guides/request.md)\n  - [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n- [Axios](documentation/migration-guides/axios.md)\n- [Node.js](documentation/migration-guides/nodejs.md)\n\n## Got plugins\n\n- [`got4aws`](https://github.com/SamVerschueren/got4aws) - Got convenience wrapper to interact with AWS v4 signed APIs\n- [`gh-got`](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [`gl-got`](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [`gotql`](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [`got-fetch`](https://github.com/alexghr/got-fetch) - Got with a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) interface\n- [`got-scraping`](https://github.com/apify/got-scraping) - Got wrapper specifically designed for web scraping purposes\n- [`got-ssrf`](https://github.com/JaneJeon/got-ssrf) - Got wrapper to protect server-side requests against SSRF attacks\n\n### Legacy\n\n- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API\n- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL\n\n## Comparison\n\n|                       | `got`               | [`request`][r0]    | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :x:                | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | :heavy_check_mark: | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :x:                | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-box)  | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][rio]][r1]     | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][ric]][r2]     | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][rd]][r3]      | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | TBD       | [![][rc]][r4]      | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][rb]][r5]      | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][rbg]][r6]     | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][rdp]][r7]     | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][ris]][r8]     | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][rs]][r9]      | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][rts]][r10]    | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][rlc]][r11]    | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\\\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n<!-- GITHUB -->\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n<!-- ISSUES OPEN -->\n[gio]: https://img.shields.io/github/issues-raw/sindresorhus/got?color=gray&label\n[kio]: https://img.shields.io/github/issues-raw/sindresorhus/ky?color=gray&label\n[rio]: https://img.shields.io/github/issues-raw/request/request?color=gray&label\n[nio]: https://img.shields.io/github/issues-raw/bitinn/node-fetch?color=gray&label\n[aio]: https://img.shields.io/github/issues-raw/axios/axios?color=gray&label\n[sio]: https://img.shields.io/github/issues-raw/visionmedia/superagent?color=gray&label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n<!-- ISSUES CLOSED -->\n[gic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/got?color=blue&label\n[kic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/ky?color=blue&label\n[ric]: https://img.shields.io/github/issues-closed-raw/request/request?color=blue&label\n[nic]: https://img.shields.io/github/issues-closed-raw/bitinn/node-fetch?color=blue&label\n[aic]: https://img.shields.io/github/issues-closed-raw/axios/axios?color=blue&label\n[sic]: https://img.shields.io/github/issues-closed-raw/visionmedia/superagent?color=blue&label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n<!-- DOWNLOADS -->\n[gd]: https://img.shields.io/npm/dm/got?color=darkgreen&label\n[kd]: https://img.shields.io/npm/dm/ky?color=darkgreen&label\n[rd]: https://img.shields.io/npm/dm/request?color=darkgreen&label\n[nd]: https://img.shields.io/npm/dm/node-fetch?color=darkgreen&label\n[ad]: https://img.shields.io/npm/dm/axios?color=darkgreen&label\n[sd]: https://img.shields.io/npm/dm/superagent?color=darkgreen&label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[r3]: https://www.npmjs.com/package/request\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n<!-- COVERAGE -->\n[gc]: https://img.shields.io/coveralls/github/sindresorhus/got?color=0b9062&label\n[kc]: https://img.shields.io/codecov/c/github/sindresorhus/ky?color=0b9062&label\n[rc]: https://img.shields.io/coveralls/github/request/request?color=0b9062&label\n[nc]: https://img.shields.io/coveralls/github/bitinn/node-fetch?color=0b9062&label\n[ac]: https://img.shields.io/coveralls/github/mzabriskie/axios?color=0b9062&label\n[sc]: https://img.shields.io/codecov/c/github/visionmedia/superagent?color=0b9062&label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[r4]: https://coveralls.io/github/request/request\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n<!-- BUILD -->\n[gb]: https://github.com/sindresorhus/got/actions/workflows/main.yml/badge.svg\n[kb]: https://github.com/sindresorhus/ky/actions/workflows/main.yml/badge.svg\n[rb]: https://img.shields.io/travis/request/request?label\n[nb]: https://img.shields.io/travis/bitinn/node-fetch?label\n[ab]: https://img.shields.io/travis/axios/axios?label\n[sb]: https://img.shields.io/travis/visionmedia/superagent?label\n\n[g5]: https://github.com/sindresorhus/got/actions/workflows/main.yml\n[k5]: https://github.com/sindresorhus/ky/actions/workflows/main.yml\n[r5]: https://travis-ci.org/github/request/request\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n<!-- BUGS -->\n[gbg]: https://img.shields.io/github/issues-raw/sindresorhus/got/bug?color=darkred&label\n[kbg]: https://img.shields.io/github/issues-raw/sindresorhus/ky/bug?color=darkred&label\n[rbg]: https://img.shields.io/github/issues-raw/request/request/Needs%20investigation?color=darkred&label\n[nbg]: https://img.shields.io/github/issues-raw/bitinn/node-fetch/bug?color=darkred&label\n[abg]: https://img.shields.io/github/issues-raw/axios/axios/type:confirmed%20bug?color=darkred&label\n[sbg]: https://img.shields.io/github/issues-raw/visionmedia/superagent/Bug?color=darkred&label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A\"Needs+investigation\"\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3Aconfirmed+bug%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n<!-- DEPENDENTS -->\n[gdp]: https://badgen.net/npm/dependents/got?color=orange&label\n[kdp]: https://badgen.net/npm/dependents/ky?color=orange&label\n[rdp]: https://badgen.net/npm/dependents/request?color=orange&label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?color=orange&label\n[adp]: https://badgen.net/npm/dependents/axios?color=orange&label\n[sdp]: https://badgen.net/npm/dependents/superagent?color=orange&label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[r7]: https://www.npmjs.com/package/request?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n<!-- INSTALL SIZE -->\n[gis]: https://badgen.net/packagephobia/install/got?color=blue&label\n[kis]: https://badgen.net/packagephobia/install/ky?color=blue&label\n[ris]: https://badgen.net/packagephobia/install/request?color=blue&label\n[nis]: https://badgen.net/packagephobia/install/node-fetch?color=blue&label\n[ais]: https://badgen.net/packagephobia/install/axios?color=blue&label\n[sis]: https://badgen.net/packagephobia/install/superagent?color=blue&label\n\n[g8]: https://packagephobia.com/result?p=got\n[k8]: https://packagephobia.com/result?p=ky\n[r8]: https://packagephobia.com/result?p=request\n[n8]: https://packagephobia.com/result?p=node-fetch\n[a8]: https://packagephobia.com/result?p=axios\n[s8]: https://packagephobia.com/result?p=superagent\n\n<!-- GITHUB STARS -->\n[gs]: https://img.shields.io/github/stars/sindresorhus/got?color=white&label\n[ks]: https://img.shields.io/github/stars/sindresorhus/ky?color=white&label\n[rs]: https://img.shields.io/github/stars/request/request?color=white&label\n[ns]: https://img.shields.io/github/stars/bitinn/node-fetch?color=white&label\n[as]: https://img.shields.io/github/stars/axios/axios?color=white&label\n[ss]: https://img.shields.io/github/stars/visionmedia/superagent?color=white&label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[r9]: https://github.com/request/request\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n<!-- TYPESCRIPT SUPPORT -->\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[rts]: https://badgen.net/npm/types/request?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[r10]: https://github.com/request/request\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n<!-- LAST COMMIT -->\n[glc]: https://img.shields.io/github/last-commit/sindresorhus/got?color=gray&label\n[klc]: https://img.shields.io/github/last-commit/sindresorhus/ky?color=gray&label\n[rlc]: https://img.shields.io/github/last-commit/request/request?color=gray&label\n[nlc]: https://img.shields.io/github/last-commit/bitinn/node-fetch?color=gray&label\n[alc]: https://img.shields.io/github/last-commit/axios/axios?color=gray&label\n[slc]: https://img.shields.io/github/last-commit/visionmedia/superagent?color=gray&label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[r11]: https://github.com/request/request/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@4.0.1,@szmarczak/http-timer@4.0.5,@types/cacheable-request@6.0.1,@types/responselike@1.0.0,cacheable-lookup@6.0.0,cacheable-request@7.0.2,decompress-response@6.0.0,get-stream@6.0.1,http2-wrapper@2.0.5,lowercase-keys@2.0.0,p-cancelable@2.1.1,responselike@2.0.0\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak)\n---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n- [Alexander Tesfamichael](https://github.com/alextes)\n- [Brandon Smith](https://github.com/brandon93s)\n- [Luke Childs](https://github.com/lukechilds)\n- [Giovanni Minotti](https://github.com/Giotino)\n\n<a name=\"widely-used\"></a>\n## These amazing companies are using Got\n\n<table>\n<tbody>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://segment.com\">\n\t\t\t\t<img width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://antora.org\">\n\t\t\t\t<img width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://getvoip.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/exoframejs/exoframe\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"http://karaokes.moe\">\n\t\t\t\t<img width=\"140\" valign=\"middle\" src=\"https://camo.githubusercontent.com/6860e5fa4684c14d8e1aa65df0aba4e6808ea1a9/687474703a2f2f6b6172616f6b65732e6d6f652f6173736574732f696d616765732f696e6465782e706e67\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/renovatebot/renovate\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://camo.githubusercontent.com/206d470ac709b9a702a97b0c08d6f389a086793d/68747470733a2f2f72656e6f76617465626f742e636f6d2f696d616765732f6c6f676f2e737667\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://resist.bot\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://www.naturalcycles.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://microlink.io\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://radity.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://apify.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/23726914/128673143-958b5930-b677-40ef-8087-5698a0c29c45.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n</tbody>\n</table>\n\n<!-- <br> -->\n\n<!-- *Creating an awesome product? Open an issue to get listed here.* -->\n\n<br>\n\n> Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n>\n> — <a href=\"https://github.com/vadimdemedes\">Vadim Demedes</a>\n\n> Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n>\n> — <a href=\"https://github.com/mojavelinux\">Dan Allen</a>\n\n> GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n>\n> — <a href=\"https://github.com/danielkalen\">Daniel Kalen</a>\n\n> We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n>\n> — <a href=\"https://github.com/yamalight\">Tim Ermilov</a>\n\n> Karaoke Mugen uses Got to fetch content updates from its online server.\n>\n> — <a href=\"https://github.com/AxelTerizaki\">Axel Terizaki</a>\n\n> Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n>\n> — <a href=\"https://github.com/rarkins\">Rhys Arkins</a>\n\n> Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n>\n> — <a href=\"https://github.com/chris-erickson\">Chris Erickson</a>\n\n> Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n>\n> — <a href=\"https://github.com/kirillgroshkov\">Kirill Groshkov</a>\n\n> Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n>\n> — <a href=\"https://github.com/Kikobeats\">Kiko Beats</a>\n\n> We’re using Got at Radity. Thanks for such an amazing work!\n>\n> — <a href=\"https://github.com/MirzayevFarid\">Mirzayev Farid</a>\n\n> Got has been a crucial component of Apify's scraping for years. We use it to extract data from billions of web pages every month, and we really appreciate the powerful API and extensibility, which allowed us to build our own specialized HTTP client on top of Got. The support has always been stellar too.\n>\n> — <a href=\"https://github.com/mnmkng\">Ondra Urban</a>\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `got` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-got?utm_source=npm-got&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n","readmeFilename":"readme.md","gitHead":"6f5c7ce1233c7a28fed12d64766fa19e8eb3b345","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.0.4","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-dnbXGRnjOhpdvE5jWMTUgdvqFD9uyCD4H18ZVUj+hPR0QLKKMRGb6Cp+b49yek5d29vGgMMJ0RtgD97UU8S5Tw==","shasum":"432688e52d2617a6aa524d68238c5ebab23a4116","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.0.4.tgz","fileCount":43,"unpackedSize":257612,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9PWfYDbh2Cc55NXD0XslBPENiLHxxD1wqi3q6QNo4fgIhAO8ThBdyg2l2vvgv3QoVsTgT/KrhCc2Wy4+esb+7uS8y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZbG6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqO/w//WTlsc5KN02uM+daEm0C5GWr8q2ezXWI2meotkegmbKQZxbYK\r\nziQsyaY+KjMb92G4nIkgKoBGgvio2aeCWHO9sYa/Z9Ee+Ww/qd8wZcyhuPAU\r\n8UAvnPQOoHqbKHvMBNd4obFozMDEUSDDUxjvnXNYPz1gPfZ/IKGqhiIYSVrl\r\nVFg4ZA8Z/5a++PGZXBDduvi1+xyjV8IU47e8mD1GhN2tGCh4pN0zoCgEf9cX\r\nSsBuRi8lOyeUhAe79QJ76hnAHEpOpDXgNdtPbjSray+3exaaFppimN6oSApB\r\ntoMGWlEbZasGwG12DafswNH10VMGdxZoQZUOOMvcY+11kIy9nPt6bY4GIQPr\r\nFKN+TQqopyBQD1lldqqZlMZQqIbGeSzDFqGf2hxSvLRKSUQ+Ma1gzXqs4QwV\r\neC+G6ncjNk/GOunJz/aeaOnxvugN+PwfgycazMdW9Vauy92RimjssneNe6zZ\r\nI2tOtdU2FRq2ItKjH9duYOnZu0A/0+xglpcrIvSLHTtX5LNjtHvgzkTKvWBG\r\njwXR+zyf0/8dJLPiQkEWuC+qJhw+uQEXU6+9KxR92PrzQbB3QZUj5UZE77ca\r\n/xvmkrAZBwk1VzKdADyK78tBZfduUhpb9cN2G5RpHTrDgUiJE9SqGIWjwU2F\r\nMxbyHYsrYRycWLoe65SRtD20E87UI+WYF+Q=\r\n=ufJA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.0.4_1650831802662_0.9820778859395851"},"_hasShrinkwrap":false},"12.3.1":{"name":"got-cjs","version":"12.3.1","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","types":"./dist/source/index.d.ts","engines":{"node":">=12"},"scripts":{"test":"xo && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"4.6.0","@szmarczak/http-timer":"4.0.6","@types/cacheable-request":"^6.0.2","@types/responselike":"^1.0.0","cacheable-lookup":"^6.0.4","cacheable-request":"^7.0.2","decompress-response":"^6.0.0","form-data-encoder":"1.7.2","get-stream":"^6.0.1","http2-wrapper":"^2.1.10","lowercase-keys":"2.0.0","p-cancelable":"2.1.1","responselike":"^2.0.0"},"devDependencies":{"@hapi/bourne":"^3.0.0","@sindresorhus/tsconfig":"^2.0.0","@sinonjs/fake-timers":"^9.1.1","@types/benchmark":"^2.1.1","@types/express":"^4.17.13","@types/node":"^18.0.1","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.13","@types/request":"^2.48.8","@types/sinon":"^10.0.11","@types/sinonjs__fake-timers":"^8.1.1","@types/tough-cookie":"^4.0.1","ava":"^3.15.0","axios":"^0.27.2","benchmark":"^2.1.4","bluebird":"^3.7.2","body-parser":"^1.19.2","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^4.0.1","delay":"^5.0.0","express":"^4.17.3","form-data":"^4.0.0","formdata-node":"^4.3.2","nock":"^13.2.4","node-fetch":"^3.2.3","np":"^7.6.0","nyc":"^15.1.0","p-event":"^5.0.1","pem":"^1.14.6","pify":"^6.0.0","readable-stream":"^4.0.0","request":"^2.88.2","sinon":"^14.0.0","slow-stream":"0.0.4","tempy":"^3.0.0","then-busboy":"^5.1.1","to-readable-stream":"^3.0.0","tough-cookie":"^4.0.0","ts-node":"^10.8.2","typescript":"^4.7.4","xo":"^0.50.0"},"sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","nonSemVerExperiments":{"nextGenConfig":true,"configurableModuleFormat":true},"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","n/no-deprecated-api":"off","n/prefer-global/url":"off","n/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/no-redundant-type-constituents":"off","no-lone-blocks":"off","unicorn/no-await-expression-member":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","gitHead":"4d12bbd7e18866739254ac0f256b850a3d58dba6","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.3.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-FeIc0hmE/bkAeIsXrprCqikH1a1Z4UqIkuFSV8jTmStFtEqoFI8rwhdpqPvLoCJcoYTJJlADpW1NVtuWjR8Q8Q==","shasum":"bbf778f4c5c437a929b92f8ba8daa1925bdc01db","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.3.1.tgz","fileCount":45,"unpackedSize":263395,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYbVaDCGykWKeSuGf4Bj7IzhfASe9hqRMEaKlNKT1SEgIhAMPwNSp38Kf1fA6Ts0Cw9hjacuLeezq+5eoMD88bR1gP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+lSYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9lg//cljE+K5b/QAbPxY0wMpx07Igist1wJEshL3mCRz9pc9s2QnG\r\nCruAPmW3WmjNNg5k2QuCkxQvyskjG8uCpw2msT+UMhORSY6HjUImxsDN/OZ+\r\nZhMZLOlEoacb3FxVYrwWH4A7JSBkZQ5CKQN6bNLxokYja7/WBUBwuewCcMja\r\n3mHm7d88r2pgTpovdEeSVZcuzmN8yV/U7rYlhlxZ8P7s4WgDKngCGDZkDl7Y\r\nJBTb2YJIm0T1vo1MBtw6RqXazwpSZj2doSWDc3uzROIMj1r0o1VKvbJr856v\r\n7vAo1twI9QdcA12ePRfIfiW+L+VS4cYqEBCzCUaz2d8V3yt1GsmataEMaYtM\r\nI6u8hCzEJxVLxke3IbcmWgZQptfZ0zZaG+IpJ/Do19s76WbvfWJf5HCy2fbl\r\nHTTxkvdUqK+xQDAeAaP4pW8R1r1qXLKs34JwwB0Buy630CVem206WhRKNUXZ\r\ngJuTPzaXPQcJWC5MnJX8aD53jEMsfPGoaBxc71pDV1qZJSYJDNHCcvcRnzu7\r\nNG4ZBqJZFXoiAAjd/IJS1os7QW6OnS1GAkSBZhQ4bHdSaM/H8KDu42vFTQMQ\r\nqTsj0dmh4GAP+S7Zf0yfrYML1D/LGan7r3GNy2i/qmt/skFS25qBkppLrEhb\r\nLD9/ty+X6sjM00n/yeZETx0cWFtg06JPH7s=\r\n=32na\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.3.1_1660572823851_0.5843746770159279"},"_hasShrinkwrap":false},"12.5.2":{"name":"got-cjs","version":"12.5.2","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","types":"./dist/source/index.d.ts","engines":{"node":">=12"},"scripts":{"test":"xo && tsc --noEmit && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"4.6.0","@szmarczak/http-timer":"4.0.6","cacheable-lookup":"6.1.0","cacheable-request":"8.3.1","decompress-response":"^6.0.0","form-data-encoder":"1.7.2","get-stream":"^6.0.1","http2-wrapper":"^2.1.10","lowercase-keys":"2.0.0","p-cancelable":"2.1.1","responselike":"2.0.1"},"devDependencies":{"@hapi/bourne":"^3.0.0","@sindresorhus/tsconfig":"^3.0.1","@sinonjs/fake-timers":"^9.1.1","@types/benchmark":"^2.1.2","@types/express":"^4.17.13","@types/node":"^18.7.23","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.13","@types/request":"^2.48.8","@types/sinon":"^10.0.11","@types/sinonjs__fake-timers":"^8.1.1","@types/tough-cookie":"^4.0.1","ava":"^4.3.3","axios":"^0.27.2","benchmark":"^2.1.4","bluebird":"^3.7.2","body-parser":"^1.19.2","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^5.0.0","delay":"^5.0.0","express":"^4.17.3","form-data":"^4.0.0","formdata-node":"4.4.1","nock":"^13.2.4","node-fetch":"2.6.7","np":"^7.6.0","nyc":"^15.1.0","p-event":"4.2.0","pem":"^1.14.6","pify":"5.0.0","readable-stream":"^4.2.0","request":"^2.88.2","sinon":"^14.0.0","slow-stream":"0.0.4","tempy":"1.0.1","then-busboy":"^5.2.1","to-readable-stream":"2.1.0","tough-cookie":"4.0.0","ts-node":"^10.8.2","type-fest":"^3.0.0","typescript":"~4.8.2","xo":"^0.52.2","@types/node-fetch":"2.6.2"},"sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","n/no-deprecated-api":"off","n/prefer-global/url":"off","n/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/no-redundant-type-constituents":"off","no-lone-blocks":"off","unicorn/no-await-expression-member":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","gitHead":"5f278d74125608b7abe75941cb6a71e21e0fb892","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.5.2","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-tq1re1SVxf5fUyqinS0Z9s2sas+r7y38wrUxd4qJI9fCbMOZa/GWlNTSWrm9eKwZ82c7gAgqyiYUdSQD7efN8w==","shasum":"98bafb7969e458cf6d18328a5d099617fb999001","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.5.2.tgz","fileCount":45,"unpackedSize":263147,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbXeSPuYrYzicFxEVS8uqWcfdim0Zuvw0fdlvl5DKYdgIgYtdF1J54Md06Kmxn/EFmbqIsAoZGQBJl6Zsf0QiwgBk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaNVOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmohbg//bsKZHCLyflWBKDx9CQDscmB41aF9LikgozB44JDBr93d3oDr\r\nRvBwjiAegNXe9irygUmbBVABBjhvWfhTiFX1/8PP8A4vytpvVNBo3xsWmD5Q\r\nCHJA7cccvuawga7+pHPYKFW635n9G0j4PUb9iabM+D3sdgCw3GXx6FLl7vNq\r\n0QM7Q9kPAD6qqzm5uvlSgcPSeSVglTuVVBKRm5GmIFSc8Jxe5jms8tbcRYJv\r\nIYKUO7AcmXWO5as2YEbNOZk+2pOhsO3+FoP8XDWE8gZhShWiRa2aL1ARAD+2\r\n7dPztwzzYbB/dmNB3xQhMPaZ/lBE+/tNWDQXCeWlhLRkf9OZALjw9WDgopiR\r\n+wyS06bY8wTFTbf6ktDuFod43vpnHtz7NwKyMpkzjmOGC/xDbOuKqNQLuMSh\r\nrJRosPOeN4N5S53QmWw0nC2k9qum+x+WH4YsiqRKW6lrNyHraED/DSgwUxow\r\nteV2A21Hk4LfoCsPd72chyNCL4kMIcLeABoJ+asbmwZsgyO7F3TK7fl/amrB\r\nvM3s4nvaPgQh23gOU4lVMJfLw4MZMsQ+dwq82EyQiSYRARpv73QBWgIB7vOI\r\nsKzMWzIz0GcFAZBktKvEvbMxeFk02OGyPPjy/A0So4ZA5hdCRrP3YyHFMMx/\r\nBKv66LJntA6E8uoyF7dV43A/21o5cmGBDkI=\r\n=/r8d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.5.2_1667814734611_0.17474139245332232"},"_hasShrinkwrap":false},"12.5.3":{"name":"got-cjs","version":"12.5.3","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","types":"./dist/source/index.d.ts","engines":{"node":">=12"},"scripts":{"test":"xo && tsc --noEmit && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"4.6.0","@szmarczak/http-timer":"4.0.6","cacheable-lookup":"6.1.0","cacheable-request":"7.0.2","decompress-response":"^6.0.0","form-data-encoder":"1.7.2","get-stream":"^6.0.1","http2-wrapper":"^2.1.10","lowercase-keys":"2.0.0","p-cancelable":"2.1.1","responselike":"2.0.1"},"devDependencies":{"@hapi/bourne":"^3.0.0","@sindresorhus/tsconfig":"^3.0.1","@sinonjs/fake-timers":"^9.1.1","@types/benchmark":"^2.1.2","@types/express":"^4.17.13","@types/node":"^18.7.23","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.13","@types/request":"^2.48.8","@types/sinon":"^10.0.11","@types/sinonjs__fake-timers":"^8.1.1","@types/tough-cookie":"^4.0.1","ava":"^4.3.3","axios":"^0.27.2","benchmark":"^2.1.4","bluebird":"^3.7.2","body-parser":"^1.19.2","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^5.0.0","delay":"^5.0.0","express":"^4.17.3","form-data":"^4.0.0","formdata-node":"4.4.1","nock":"^13.2.4","node-fetch":"2.6.7","np":"^7.6.0","nyc":"^15.1.0","p-event":"4.2.0","pem":"^1.14.6","pify":"5.0.0","readable-stream":"^4.2.0","request":"^2.88.2","sinon":"^14.0.0","slow-stream":"0.0.4","tempy":"1.0.1","then-busboy":"^5.2.1","to-readable-stream":"2.1.0","tough-cookie":"4.0.0","ts-node":"^10.8.2","type-fest":"^3.0.0","typescript":"~4.8.2","xo":"^0.52.2","@types/node-fetch":"2.6.2"},"sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","n/no-deprecated-api":"off","n/prefer-global/url":"off","n/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/no-redundant-type-constituents":"off","no-lone-blocks":"off","unicorn/no-await-expression-member":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","gitHead":"5f278d74125608b7abe75941cb6a71e21e0fb892","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.5.3","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-FCIsAXb/P1mP/qDPSBMzY3YjPJzYN41yWsYic4arKNG6MsxhHwWB0EWCK1STJW2B2qdFececqygtNgFc44GstQ==","shasum":"c6a3bd21d2ee8637c6334f84c86c6ec758cd0584","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.5.3.tgz","fileCount":45,"unpackedSize":263301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGABIH8p6PWVJYs++dnnnQJBiYIE0k1ymPlBlwsGBPcJAiEAg8BGSZIs84ZyKYvBxAd6KK1NSaFoFfW3VR83TgqjIsk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaNlOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWHQ/8DhbhWfKSClAG/MO+59ikYpT/gv+O8iQYgh7IQGSHIxlYrgs0\r\nBN3Im1k05pMZb+i6qxx/eurrnaC+sBY5h8rwLyRUqqw3sHx1Xyljb+3OJw1s\r\nV1QLJeWox8jguwVJ6WoJfEXSo0ZtTo7YwcA+RJaqHeGHnoRcNncEABmW67uN\r\nU0jgPPL5dBnYQqxSQoz3qVsgMzv0asiI47i0TXpaUC11RFkxV2vZkrWBO6O2\r\nm3e6YNOBNAjj9KROXOB5sCDyOsGACX+9ixh54kpXd1QiEofj1rD8m0OdNZfk\r\nV+v1ocLOi3xxk5jhAR3BDKExvRihYiRpPc5Y9CkMA/vqSgH2g/vA5clouwuj\r\nIWEXLy1e++szZ5Xzkf1REriS58mjpij69k6q1NikW1PonJ2x675nptc/Xr8h\r\nnjA2ucncUpSvGGCkOzh0Xx9k2kIRlr469olo6qUx6fAG4ujuhfJeGIvi5q+0\r\nIIrbZ2j+zUXYr6BzJWq3Snd/HMrLhgOO2AqUj2yxKv/85FzmvKW4kOpV4Zi5\r\nXDaHv4emXZ+bmXz7A5j6uLyIfzffEoW8R0IQkpy3SF7/smBz1iw1E7qHuQAl\r\nfses8a7hAFD4YTxhMgtVtV7cjoaMJ4D7gsRjbNrn2bDV4wzkTrqNl4y8xW1I\r\nM9jJ+Mrx50N0JOgpn0Vk98D6eef8f20oNcU=\r\n=/cFd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.5.3_1667815758555_0.5689119229313089"},"_hasShrinkwrap":false},"12.5.4":{"name":"got-cjs","version":"12.5.4","description":"Human-friendly and powerful HTTP request library for Node.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"funding":"https://github.com/sindresorhus/got?sponsor=1","type":"commonjs","types":"./dist/source/index.d.ts","engines":{"node":">=12"},"scripts":{"test":"xo && tsc --noEmit && ava","release":"np","build":"del-cli dist && tsc","prepare":"npm run build"},"keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"dependencies":{"@sindresorhus/is":"4.6.0","@szmarczak/http-timer":"4.0.6","cacheable-lookup":"6.1.0","cacheable-request":"7.0.2","decompress-response":"^6.0.0","form-data-encoder":"1.7.2","get-stream":"^6.0.1","http2-wrapper":"^2.1.10","lowercase-keys":"2.0.0","p-cancelable":"2.1.1","responselike":"2.0.1","@types/responselike":"1.0.0"},"devDependencies":{"@hapi/bourne":"^3.0.0","@sindresorhus/tsconfig":"^3.0.1","@sinonjs/fake-timers":"^9.1.1","@types/benchmark":"^2.1.2","@types/express":"^4.17.13","@types/node":"^18.7.23","@types/pem":"^1.9.6","@types/pify":"^5.0.1","@types/readable-stream":"^2.3.13","@types/request":"^2.48.8","@types/sinon":"^10.0.11","@types/sinonjs__fake-timers":"^8.1.1","@types/tough-cookie":"^4.0.1","ava":"^4.3.3","axios":"^0.27.2","benchmark":"^2.1.4","bluebird":"^3.7.2","body-parser":"^1.19.2","create-cert":"^1.0.6","create-test-server":"^3.0.1","del-cli":"^5.0.0","delay":"^5.0.0","express":"^4.17.3","form-data":"^4.0.0","formdata-node":"4.4.1","nock":"^13.2.4","node-fetch":"2.6.7","np":"^7.6.0","nyc":"^15.1.0","p-event":"4.2.0","pem":"^1.14.6","pify":"5.0.0","readable-stream":"^4.2.0","request":"^2.88.2","sinon":"^14.0.0","slow-stream":"0.0.4","tempy":"1.0.1","then-busboy":"^5.2.1","to-readable-stream":"2.1.0","tough-cookie":"4.0.0","ts-node":"^10.8.2","type-fest":"^3.0.0","typescript":"~4.8.2","xo":"^0.52.2","@types/node-fetch":"2.6.2"},"sideEffects":false,"ava":{"files":["test/*"],"timeout":"1m","extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"nyc":{"reporter":["text","html","lcov"],"extension":[".ts"],"exclude":["**/test/**"]},"xo":{"ignores":["documentation/examples/*"],"rules":{"@typescript-eslint/no-empty-function":"off","n/no-deprecated-api":"off","n/prefer-global/url":"off","n/prefer-global/url-search-params":"off","@typescript-eslint/no-implicit-any-catch":"off","unicorn/prefer-node-protocol":"off","ava/assertion-arguments":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/no-redundant-type-constituents":"off","no-lone-blocks":"off","unicorn/no-await-expression-member":"off"}},"runkitExampleFilename":"./documentation/examples/runkit-example.js","main":"./dist/source/index.js","gitHead":"5f278d74125608b7abe75941cb6a71e21e0fb892","bugs":{"url":"https://github.com/apify/got-cjs/issues"},"homepage":"https://github.com/apify/got-cjs#readme","_id":"got-cjs@12.5.4","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Uas6lAsP8bRCt5WXGMhjFf/qEHTrm4v4qxGR02rLG2kdG9qedctvlkdwXVcDJ7Cs84X+r4dPU7vdwGjCaspXug==","shasum":"b46419c0e8e5fb5503b926941807408049ae2e11","tarball":"https://registry.npmjs.org/got-cjs/-/got-cjs-12.5.4.tgz","fileCount":45,"unpackedSize":263337,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4T7YIl1xbv4IigdNBVnd/Gfk13GV4vGRd4M+RJgJ8gQIhAK6IUs+COLd3CRH+H5vOQxG0mz0Gczt0Pz/ujXpCiJgJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaN9uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ8w//SAouGp4EtE+z/kmzvcbChg14Rua9EArIiqDSYLG4gU/X8b6i\r\nENOTCdlS/FVmdSKNPK7KjGI6WkVQwHMEjK5pvniivTJhC3QUiSKIjmyXDzJr\r\nfpPHhVYGU/PwL4QF3+DVDU0H4+TW/t/JK9Fz2wYbJAwSj1BdwugaS0cg33we\r\nMxn3BchQtDZqsxeePiHIk/pVwbJ414peFViE4hlI5/6DidEA8vrEuGORivBm\r\nrcCOWBBn86w709zNegJES84Msi2//WglQRKDFHs7meBkYERJV/2IhF9G1HPf\r\ndkjfLFZSNiyFiEnZMo7u/62LIv5C05jEDeiM/n46B3XQcELphnneb7XvWQ+/\r\nYxeREkLum/z1BKnE5ZtgVl1Oc6GuDnfL9fRHbVbsNFUdXKROa5bfdfzNmjcM\r\nnaXMO6T+SISOzzI0s7wiwkI8XnazOmQSfpm2Lymly8jIwMBfizEJ4GBizXed\r\nx0TXGGsKNQ0i/zXKQuUlACn16TNPIL+JNOsGtaM+HXSu3cnYRTBEzaJW9D55\r\nPcfCrgmNvcSG689wObQ5LiL7uC+Dhh4ySSrB/lsB03/4miDatA7vJSk/RMLz\r\nvukaFcqhK2SanQMi/1DUqgtmFTu4+vleNdryw/dwEvqEM+I7+DdNJ1sNs4jK\r\nkB1pZ4MvdVyA7Ks74H97X441xvMs26mhnFs=\r\n=R5S6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mnmkng","email":"ondra@apify.com"},"directories":{},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/got-cjs_12.5.4_1667817326219_0.4264394744806541"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-08T20:55:33.776Z","0.0.1":"2021-06-08T20:55:33.968Z","modified":"2022-11-07T10:35:26.469Z","0.0.2":"2021-06-09T11:34:17.232Z","12.0.0-beta.2":"2021-08-04T21:46:42.934Z","12.0.0-beta.3":"2021-08-06T09:09:11.538Z","12.0.0-beta.4":"2021-08-12T07:20:04.782Z","12.0.0":"2022-01-03T09:44:32.789Z","12.0.1":"2022-01-03T10:54:41.806Z","12.0.4":"2022-04-24T20:23:22.817Z","12.3.1":"2022-08-15T14:13:44.066Z","12.5.2":"2022-11-07T09:52:14.791Z","12.5.3":"2022-11-07T10:09:18.750Z","12.5.4":"2022-11-07T10:35:26.399Z"},"maintainers":[{"name":"mnmkng","email":"ondra@apify.com"}],"description":"Human-friendly and powerful HTTP request library for Node.js","homepage":"https://github.com/apify/got-cjs#readme","keywords":["http","https","http2","get","got","url","uri","request","simple","curl","wget","fetch","net","network","gzip","brotli","requests","human-friendly","axios","superagent","node-fetch","ky"],"repository":{"type":"git","url":"git+https://github.com/apify/got-cjs.git"},"bugs":{"url":"https://github.com/apify/got-cjs/issues"},"license":"MIT","readme":"<div align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"media/logo.svg\" alt=\"Got\">\n\t<br>\n\t<br>\n\t<br>\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\tSindre's open source work is supported by the community.<br>Special thanks to:\n\t\t\t</sup>\n\t\t</p>\n\t\t<br>\n\t\t<a href=\"https://retool.com/?utm_campaign=sindresorhus\">\n\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/retool-logo.svg\" width=\"210\">\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://strapi.io/?ref=sindresorhus\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png\" width=\"200\" alt=\"Strapi\">\n\t\t\t</div>\n\t\t\t<b>Strapi is the leading open-source headless CMS.</b>\n\t\t\t<div>\n\t\t\t\t<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://www.monito.com\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/monito-logo.svg\" width=\"210\">\n\t\t\t</div>\n\t\t\t<b>Find the cheapest way to send money abroad</b>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://www.useanvil.com/?utm_source=sindresorhus#gh-light-mode-only\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/anvil-logo-light.svg\" width=\"200\" alt=\"Anvil\">\n\t\t\t</div>\n\t\t\t<br>\n\t\t\t<b>Paperwork that makes the data work.</b>\n\t\t\t<div>\n\t\t\t\t<sub>\n\t\t\t\tEasy APIs for paperwork. PDF generation, e-signature and embeddable no-code webforms.\n\t\t\t\t<br>\n\t\t\t\tThe easiest way to build paperwork automation into your product.\n\t\t\t\t</sub>\n\t\t\t</div>\n\t\t</a>\n\t\t<a href=\"https://www.useanvil.com/?utm_source=sindresorhus#gh-dark-mode-only\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/anvil-logo-dark.svg\" width=\"200\" alt=\"Anvil\">\n\t\t\t</div>\n\t\t\t<br>\n\t\t\t<b>Paperwork that makes the data work.</b>\n\t\t\t<div>\n\t\t\t\t<sub>\n\t\t\t\tEasy APIs for paperwork. PDF generation, e-signature and embeddable no-code webforms.\n\t\t\t\t<br>\n\t\t\t\tThe easiest way to build paperwork automation into your product.\n\t\t\t\t</sub>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<a href=\"https://sizzy.co/?utm_campaign=github_repo&utm_source=github&utm_medium=referral&utm_content=got&utm_term=sindre\">\n\t\t\t<div>\n\t\t\t\t<img src=\"https://sindresorhus.com/assets/thanks/sizzy-logo.png\" width=\"240\" alt=\"Sizzy\">\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<sub>\n\t\t\t\t<b>Before Sizzy:</b> web development is stressing you out, responsive design is hard, you have an overwhelming amount of opened tabs & apps.\n\t\t\t\t<br>\n\t\t\t\t<b>After Sizzy:</b> all the tools you need in one place, responsive design is a breeze, no more context switching.\n\t\t\t\t</sub>\n\t\t\t</div>\n\t\t</a>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t\t<br>\n\t</p>\n\t<br>\n\t<br>\n</div>\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.com/badge?p=got)](https://packagephobia.com/result?p=got)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n---\n\nFor browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the same people.\n\n---\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Install\n\n```sh\nnpm install got\n```\n\n**Warning:** This package is native [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) and no longer provides a CommonJS export. If your project uses CommonJS, you'll have to [convert to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) or use the [dynamic `import()`](https://v8.dev/features/dynamic-import) function. Please don't open issues for questions regarding CommonJS / ESM. You can also use [Got v11](https://github.com/sindresorhus/got/tree/v11.8.3) instead which is pretty stable. We will backport security fixes to v11 for the foreseeable future.\n\n## Take a peek\n\n**A [quick start](documentation/quick-start.md) guide is available.**\n\n### JSON mode\n\nGot has a dedicated option for handling JSON payload.\\\nFurthermore, the promise exposes a `.json<T>()` function that returns `Promise<T>`.\n\n```js\nimport got from 'got';\n\nconst {data} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(data);\n//=> {\"hello\": \"world\"}\n```\n\nFor advanced JSON usage, check out the [`parseJson`](documentation/2-options.md#parsejson) and [`stringifyJson`](documentation/2-options.md#stringifyjson) options.\n\n**For more useful tips like this, visit the [Tips](documentation/tips.md) page.**\n\n## Highlights\n\n- [Used by 8K+ packages and 4M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Documentation\n\nBy default, Got will retry on failure. To disable this option, set [`options.retry.limit`](documentation/7-retry.md#retry) to 0.\n\n#### Main API\n\n- [x] [Promise API](documentation/1-promise.md)\n- [x] [Options](documentation/2-options.md)\n- [x] [Stream API](documentation/3-streams.md)\n- [x] [Pagination API](documentation/4-pagination.md)\n- [x] [Advanced HTTPS API](documentation/5-https.md)\n- [x] [HTTP/2 support](documentation/2-options.md#http2)\n- [x] [`Response` class](documentation/3-streams.md#response-2)\n\n#### Timeouts and retries\n\n- [x] [Advanced timeout handling](documentation/6-timeout.md)\n- [x] [Retries on failure](documentation/7-retry.md)\n- [x] [Errors with metadata](documentation/8-errors.md)\n\n#### Advanced creation\n\n- [x] [Hooks](documentation/9-hooks.md)\n- [x] [Instances](documentation/10-instances.md)\n- [x] [Progress events & other events](documentation/3-streams.md#events)\n- [x] [Plugins](documentation/lets-make-a-plugin.md)\n- [x] [Compose](documentation/examples/advanced-creation.js)\n\n#### Cache, Proxy and UNIX sockets\n\n- [x] [RFC compliant caching](documentation/cache.md)\n- [x] [Proxy support](documentation/tips.md#proxying)\n- [x] [Unix Domain Sockets](documentation/2-options.md#enableunixsockets)\n\n#### Integration\n\n- [x] [TypeScript support](documentation/typescript.md)\n- [x] [AWS](documentation/tips.md#aws)\n- [x] [Testing](documentation/tips.md#testing)\n\n---\n\n### Migration guides\n\n- [Request migration guide](documentation/migration-guides/request.md)\n  - [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n- [Axios](documentation/migration-guides/axios.md)\n- [Node.js](documentation/migration-guides/nodejs.md)\n\n## Got plugins\n\n- [`got4aws`](https://github.com/SamVerschueren/got4aws) - Got convenience wrapper to interact with AWS v4 signed APIs\n- [`gh-got`](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [`gl-got`](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [`gotql`](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [`got-fetch`](https://github.com/alexghr/got-fetch) - Got with a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) interface\n- [`got-scraping`](https://github.com/apify/got-scraping) - Got wrapper specifically designed for web scraping purposes\n- [`got-ssrf`](https://github.com/JaneJeon/got-ssrf) - Got wrapper to protect server-side requests against SSRF attacks\n\n### Legacy\n\n- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API\n- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL\n\n## Comparison\n\n|                       | `got`               | [`request`][r0]    | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :x:                | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | :heavy_check_mark: | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :x:                | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-box)  | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :heavy_check_mark: | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][rio]][r1]     | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][ric]][r2]     | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][rd]][r3]      | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | TBD       | [![][rc]][r4]      | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][rb]][r5]      | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][rbg]][r6]     | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][rdp]][r7]     | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][ris]][r8]     | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][rs]][r9]      | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][rts]][r10]    | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][rlc]][r11]    | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\\\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n<!-- GITHUB -->\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n<!-- ISSUES OPEN -->\n[gio]: https://img.shields.io/github/issues-raw/sindresorhus/got?color=gray&label\n[kio]: https://img.shields.io/github/issues-raw/sindresorhus/ky?color=gray&label\n[rio]: https://img.shields.io/github/issues-raw/request/request?color=gray&label\n[nio]: https://img.shields.io/github/issues-raw/bitinn/node-fetch?color=gray&label\n[aio]: https://img.shields.io/github/issues-raw/axios/axios?color=gray&label\n[sio]: https://img.shields.io/github/issues-raw/visionmedia/superagent?color=gray&label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n<!-- ISSUES CLOSED -->\n[gic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/got?color=blue&label\n[kic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/ky?color=blue&label\n[ric]: https://img.shields.io/github/issues-closed-raw/request/request?color=blue&label\n[nic]: https://img.shields.io/github/issues-closed-raw/bitinn/node-fetch?color=blue&label\n[aic]: https://img.shields.io/github/issues-closed-raw/axios/axios?color=blue&label\n[sic]: https://img.shields.io/github/issues-closed-raw/visionmedia/superagent?color=blue&label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n<!-- DOWNLOADS -->\n[gd]: https://img.shields.io/npm/dm/got?color=darkgreen&label\n[kd]: https://img.shields.io/npm/dm/ky?color=darkgreen&label\n[rd]: https://img.shields.io/npm/dm/request?color=darkgreen&label\n[nd]: https://img.shields.io/npm/dm/node-fetch?color=darkgreen&label\n[ad]: https://img.shields.io/npm/dm/axios?color=darkgreen&label\n[sd]: https://img.shields.io/npm/dm/superagent?color=darkgreen&label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[r3]: https://www.npmjs.com/package/request\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n<!-- COVERAGE -->\n[gc]: https://img.shields.io/coveralls/github/sindresorhus/got?color=0b9062&label\n[kc]: https://img.shields.io/codecov/c/github/sindresorhus/ky?color=0b9062&label\n[rc]: https://img.shields.io/coveralls/github/request/request?color=0b9062&label\n[nc]: https://img.shields.io/coveralls/github/bitinn/node-fetch?color=0b9062&label\n[ac]: https://img.shields.io/coveralls/github/mzabriskie/axios?color=0b9062&label\n[sc]: https://img.shields.io/codecov/c/github/visionmedia/superagent?color=0b9062&label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[r4]: https://coveralls.io/github/request/request\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n<!-- BUILD -->\n[gb]: https://github.com/sindresorhus/got/actions/workflows/main.yml/badge.svg\n[kb]: https://github.com/sindresorhus/ky/actions/workflows/main.yml/badge.svg\n[rb]: https://img.shields.io/travis/request/request?label\n[nb]: https://img.shields.io/travis/bitinn/node-fetch?label\n[ab]: https://img.shields.io/travis/axios/axios?label\n[sb]: https://img.shields.io/travis/visionmedia/superagent?label\n\n[g5]: https://github.com/sindresorhus/got/actions/workflows/main.yml\n[k5]: https://github.com/sindresorhus/ky/actions/workflows/main.yml\n[r5]: https://travis-ci.org/github/request/request\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n<!-- BUGS -->\n[gbg]: https://img.shields.io/github/issues-raw/sindresorhus/got/bug?color=darkred&label\n[kbg]: https://img.shields.io/github/issues-raw/sindresorhus/ky/bug?color=darkred&label\n[rbg]: https://img.shields.io/github/issues-raw/request/request/Needs%20investigation?color=darkred&label\n[nbg]: https://img.shields.io/github/issues-raw/bitinn/node-fetch/bug?color=darkred&label\n[abg]: https://img.shields.io/github/issues-raw/axios/axios/type:confirmed%20bug?color=darkred&label\n[sbg]: https://img.shields.io/github/issues-raw/visionmedia/superagent/Bug?color=darkred&label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A\"Needs+investigation\"\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3Aconfirmed+bug%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n<!-- DEPENDENTS -->\n[gdp]: https://badgen.net/npm/dependents/got?color=orange&label\n[kdp]: https://badgen.net/npm/dependents/ky?color=orange&label\n[rdp]: https://badgen.net/npm/dependents/request?color=orange&label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?color=orange&label\n[adp]: https://badgen.net/npm/dependents/axios?color=orange&label\n[sdp]: https://badgen.net/npm/dependents/superagent?color=orange&label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[r7]: https://www.npmjs.com/package/request?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n<!-- INSTALL SIZE -->\n[gis]: https://badgen.net/packagephobia/install/got?color=blue&label\n[kis]: https://badgen.net/packagephobia/install/ky?color=blue&label\n[ris]: https://badgen.net/packagephobia/install/request?color=blue&label\n[nis]: https://badgen.net/packagephobia/install/node-fetch?color=blue&label\n[ais]: https://badgen.net/packagephobia/install/axios?color=blue&label\n[sis]: https://badgen.net/packagephobia/install/superagent?color=blue&label\n\n[g8]: https://packagephobia.com/result?p=got\n[k8]: https://packagephobia.com/result?p=ky\n[r8]: https://packagephobia.com/result?p=request\n[n8]: https://packagephobia.com/result?p=node-fetch\n[a8]: https://packagephobia.com/result?p=axios\n[s8]: https://packagephobia.com/result?p=superagent\n\n<!-- GITHUB STARS -->\n[gs]: https://img.shields.io/github/stars/sindresorhus/got?color=white&label\n[ks]: https://img.shields.io/github/stars/sindresorhus/ky?color=white&label\n[rs]: https://img.shields.io/github/stars/request/request?color=white&label\n[ns]: https://img.shields.io/github/stars/bitinn/node-fetch?color=white&label\n[as]: https://img.shields.io/github/stars/axios/axios?color=white&label\n[ss]: https://img.shields.io/github/stars/visionmedia/superagent?color=white&label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[r9]: https://github.com/request/request\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n<!-- TYPESCRIPT SUPPORT -->\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[rts]: https://badgen.net/npm/types/request?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[r10]: https://github.com/request/request\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n<!-- LAST COMMIT -->\n[glc]: https://img.shields.io/github/last-commit/sindresorhus/got?color=gray&label\n[klc]: https://img.shields.io/github/last-commit/sindresorhus/ky?color=gray&label\n[rlc]: https://img.shields.io/github/last-commit/request/request?color=gray&label\n[nlc]: https://img.shields.io/github/last-commit/bitinn/node-fetch?color=gray&label\n[alc]: https://img.shields.io/github/last-commit/axios/axios?color=gray&label\n[slc]: https://img.shields.io/github/last-commit/visionmedia/superagent?color=gray&label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[r11]: https://github.com/request/request/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@4.0.1,@szmarczak/http-timer@4.0.5,@types/cacheable-request@6.0.1,@types/responselike@1.0.0,cacheable-lookup@6.0.0,cacheable-request@7.0.2,decompress-response@6.0.0,get-stream@6.0.1,http2-wrapper@2.0.5,lowercase-keys@2.0.0,p-cancelable@2.1.1,responselike@2.0.0\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak)\n---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n- [Alexander Tesfamichael](https://github.com/alextes)\n- [Brandon Smith](https://github.com/brandon93s)\n- [Luke Childs](https://github.com/lukechilds)\n- [Giovanni Minotti](https://github.com/Giotino)\n\n<a name=\"widely-used\"></a>\n## These amazing companies are using Got\n\n<table>\n<tbody>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://segment.com\">\n\t\t\t\t<img width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://antora.org\">\n\t\t\t\t<img width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://getvoip.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/exoframejs/exoframe\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"http://karaokes.moe\">\n\t\t\t\t<img width=\"140\" valign=\"middle\" src=\"https://camo.githubusercontent.com/6860e5fa4684c14d8e1aa65df0aba4e6808ea1a9/687474703a2f2f6b6172616f6b65732e6d6f652f6173736574732f696d616765732f696e6465782e706e67\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://github.com/renovatebot/renovate\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://camo.githubusercontent.com/206d470ac709b9a702a97b0c08d6f389a086793d/68747470733a2f2f72656e6f76617465626f742e636f6d2f696d616765732f6c6f676f2e737667\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://resist.bot\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://www.naturalcycles.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://microlink.io\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://radity.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\">\n\t\t\t</a>\n\t\t</td>\n\t\t<td align=\"center\">\n\t\t\t<a href=\"https://apify.com\">\n\t\t\t\t<img width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/23726914/128673143-958b5930-b677-40ef-8087-5698a0c29c45.png\">\n\t\t\t</a>\n\t\t</td>\n\t</tr>\n</tbody>\n</table>\n\n<!-- <br> -->\n\n<!-- *Creating an awesome product? Open an issue to get listed here.* -->\n\n<br>\n\n> Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n>\n> — <a href=\"https://github.com/vadimdemedes\">Vadim Demedes</a>\n\n> Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n>\n> — <a href=\"https://github.com/mojavelinux\">Dan Allen</a>\n\n> GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n>\n> — <a href=\"https://github.com/danielkalen\">Daniel Kalen</a>\n\n> We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n>\n> — <a href=\"https://github.com/yamalight\">Tim Ermilov</a>\n\n> Karaoke Mugen uses Got to fetch content updates from its online server.\n>\n> — <a href=\"https://github.com/AxelTerizaki\">Axel Terizaki</a>\n\n> Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n>\n> — <a href=\"https://github.com/rarkins\">Rhys Arkins</a>\n\n> Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n>\n> — <a href=\"https://github.com/chris-erickson\">Chris Erickson</a>\n\n> Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n>\n> — <a href=\"https://github.com/kirillgroshkov\">Kirill Groshkov</a>\n\n> Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n>\n> — <a href=\"https://github.com/Kikobeats\">Kiko Beats</a>\n\n> We’re using Got at Radity. Thanks for such an amazing work!\n>\n> — <a href=\"https://github.com/MirzayevFarid\">Mirzayev Farid</a>\n\n> Got has been a crucial component of Apify's scraping for years. We use it to extract data from billions of web pages every month, and we really appreciate the powerful API and extensibility, which allowed us to build our own specialized HTTP client on top of Got. The support has always been stellar too.\n>\n> — <a href=\"https://github.com/mnmkng\">Ondra Urban</a>\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `got` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-got?utm_source=npm-got&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n","readmeFilename":"readme.md"}