{ "_id": "got", "_rev": "323-ee4814e83e318ec1d53fa656fb0e25ff", "name": "got", "description": "Human-friendly and powerful HTTP request library for Node.js", "dist-tags": { "latest": "11.7.0", "next": "11.0.0-beta.1" }, "versions": { "0.1.0": { "name": "got", "version": "0.1.0", "description": "Simplified HTTP/HTTPS GET requests", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "devDependencies": { "mocha": "*" }, "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@0.1.0", "dist": { "shasum": "a014ed629a57d9cf6fc28716ba091d102a48713d", "tarball": "https://registry.npmjs.org/got/-/got-0.1.0.tgz" }, "_from": ".", "_npmVersion": "1.4.6", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {} }, "0.1.1": { "name": "got", "version": "0.1.1", "description": "Simplified HTTP/HTTPS GET requests", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "devDependencies": { "mocha": "*" }, "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@0.1.1", "dist": { "shasum": "9e85cb9fb7054e73af744c1f49d5509b95cdfb71", "tarball": "https://registry.npmjs.org/got/-/got-0.1.1.tgz" }, "_from": ".", "_npmVersion": "1.4.6", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {} }, "0.2.0": { "name": "got", "version": "0.2.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^0.3.0" }, "devDependencies": { "mocha": "*" }, "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@0.2.0", "dist": { "shasum": "d00c248b29fdccaea940df9ca0995ebff31b51a5", "tarball": "https://registry.npmjs.org/got/-/got-0.2.0.tgz" }, "_from": ".", "_npmVersion": "1.4.6", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {} }, "0.3.0": { "name": "got", "version": "0.3.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^0.3.0" }, "devDependencies": { "mocha": "*" }, "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@0.3.0", "_shasum": "888ec66ca4bc735ab089dbe959496d0f79485493", "_from": ".", "_npmVersion": "1.4.9", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "dist": { "shasum": "888ec66ca4bc735ab089dbe959496d0f79485493", "tarball": "https://registry.npmjs.org/got/-/got-0.3.0.tgz" }, "directories": {} }, "1.0.0": { "name": "got", "version": "1.0.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^0.3.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "9a593acd8412f5e412f0e7e6044a88a5ea93ca90", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@1.0.0", "_shasum": "792b340223b8df77d6e2c1090dc54341fc42df11", "_from": ".", "_npmVersion": "1.4.14", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "dist": { "shasum": "792b340223b8df77d6e2c1090dc54341fc42df11", "tarball": "https://registry.npmjs.org/got/-/got-1.0.0.tgz" }, "directories": {} }, "1.0.1": { "name": "got", "version": "1.0.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^0.3.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "37322366c7e85c898fbc9bf92bd32afa9a228aae", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@1.0.1", "_shasum": "ac662d4912a9d0d5611a2b395e2a0116340a56a0", "_from": ".", "_npmVersion": "1.4.14", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "dist": { "shasum": "ac662d4912a9d0d5611a2b395e2a0116340a56a0", "tarball": "https://registry.npmjs.org/got/-/got-1.0.1.tgz" }, "directories": {} }, "1.1.0": { "name": "got", "version": "1.1.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^0.3.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "89e93578089beaa068119828b21e2874c60938bf", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@1.1.0", "_shasum": "82788a0a573a60a8f18b9901236d43c91fcd664b", "_from": ".", "_npmVersion": "1.4.14", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "dist": { "shasum": "82788a0a573a60a8f18b9901236d43c91fcd664b", "tarball": "https://registry.npmjs.org/got/-/got-1.1.0.tgz" }, "directories": {} }, "1.2.0": { "name": "got", "version": "1.2.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^0.3.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "98063aa442f389d7787b262a29629df7294e19da", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@1.2.0", "_shasum": "11407f478e2ec1355a25427fba2e7563cbe8e732", "_from": ".", "_npmVersion": "1.4.23", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "dist": { "shasum": "11407f478e2ec1355a25427fba2e7563cbe8e732", "tarball": "https://registry.npmjs.org/got/-/got-1.2.0.tgz" }, "directories": {} }, "1.2.1": { "name": "got", "version": "1.2.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^0.3.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "df87ffc5c56554ad0d6907d49abcdc9076c46d16", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@1.2.1", "_shasum": "5878b85de16034b74d947ad41f729d41534fe6e2", "_from": ".", "_npmVersion": "2.0.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "dist": { "shasum": "5878b85de16034b74d947ad41f729d41534fe6e2", "tarball": "https://registry.npmjs.org/got/-/got-1.2.1.tgz" }, "directories": {} }, "1.2.2": { "name": "got", "version": "1.2.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^1.0.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "51b1b90b2636dae4b8f33211fa347a9c92838910", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@1.2.2", "_shasum": "d9430ba32f6a30218243884418767340aafc0400", "_from": ".", "_npmVersion": "2.0.2", "_nodeVersion": "0.10.32", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "dist": { "shasum": "d9430ba32f6a30218243884418767340aafc0400", "tarball": "https://registry.npmjs.org/got/-/got-1.2.2.tgz" }, "directories": {} }, "2.0.0": { "name": "got", "version": "2.0.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^2.0.0", "read-all-stream": "^0.1.0", "timed-out": "^1.0.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "b4a05e441d5a5f730f0b2e58c3cce1f36ed44a73", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.0.0", "_shasum": "8a21692827888114c498aa9b81171d0c86fd5a72", "_from": ".", "_npmVersion": "2.1.5", "_nodeVersion": "0.10.32", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "dist": { "shasum": "8a21692827888114c498aa9b81171d0c86fd5a72", "tarball": "https://registry.npmjs.org/got/-/got-2.0.0.tgz" }, "directories": {} }, "2.1.0": { "name": "got", "version": "2.1.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "object-assign": "^2.0.0", "read-all-stream": "^0.1.0", "timed-out": "^2.0.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "5a7944a5892d710cefd33ca48ba5f696d9de60df", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.1.0", "_shasum": "6bc9c28ffdcd3c530c607f736692355b6939acb7", "_from": ".", "_npmVersion": "2.1.5", "_nodeVersion": "0.10.32", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "dist": { "shasum": "6bc9c28ffdcd3c530c607f736692355b6939acb7", "tarball": "https://registry.npmjs.org/got/-/got-2.1.0.tgz" }, "directories": {} }, "2.2.0": { "name": "got", "version": "2.2.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha --timeout 50000" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "object-assign": "^2.0.0", "read-all-stream": "^0.1.0", "timed-out": "^2.0.0" }, "devDependencies": { "mocha": "*" }, "gitHead": "009b973bf313c9721fe8c015090c38270c3cd13d", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.2.0", "_shasum": "e5c0a24870aaefb36eda8b7195736e61810477ea", "_from": ".", "_npmVersion": "2.1.5", "_nodeVersion": "0.10.32", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "dist": { "shasum": "e5c0a24870aaefb36eda8b7195736e61810477ea", "tarball": "https://registry.npmjs.org/got/-/got-2.2.0.tgz" }, "directories": {} }, "2.3.0": { "name": "got", "version": "2.3.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "taper test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^0.1.0", "isstream": "^0.1.1", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^0.1.0", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "pem": "^1.4.4", "tape": "^3.0.3", "taper": "^0.3.0" }, "gitHead": "c616d256ae67cb78ce41fbfaa2e04f6e5dff0594", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.3.0", "_shasum": "460f95732e09b1adf96f6c7aeaee6240e5085ee1", "_from": ".", "_npmVersion": "2.1.16", "_nodeVersion": "0.10.32", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "460f95732e09b1adf96f6c7aeaee6240e5085ee1", "tarball": "https://registry.npmjs.org/got/-/got-2.3.0.tgz" }, "directories": {} }, "2.3.1": { "name": "got", "version": "2.3.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "taper test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^1.0.0", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "pem": "^1.4.4", "tape": "^3.0.3", "taper": "^0.3.0" }, "gitHead": "2a61a7a695741bbc736a8abe80db0c627e403814", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.3.1", "_shasum": "f644b11ee85c67577e017bfec2a7a234557e1759", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "f644b11ee85c67577e017bfec2a7a234557e1759", "tarball": "https://registry.npmjs.org/got/-/got-2.3.1.tgz" }, "directories": {} }, "2.3.2": { "name": "got", "version": "2.3.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "taper test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^1.0.0", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "pem": "^1.4.4", "tape": "^3.0.3", "taper": "^0.3.0" }, "gitHead": "e535190af9f301612295d11fc8756d2f4f6f9dbb", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.3.2", "_shasum": "2dc21af7012f7c4ef33edfb62a2a7faa69548c5e", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "2dc21af7012f7c4ef33edfb62a2a7faa69548c5e", "tarball": "https://registry.npmjs.org/got/-/got-2.3.2.tgz" }, "directories": {} }, "2.4.0": { "name": "got", "version": "2.4.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "taper test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^1.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "pem": "^1.4.4", "tape": "^3.0.3", "taper": "^0.3.0" }, "gitHead": "6757c4c37b107bf404bcbc819982c9e12d589203", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.4.0", "_shasum": "e4087a2cd59b5d20f2d169dc85d2169ed9e89f56", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "e4087a2cd59b5d20f2d169dc85d2169ed9e89f56", "tarball": "https://registry.npmjs.org/got/-/got-2.4.0.tgz" }, "directories": {} }, "2.5.0": { "name": "got", "version": "2.5.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "taper test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^1.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "pem": "^1.4.4", "tape": "^3.0.3", "taper": "^0.3.0" }, "gitHead": "9f81a55b62e419f8bc41ebdb363faafdf250fd06", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.5.0", "_shasum": "44d917c8bb481c00721832fd80c4481e9af3df5e", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "44d917c8bb481c00721832fd80c4481e9af3df5e", "tarball": "https://registry.npmjs.org/got/-/got-2.5.0.tgz" }, "directories": {} }, "2.6.0": { "name": "got", "version": "2.6.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "86b869730780c14e6be39136758ac98d740949f7", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.6.0", "_shasum": "a6c752e289d6f3326aaebd0d86a24b3ec0616d91", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "a6c752e289d6f3326aaebd0d86a24b3ec0616d91", "tarball": "https://registry.npmjs.org/got/-/got-2.6.0.tgz" }, "directories": {} }, "2.7.0": { "name": "got", "version": "2.7.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "abdd0f09606fa4c79b277d2b637a9aa47b9c9643", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.7.0", "_shasum": "c4bd3a4fcc3c8501d1891c0fae4ef5648ff372da", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "c4bd3a4fcc3c8501d1891c0fae4ef5648ff372da", "tarball": "https://registry.npmjs.org/got/-/got-2.7.0.tgz" }, "directories": {} }, "2.7.1": { "name": "got", "version": "2.7.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "a790ee2527dc52d9902aff7574ad5165fbc05907", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.7.1", "_shasum": "4c82c8a8be7f3e79384ec94b736fe07081c4064c", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "4c82c8a8be7f3e79384ec94b736fe07081c4064c", "tarball": "https://registry.npmjs.org/got/-/got-2.7.1.tgz" }, "directories": {} }, "2.7.2": { "name": "got", "version": "2.7.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "42294172307b042dfdb1432ebf24ed51cb7f897c", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.7.2", "_shasum": "089cfe07c37590d6ab59ced31d5ff5b09f05145d", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "089cfe07c37590d6ab59ced31d5ff5b09f05145d", "tarball": "https://registry.npmjs.org/got/-/got-2.7.2.tgz" }, "directories": {} }, "2.8.0": { "name": "got", "version": "2.8.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "63738b527f23b370e0405fb3979863976f438afe", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.8.0", "_shasum": "98ed3b127fede9f667a1c292afd58f563e01b30e", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "98ed3b127fede9f667a1c292afd58f563e01b30e", "tarball": "https://registry.npmjs.org/got/-/got-2.8.0.tgz" }, "directories": {} }, "2.8.1": { "name": "got", "version": "2.8.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "709b056bd241475c626c3f7038846526095d48a9", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@2.8.1", "_shasum": "72247785828e96df4872d99674f2a6196926d361", "_from": ".", "_npmVersion": "2.8.3", "_nodeVersion": "1.8.1", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "72247785828e96df4872d99674f2a6196926d361", "tarball": "https://registry.npmjs.org/got/-/got-2.8.1.tgz" }, "directories": {} }, "2.9.0": { "name": "got", "version": "2.9.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "1005cfc39135d9e73e5f8cca5b0b0c9ccc8a6841", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.9.0", "_shasum": "ad2c3f9264271edabf5479f29f69606643dab4ce", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "ad2c3f9264271edabf5479f29f69606643dab4ce", "tarball": "https://registry.npmjs.org/got/-/got-2.9.0.tgz" }, "directories": {} }, "2.9.1": { "name": "got", "version": "2.9.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "e10f3b0b820a9d5e921e781ad8da016fd0d07cf5", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.9.1", "_shasum": "8661f8a3302d774186e01dd86ea00ee99b00ac82", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "8661f8a3302d774186e01dd86ea00ee99b00ac82", "tarball": "https://registry.npmjs.org/got/-/got-2.9.1.tgz" }, "directories": {} }, "2.9.2": { "name": "got", "version": "2.9.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "a982c75a235fe4a64f5557763758580c5a393ee3", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@2.9.2", "_shasum": "2e1ee58ea1e8d201e25ae580b96e63c15fefd4ee", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "2e1ee58ea1e8d201e25ae580b96e63c15fefd4ee", "tarball": "https://registry.npmjs.org/got/-/got-2.9.2.tgz" }, "directories": {} }, "3.0.0": { "name": "got", "version": "3.0.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "d611ac5faada0389640af789c91c3906525d1a02", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@3.0.0", "_shasum": "62c20f39fc5c48b32bd4da16041f96b897a1f903", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "62c20f39fc5c48b32bd4da16041f96b897a1f903", "tarball": "https://registry.npmjs.org/got/-/got-3.0.0.tgz" }, "directories": {} }, "3.1.0": { "name": "got", "version": "3.1.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "1a59f479d9ea35e2fddcf0cf2c5c5250a0c52b27", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@3.1.0", "_shasum": "a9ffd775c1cf098a7fc91eb71a176a63379f0e28", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "a9ffd775c1cf098a7fc91eb71a176a63379f0e28", "tarball": "https://registry.npmjs.org/got/-/got-3.1.0.tgz" }, "directories": {} }, "3.2.0": { "name": "got", "version": "3.2.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tape test/test-*.js | tap-dot", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap-dot": "^1.0.0", "tape": "^3.5.0" }, "gitHead": "1fa82fb44810d835eb090ca28af7b72a9e6be527", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@3.2.0", "_shasum": "3182273b695da605c50003dc2d708217cf8156e9", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "3182273b695da605c50003dc2d708217cf8156e9", "tarball": "https://registry.npmjs.org/got/-/got-3.2.0.tgz" }, "directories": {} }, "3.3.0": { "name": "got", "version": "3.3.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tap test/test-*.js", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^2.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^2.0.0", "statuses": "^1.2.1", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap": "^1.0.0" }, "gitHead": "3c728bc664cf0dd9dd4f77643b4e4a2878f86e9e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@3.3.0", "_shasum": "6b1cb3d1f576c2491536f0d28b6cdd23aa4de3e9", "_from": ".", "_npmVersion": "2.11.1", "_nodeVersion": "2.3.0", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "6b1cb3d1f576c2491536f0d28b6cdd23aa4de3e9", "tarball": "https://registry.npmjs.org/got/-/got-3.3.0.tgz" }, "directories": {} }, "3.3.1": { "name": "got", "version": "3.3.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tap test/test-*.js", "coverage": "istanbul cover tape --report html -- test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexify": "^3.2.0", "infinity-agent": "^2.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "nested-error-stacks": "^1.0.0", "object-assign": "^3.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap": "^1.0.0" }, "gitHead": "7bc82b8eb63893f264d3c109abe1530ca74a3fb0", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@3.3.1", "_shasum": "e5d0ed4af55fc3eef4d56007769d98192bcb2eca", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "e5d0ed4af55fc3eef4d56007769d98192bcb2eca", "tarball": "https://registry.npmjs.org/got/-/got-3.3.1.tgz" }, "directories": {} }, "4.0.0": { "name": "got", "version": "4.0.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tap test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "object-assign": "^3.0.0", "pinkie-promise": "^1.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0" }, "devDependencies": { "from2-array": "0.0.3", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap": "^1.0.0" }, "gitHead": "f96498fa2f7af1f84d3822d3d531489e7b52c4bc", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@4.0.0", "_shasum": "9ea4de4f4c38e7893c145a82dedd231a56c111f4", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "9ea4de4f4c38e7893c145a82dedd231a56c111f4", "tarball": "https://registry.npmjs.org/got/-/got-4.0.0.tgz" }, "directories": {} }, "4.1.0": { "name": "got", "version": "4.1.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tap test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^3.0.0", "pinkie-promise": "^1.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0" }, "devDependencies": { "into-stream": "^2.0.0", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap": "^1.0.0" }, "gitHead": "f677a3ef54a8948712e3af86ba807e2f672a3c45", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@4.1.0", "_shasum": "96deff3edf46c93a19b7c180409ed73bebd24977", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "96deff3edf46c93a19b7c180409ed73bebd24977", "tarball": "https://registry.npmjs.org/got/-/got-4.1.0.tgz" }, "directories": {} }, "4.1.1": { "name": "got", "version": "4.1.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "tap test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^3.0.0", "pinkie-promise": "^1.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0" }, "devDependencies": { "into-stream": "^2.0.0", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap": "^1.0.0" }, "gitHead": "a7071713f02dc286d7fb8cb7c7f0dfd7b2a8c7af", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@4.1.1", "_shasum": "52125e24d488fbfe42ec2ebf84ec9f37b4e3ff44", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "52125e24d488fbfe42ec2ebf84ec9f37b4e3ff44", "tarball": "https://registry.npmjs.org/got/-/got-4.1.1.tgz" }, "directories": {} }, "4.2.0": { "name": "got", "version": "4.2.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "scripts": { "test": "xo && tap test/test-*.js" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^3.0.0", "parse-json": "^2.1.0", "pinkie-promise": "^1.0.0", "prepend-http": "^1.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0" }, "devDependencies": { "into-stream": "^2.0.0", "istanbul": "^0.3.13", "pem": "^1.4.4", "tap": "^1.0.0", "tempfile": "^1.1.1", "xo": "*" }, "gitHead": "0bf55bbe547c4de4744277dbebdbe7522d87332c", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@4.2.0", "_shasum": "af59f461834bfafd722cba01acf4c14a9dd5da06", "_from": ".", "_npmVersion": "2.14.2", "_nodeVersion": "4.0.0", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "af59f461834bfafd722cba01acf4c14a9dd5da06", "tarball": "https://registry.npmjs.org/got/-/got-4.2.0.tgz" }, "directories": {} }, "5.0.0": { "name": "got", "version": "5.0.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^1.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "git+https://github.com/sindresorhus/ava.git#7cebc1099", "coveralls": "^2.11.4", "get-port": "^1.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.2.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "0933d0bb13f704bc9aabcc1eec7a8e33dc8aba51", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.0.0", "_shasum": "e1e5b551b09ff02c58b0d0bc77a9028d23299474", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.0", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "e1e5b551b09ff02c58b0d0bc77a9028d23299474", "tarball": "https://registry.npmjs.org/got/-/got-5.0.0.tgz" }, "directories": {} }, "5.1.0": { "name": "got", "version": "5.1.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^1.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.3.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "473759c7dad2d23b0f1c1ac466ee40866eeb917e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.1.0", "_shasum": "4735a4184dc3d248cae5105ca692372d0194242a", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.0", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "4735a4184dc3d248cae5105ca692372d0194242a", "tarball": "https://registry.npmjs.org/got/-/got-5.1.0.tgz" }, "directories": {} }, "5.2.0": { "name": "got", "version": "5.2.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "2f5d5ba94d625802880b3c793c3c1aa7798d0533", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.2.0", "_shasum": "35d15a3da4806470b674664823e9c3bb7924347e", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.0", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "35d15a3da4806470b674664823e9c3bb7924347e", "tarball": "https://registry.npmjs.org/got/-/got-5.2.0.tgz" }, "directories": {} }, "6.0.0-rc1": { "name": "got", "version": "6.0.0-rc1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "@floatdrop/duplexer2": "^0.1.4", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.7.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^4.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true, "ignores": [ "test/**" ], "rules": { "prefer-reflect": 1 } }, "gitHead": "0d90e18d2d9a63d2843e60c6057c3d4c6146279b", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.0.0-rc1", "_shasum": "20830b1d5f6c5efa3601ed64d2ba07398c6415af", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.0", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "20830b1d5f6c5efa3601ed64d2ba07398c6415af", "tarball": "https://registry.npmjs.org/got/-/got-6.0.0-rc1.tgz" }, "directories": {} }, "5.2.1": { "name": "got", "version": "5.2.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "a34c96fd45ac080733a068e8cb50a1cc3c33816f", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.2.1", "_shasum": "6619b24b185eec92fd420c1203dca1b224925845", "_from": ".", "_npmVersion": "2.11.3", "_nodeVersion": "0.12.7", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "6619b24b185eec92fd420c1203dca1b224925845", "tarball": "https://registry.npmjs.org/got/-/got-5.2.1.tgz" }, "directories": {} }, "5.3.0": { "name": "got", "version": "5.3.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexify": "^3.2.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "c71a39ebd92fcea28ef21ab4115be0d2beddbc8a", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.3.0", "_shasum": "e1ca75936e6512ca7bd23632667aa320dac6e51f", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.3", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "e1ca75936e6512ca7bd23632667aa320dac6e51f", "tarball": "https://registry.npmjs.org/got/-/got-5.3.0.tgz" }, "directories": {} }, "6.0.0": { "name": "got", "version": "6.0.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "@floatdrop/duplexer2": "^0.1.4", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.9.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^5.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "e5c2d9e93137263c68db985b3dc5b57865c67b82", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.0.0", "_shasum": "0800d65a33a255e1fce7de1dd46e1e0b8c62c875", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.3", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "0800d65a33a255e1fce7de1dd46e1e0b8c62c875", "tarball": "https://registry.npmjs.org/got/-/got-6.0.0.tgz" }, "directories": {} }, "6.0.1": { "name": "got", "version": "6.0.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexer3": "^0.1.4", "create-error-class": "^3.0.0", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.9.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^5.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "cbbb249ccb439738d803d26e48f679868a556740", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.0.1", "_shasum": "460455fdf793866a70c08e4d1f135e733256f528", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.3", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "460455fdf793866a70c08e4d1f135e733256f528", "tarball": "https://registry.npmjs.org/got/-/got-6.0.1.tgz" }, "directories": {} }, "5.3.1": { "name": "got", "version": "5.3.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "db5fbfb32b8d96e1e1b311901c9cd606a5e3841a", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.3.1", "_shasum": "75eb796aeb597726afdda572134cb02ad96f5d8b", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.3", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "75eb796aeb597726afdda572134cb02ad96f5d8b", "tarball": "https://registry.npmjs.org/got/-/got-5.3.1.tgz" }, "directories": {} }, "5.3.2": { "name": "got", "version": "5.3.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "29191a2da41ff5177f54e2568c22d6393b71fddb", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.3.2", "_shasum": "b1cac877522dfb262b4b666f0646d40b7b8bca14", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.3", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "b1cac877522dfb262b4b666f0646d40b7b8bca14", "tarball": "https://registry.npmjs.org/got/-/got-5.3.2.tgz" }, "directories": {} }, "6.0.2": { "name": "got", "version": "6.0.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "duplexer3": "^0.1.4", "create-error-class": "^3.0.0", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.9.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^5.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "21be4c1e6634a9446bc4876fe718dda70da6aec8", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.0.2", "_shasum": "34ba1bbb8ba17c30f02bc78e9c7f013de730601f", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.3", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "34ba1bbb8ba17c30f02bc78e9c7f013de730601f", "tarball": "https://registry.npmjs.org/got/-/got-6.0.2.tgz" }, "directories": {} }, "5.4.0": { "name": "got", "version": "5.4.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "2f8fc8f12c75626e84b80bdd62626cef9a8bedd6", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.4.0", "_shasum": "680e26c2f56450b9ddc4a295a1262eb96a65055d", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "680e26c2f56450b9ddc4a295a1262eb96a65055d", "tarball": "https://registry.npmjs.org/got/-/got-5.4.0.tgz" }, "directories": {} }, "6.1.0": { "name": "got", "version": "6.1.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.10.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^5.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "540f2b55459be9b1a762a159eef20fb2531d1dae", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.1.0", "_shasum": "8fd2c0f17e7a95753b0688ae5bcc86f41c7d5a93", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "8fd2c0f17e7a95753b0688ae5bcc86f41c7d5a93", "tarball": "https://registry.npmjs.org/got/-/got-6.1.0.tgz" }, "directories": {} }, "5.4.1": { "name": "got", "version": "5.4.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "f81e4eb22950993503a1d08af7cafad88a352a39", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.4.1", "_shasum": "d36ced55ff37cbf0541f687cfeb1c6e15f59e374", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "d36ced55ff37cbf0541f687cfeb1c6e15f59e374", "tarball": "https://registry.npmjs.org/got/-/got-5.4.1.tgz" }, "directories": {} }, "6.1.1": { "name": "got", "version": "6.1.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.11.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^5.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "26ec3d43f077db28e4f3ee9eeb2de0bdc4afd0af", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.1.1", "_shasum": "d7fdeeade40b82b4e583d1c626f64ff5dcba1980", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "d7fdeeade40b82b4e583d1c626f64ff5dcba1980", "tarball": "https://registry.npmjs.org/got/-/got-6.1.1.tgz" }, "directories": {} }, "6.1.2": { "name": "got", "version": "6.1.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.12.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^5.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "cecea2d1081c2dc255995229cbcf4eff92a7efb1", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.1.2", "_shasum": "4043ab0571216c0a86758151b6ab407e92b4d1a7", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "4043ab0571216c0a86758151b6ab407e92b4d1a7", "tarball": "https://registry.npmjs.org/got/-/got-6.1.2.tgz" }, "_npmOperationalInternal": { "host": "packages-9-west.internal.npmjs.com", "tmp": "tmp/got-6.1.2.tgz_1456683078993_0.8965819810982794" }, "directories": {} }, "5.4.2": { "name": "got", "version": "5.4.2", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "ba09d3662ff3d8f1f10150ee41d0170bc11c2f5e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.4.2", "_shasum": "e1ee8338823f06a488b092ac9489d7100e932df5", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "e1ee8338823f06a488b092ac9489d7100e932df5", "tarball": "https://registry.npmjs.org/got/-/got-5.4.2.tgz" }, "_npmOperationalInternal": { "host": "packages-6-west.internal.npmjs.com", "tmp": "tmp/got-5.4.2.tgz_1456683103650_0.0760814230889082" }, "directories": {} }, "6.2.0": { "name": "got", "version": "6.2.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.12.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^5.0.1", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "fc86dcc8f100c6b93fe70e945807a4c68be90f4f", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.2.0", "_shasum": "eab52adb8b44fad77430ed828d0d531264afb2d7", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "eab52adb8b44fad77430ed828d0d531264afb2d7", "tarball": "https://registry.npmjs.org/got/-/got-6.2.0.tgz" }, "_npmOperationalInternal": { "host": "packages-13-west.internal.npmjs.com", "tmp": "tmp/got-6.2.0.tgz_1456991638863_0.8261470813304186" }, "directories": {} }, "5.5.0": { "name": "got", "version": "5.5.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^2.0.0", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "9ed4ed46bc8b219b3f838e4a7737628d370ec4ba", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.5.0", "_shasum": "761cbbab3cda44e34123bf543d82c441b531f32d", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "761cbbab3cda44e34123bf543d82c441b531f32d", "tarball": "https://registry.npmjs.org/got/-/got-5.5.0.tgz" }, "_npmOperationalInternal": { "host": "packages-13-west.internal.npmjs.com", "tmp": "tmp/got-5.5.0.tgz_1456992043612_0.0267808532807976" }, "directories": {} }, "5.5.1": { "name": "got", "version": "5.5.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.1", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "db9f86dfc25bc75c873a3191055a478ce21b403c", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.5.1", "_shasum": "c7d0af2beb0c0e21a6cc2cf235c6591960118a11", "_from": ".", "_npmVersion": "2.14.20", "_nodeVersion": "4.4.1", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "c7d0af2beb0c0e21a6cc2cf235c6591960118a11", "tarball": "https://registry.npmjs.org/got/-/got-5.5.1.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/got-5.5.1.tgz_1459841349746_0.03332527121528983" }, "directories": {} }, "5.6.0": { "name": "got", "version": "5.6.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.1", "duplexer2": "^0.1.4", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.5.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "d6a81871cf6871548bc79fd9998fd7b47e730f0e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@5.6.0", "_shasum": "bb1d7ee163b78082bbc8eb836f3f395004ea6fbf", "_from": ".", "_npmVersion": "2.14.20", "_nodeVersion": "4.4.1", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "bb1d7ee163b78082bbc8eb836f3f395004ea6fbf", "tarball": "https://registry.npmjs.org/got/-/got-5.6.0.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/got-5.6.0.tgz_1459967538089_0.3577845075633377" }, "directories": {} }, "6.3.0": { "name": "got", "version": "6.3.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/got" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.13.0", "coveralls": "^2.11.4", "get-port": "^2.0.0", "into-stream": "^2.0.0", "nyc": "^6.0.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "d360a1d53624c33efbec884e3ef60ee67ddb2f7e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got", "_id": "got@6.3.0", "_shasum": "4699e801063f58052b6d66208dc9670c67c18883", "_from": ".", "_npmVersion": "2.14.20", "_nodeVersion": "4.4.1", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "4699e801063f58052b6d66208dc9670c67c18883", "tarball": "https://registry.npmjs.org/got/-/got-6.3.0.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/got-6.3.0.tgz_1459967587204_0.5463452294934541" }, "directories": {} }, "6.5.0": { "name": "got", "version": "6.5.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^2.3.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^2.0.1", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.4", "form-data": "^1.0.1", "get-port": "^2.0.0", "get-stream": "^2.3.0", "into-stream": "^3.0.0", "nyc": "^8.1.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "c9f36716797122491ccae779768a9f8c7bf002fa", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@6.5.0", "_shasum": "67dcc727db871c7b250320860180e24d2db18a04", "_from": ".", "_npmVersion": "3.10.3", "_nodeVersion": "6.3.0", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "67dcc727db871c7b250320860180e24d2db18a04", "tarball": "https://registry.npmjs.org/got/-/got-6.5.0.tgz" }, "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/got-6.5.0.tgz_1473843739793_0.4577683887910098" }, "directories": {} }, "5.7.0": { "name": "got", "version": "5.7.0", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0 <7" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.1", "duplexer2": "^0.1.4", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^3.0.0", "unzip-response": "^1.0.2", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "get-stream": "^2.3.0", "into-stream": "^2.0.0", "nyc": "^8.1.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "0.16.x" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "295a6e9c3bfc891740789ed164b15733958d54eb", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@5.7.0", "_shasum": "718879e60f824cc0f69721127b835379b056a3af", "_from": ".", "_npmVersion": "2.15.1", "_nodeVersion": "0.10.48", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "718879e60f824cc0f69721127b835379b056a3af", "tarball": "https://registry.npmjs.org/got/-/got-5.7.0.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/got-5.7.0.tgz_1477989819207_0.28333850181661546" }, "directories": {} }, "6.6.0": { "name": "got", "version": "6.6.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^2.3.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^3.0.0", "unzip-response": "^2.0.1", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "get-stream": "^2.3.0", "into-stream": "^3.0.0", "nyc": "^8.1.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "4f4ebd7531db3d1e8c1fd309c3dace6181d6175b", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@6.6.0", "_shasum": "8e9b2986e13c27bdea3b5f6707e11886131a452e", "_from": ".", "_npmVersion": "2.15.1", "_nodeVersion": "0.10.48", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "8e9b2986e13c27bdea3b5f6707e11886131a452e", "tarball": "https://registry.npmjs.org/got/-/got-6.6.0.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/got-6.6.0.tgz_1477990276613_0.8485816544853151" }, "directories": {} }, "6.6.1": { "name": "got", "version": "6.6.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^2.3.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^3.0.0", "unzip-response": "^2.0.1", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "get-stream": "^2.3.0", "into-stream": "^3.0.0", "nyc": "^8.1.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "e6b86e862a2251c829255e341c1a7bdde4e62122", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@6.6.1", "_shasum": "542d7a0e34676060e561b1b90d103876eefabed2", "_from": ".", "_npmVersion": "3.10.8", "_nodeVersion": "6.9.1", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "542d7a0e34676060e561b1b90d103876eefabed2", "tarball": "https://registry.npmjs.org/got/-/got-6.6.1.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/got-6.6.1.tgz_1478067096983_0.5160537739284337" }, "directories": {} }, "5.7.1": { "name": "got", "version": "5.7.1", "description": "Simplified HTTP/HTTPS requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=0.10.0 <7" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.1", "duplexer2": "^0.1.4", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^1.0.0", "object-assign": "^4.0.1", "parse-json": "^2.1.0", "pinkie-promise": "^2.0.0", "read-all-stream": "^3.0.0", "readable-stream": "^2.0.5", "timed-out": "^3.0.0", "unzip-response": "^1.0.2", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "get-stream": "^2.3.0", "into-stream": "^2.0.0", "nyc": "^8.1.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "0.16.x" }, "xo": { "ignores": [ "test/**" ] }, "gitHead": "856b4caf16b02ce28ef0d92e83cf434a50b71e84", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@5.7.1", "_shasum": "5f81635a61e4a6589f180569ea4e381680a51f35", "_from": ".", "_npmVersion": "2.15.1", "_nodeVersion": "0.10.48", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "5f81635a61e4a6589f180569ea4e381680a51f35", "tarball": "https://registry.npmjs.org/got/-/got-5.7.1.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/got-5.7.1.tgz_1478113400687_0.6078383799176663" }, "directories": {} }, "6.6.2": { "name": "got", "version": "6.6.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4.5.0" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^2.3.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^3.0.0", "unzip-response": "^2.0.1", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "get-stream": "^2.3.0", "into-stream": "^3.0.0", "nyc": "^8.1.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "bf790c52a2ad8c567a126696fc44b7c98f34d683", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@6.6.2", "_shasum": "2419c558bd41eb601b29317cc0dc329c17076b05", "_from": ".", "_npmVersion": "3.10.8", "_nodeVersion": "6.9.1", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "2419c558bd41eb601b29317cc0dc329c17076b05", "tarball": "https://registry.npmjs.org/got/-/got-6.6.2.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/got-6.6.2.tgz_1478427331393_0.7536597871221602" }, "directories": {} }, "6.6.3": { "name": "got", "version": "6.6.3", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^2.3.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "node-status-codes": "^2.0.0", "timed-out": "^3.0.0", "unzip-response": "^2.0.1", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "get-stream": "^2.3.0", "into-stream": "^3.0.0", "nyc": "^8.1.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "9af0330f4d29598ecea162ad6e7be58ece63e681", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@6.6.3", "_shasum": "ff72c56d7f040eb8918ffb80fb62bcaf489d4eec", "_from": ".", "_npmVersion": "3.10.8", "_nodeVersion": "6.9.1", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "ff72c56d7f040eb8918ffb80fb62bcaf489d4eec", "tarball": "https://registry.npmjs.org/got/-/got-6.6.3.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/got-6.6.3.tgz_1478427923035_0.28121051751077175" }, "directories": {} }, "6.7.0": { "name": "got", "version": "6.7.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "safe-buffer": "^5.0.1", "timed-out": "^4.0.0", "unzip-response": "^2.0.1", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.17.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "into-stream": "^3.0.0", "nyc": "^10.0.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "ava": { "concurrency": 4 }, "gitHead": "e367ee460b3c4750093a48ede6c3a25e0b7590c7", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@6.7.0", "_shasum": "a3a7a4473f4f3118095b24567ec5c1b04c069d26", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "a3a7a4473f4f3118095b24567ec5c1b04c069d26", "tarball": "https://registry.npmjs.org/got/-/got-6.7.0.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/got-6.7.0.tgz_1483006685204_0.2042575771920383" }, "directories": {} }, "6.7.1": { "name": "got", "version": "6.7.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "floatdrop", "email": "floatdrop@gmail.com" }, { "name": "kevva", "email": "kevinmartensson@gmail.com" } ], "engines": { "node": ">=4" }, "browser": { "unzip-response": false }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch" ], "dependencies": { "create-error-class": "^3.0.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "is-redirect": "^1.0.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", "safe-buffer": "^5.0.1", "timed-out": "^4.0.0", "unzip-response": "^2.0.1", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.17.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^2.0.0", "into-stream": "^3.0.0", "nyc": "^10.0.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, "xo": { "esnext": true }, "ava": { "concurrency": 4 }, "gitHead": "52da6067ddac5250d6c2e76af9a150b9cf4ba025", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@6.7.1", "_shasum": "240cd05785a9a18e561dc1b44b41c763ef1e8db0", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "floatdrop", "email": "floatdrop@gmail.com" }, "dist": { "shasum": "240cd05785a9a18e561dc1b44b41c763ef1e8db0", "tarball": "https://registry.npmjs.org/got/-/got-6.7.1.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/got-6.7.1.tgz_1483022570319_0.12133173388428986" }, "directories": {} }, "7.0.0": { "name": "got", "version": "7.0.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "decompress-response": "^3.2.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "is-plain-obj": "^1.1.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "p-cancelable": "^0.2.0", "p-timeout": "^1.1.1", "safe-buffer": "^5.0.1", "timed-out": "^4.0.0", "url-parse-lax": "^1.0.0" }, "devDependencies": { "ava": "^0.19.1", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^3.0.0", "into-stream": "^3.0.0", "nyc": "^10.0.0", "pem": "^1.4.4", "pify": "^2.3.0", "tempfile": "^1.1.1", "tempy": "^0.1.0", "universal-url": "^1.0.0-alpha", "xo": "^0.18.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false }, "gitHead": "c20bc5e8c826045e11a3497baef413232871d6fa", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@7.0.0", "_shasum": "82d439f6763cdb1c8821b7a3aae2784c88c3b8d3", "_from": ".", "_npmVersion": "2.15.11", "_nodeVersion": "4.8.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "82d439f6763cdb1c8821b7a3aae2784c88c3b8d3", "tarball": "https://registry.npmjs.org/got/-/got-7.0.0.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got-7.0.0.tgz_1496044922128_0.4668192621320486" }, "directories": {} }, "7.1.0": { "name": "got", "version": "7.1.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "decompress-response": "^3.2.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "is-plain-obj": "^1.1.0", "is-retry-allowed": "^1.0.0", "is-stream": "^1.0.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "p-cancelable": "^0.3.0", "p-timeout": "^1.1.1", "safe-buffer": "^5.0.1", "timed-out": "^4.0.0", "url-parse-lax": "^1.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.20.0", "coveralls": "^2.11.4", "form-data": "^2.1.1", "get-port": "^3.0.0", "into-stream": "^3.0.0", "nyc": "^11.0.2", "pem": "^1.4.4", "pify": "^3.0.0", "tempfile": "^2.0.0", "tempy": "^0.1.0", "universal-url": "^1.0.0-alpha", "xo": "^0.18.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false }, "gitHead": "b725ef576864fc6dd331b4df58ddb12f2f7d6b3a", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@7.1.0", "_npmVersion": "5.0.0", "_nodeVersion": "8.0.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-Y5WMo7xKKq1muPsxD+KmrR8DH5auG7fBdDVueZwETwV6VytKyU9OX/ddpq2/1hp1vIPvVb4T81dKQz3BivkNLw==", "shasum": "05450fd84094e6bbea56f451a43a9c289166385a", "tarball": "https://registry.npmjs.org/got/-/got-7.1.0.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got-7.1.0.tgz_1498837826024_0.5711319362744689" }, "directories": {} }, "8.0.0": { "name": "got", "version": "8.0.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-plain-obj": "^1.1.0", "is-retry-allowed": "^1.1.0", "is-stream": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.3.0", "p-timeout": "^1.2.0", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.23.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.18.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "570ff68c4853beda669ed597cd97f5acc24b9f60", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.0.0", "_npmVersion": "5.5.1", "_nodeVersion": "9.2.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-lqVA9ORcSGfJPHfMXh1RW451aYMP1NyXivpGqGggnfDqNz3QVfMl7MkuEz+dr70gK2X8dhLiS5YzHhCV3/3yOQ==", "shasum": "57a11f841edc58e3f3eba4b3ac220faf5133770f", "tarball": "https://registry.npmjs.org/got/-/got-8.0.0.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got-8.0.0.tgz_1510826780925_0.03324738144874573" }, "directories": {} }, "8.0.1": { "name": "got", "version": "8.0.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.6.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.3.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.23.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.18.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "685c7f3701c38d01e918221e2995c657151505f6", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.0.1", "_shasum": "6d7f8bb3eb99e5af912efe26a104476441e08e7f", "_from": ".", "_npmVersion": "3.10.10", "_nodeVersion": "6.11.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "6d7f8bb3eb99e5af912efe26a104476441e08e7f", "tarball": "https://registry.npmjs.org/got/-/got-8.0.1.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got-8.0.1.tgz_1512132624720_0.8290727592539042" }, "directories": {} }, "8.0.2": { "name": "got", "version": "8.0.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "errors.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.7.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.3.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.24.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.18.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "f607c7d2a9f6d5da3d3eb0b17a9151054d98e61c", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.0.2", "_npmVersion": "5.6.0", "_nodeVersion": "8.9.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-6zqdrXga5IfVEgnOwVRcDeSBIRM6oFMcznmZs8iq4herWtVNRMWMSQS+qaBwzMuutuonWJEhGKmWMslvmWcFMw==", "shasum": "94d2054767875df4d5eb330f703c63881fc9cd64", "tarball": "https://registry.npmjs.org/got/-/got-8.0.2.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got-8.0.2.tgz_1515851818300_0.5123776632826775" }, "directories": {} }, "8.0.3": { "name": "got", "version": "8.0.3", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "errors.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.7.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.3.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.24.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.18.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "3f427bb08f30e9a9b8581e77ebb259b52f19d7c5", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.0.3", "_npmVersion": "5.6.0", "_nodeVersion": "8.9.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-U9GopEw0RLE8c3rbMmQ5/LtM2pLMopRxV7cVh6pNcX6ITLsH/iweqEn6GqoFxoGJHRbNZFvpFJ/knc+RITL6lg==", "shasum": "15d038e8101f89e93585d1639d9c49e8a55ae6bc", "tarball": "https://registry.npmjs.org/got/-/got-8.0.3.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got-8.0.3.tgz_1516481774979_0.3266338026151061" }, "directories": {} }, "8.1.0": { "name": "got", "version": "8.1.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "errors.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.7.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.3.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.24.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.18.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "17011250185fb37dc435186e6d3fbd4bcdd0f7f6", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.1.0", "_npmVersion": "5.6.0", "_nodeVersion": "8.9.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-clILMRaLB1Ase3NWiSgTUrhpc951Z5V2IMtcFp8SKwu2aY+aeZZUuv/KKQmix+pz+Ov9SugLry6+JsBezHa9Vw==", "shasum": "353a8cdf85ef8f958a38de7729610c43c179141b", "tarball": "https://registry.npmjs.org/got/-/got-8.1.0.tgz", "fileCount": 5, "unpackedSize": 39785 }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_8.1.0_1518362489760_0.6916592588929329" }, "_hasShrinkwrap": false }, "8.2.0": { "name": "got", "version": "8.2.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "errors.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.7.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.3.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.25.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.20.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "3963b5a25fcd42114ca139e08b625f808d57efbe", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.2.0", "_npmVersion": "5.6.0", "_nodeVersion": "8.9.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-giadqJpXIwjY+ZsuWys8p2yjZGhOHiU4hiJHjS/oeCxw1u8vANQz3zPlrxW2Zw/siCXsSMI3hvzWGcnFyujyAg==", "shasum": "0d11a071d05046348a2f5c0a5fa047fb687fdfc6", "tarball": "https://registry.npmjs.org/got/-/got-8.2.0.tgz", "fileCount": 5, "unpackedSize": 39828 }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_8.2.0_1519021389250_0.18971065946124077" }, "_hasShrinkwrap": false }, "8.3.0": { "name": "got", "version": "8.3.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "errors.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.7.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.4.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.25.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "proxyquire": "^1.8.0", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.20.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "7d1aa01e69229ad50ce355589681ff1d1a765627", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.3.0", "_npmVersion": "5.6.0", "_nodeVersion": "8.9.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-kBNy/S2CGwrYgDSec5KTWGKUvupwkkTVAjIsVFF2shXO13xpZdFP4d4kxa//CLX2tN/rV0aYwK8vY6UKWGn2vQ==", "shasum": "6ba26e75f8a6cc4c6b3eb1fe7ce4fec7abac8533", "tarball": "https://registry.npmjs.org/got/-/got-8.3.0.tgz", "fileCount": 5, "unpackedSize": 41679 }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_8.3.0_1520614656306_0.5834686069770603" }, "_hasShrinkwrap": false }, "8.3.1": { "name": "got", "version": "8.3.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "errors.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.7.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.4.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.25.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "proxyquire": "^1.8.0", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.20.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "bd3315b6c61d20a68944831d8b3a05046d5554ad", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.3.1", "_npmVersion": "5.6.0", "_nodeVersion": "8.11.1", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-tiLX+bnYm5A56T5N/n9Xo89vMaO1mrS9qoDqj3u/anVooqGozvY/HbXzEpDfbNeKsHCBpK40gSbz8wGYSp3i1w==", "shasum": "093324403d4d955f5a16a7a8d39955d055ae10ed", "tarball": "https://registry.npmjs.org/got/-/got-8.3.1.tgz", "fileCount": 5, "unpackedSize": 42079, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6BgNCRA9TVsSAnZWagAAeNwP/34bcjZvnu7Z8s0tCxru\nfRdWjUHrBk4nIdxII0cz9uthhCDkOv6CN6R4P01zkw3U9lI5yoDPebUlqXww\n7Wz5HcODeiAWtjD2OKwDDKdi1ShTdhXKd8mvz0/CgYgLjDwzhxqJwbmSGHZt\nXA1UJfQ2k4ttlpf/7fxe5YEUBQy+vwpMUS0VT7hNEiE8N8DJtg9nj6rXCQ1b\nBIEXQLinfQKtBx6W0I6tdfWDoIJCGjbKsDqsxjCOB2fnxC7K3IBkUahAxw9v\nlNMqOzXgCj8BUkkUaJt1IBmSMr2nzG6HQ6L4MvpkTK9Qeb3bFHD8EqYgCfUB\nsTNupR7W3cXY3H9R8b22BSq+91GS8m1AMFmfVIgxbYV+qv6dSUrqFrh0fUln\n2cnZ1XjWJVvtXBWW/4xceQA8s5SuNfyyrb0kEywj9YzhGG/XfeDyj1NiQJdT\nkKnfT2BIusYR+4ePrioWU1p2KlZbVXUbLGM8yPSl7uTTJS1j/TjOcYgYQqnV\npolyw9z3nOIJPCvjwdl7GV+ea96bBKhifVP1oxqESOvRQUwNWFnD3Ear2GXj\nOfFFJXRFDEPdg7+RvgLpn6HtiR//CGiwkXFjPuLKamlCH4lud90lkA++RdAD\nrByNrS7CLf5WsTl5c2eXNmgTviBxZ18Ej83sVGnAjn0LVbL9NC87vm8TGOkw\n/8Bd\r\n=kfsS\r\n-----END PGP SIGNATURE-----\r\n" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_8.3.1_1525159947345_0.628558559395153" }, "_hasShrinkwrap": false }, "8.3.2": { "name": "got", "version": "8.3.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "engines": { "node": ">=4" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "errors.js" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.7.0", "cacheable-request": "^2.1.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "into-stream": "^3.1.0", "is-retry-allowed": "^1.1.0", "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.4.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", "timed-out": "^4.0.1", "url-parse-lax": "^3.0.0", "url-to-options": "^1.0.1" }, "devDependencies": { "ava": "^0.25.0", "coveralls": "^3.0.0", "form-data": "^2.1.1", "get-port": "^3.0.0", "nyc": "^11.0.2", "p-event": "^1.3.0", "pem": "^1.4.4", "proxyquire": "^1.8.0", "sinon": "^4.0.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "universal-url": "1.0.0-alpha", "xo": "^0.20.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "ad7b361dcb2490c3864b845b979b756f13f7d89b", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@8.3.2", "_npmVersion": "5.6.0", "_nodeVersion": "8.11.2", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==", "shasum": "1d23f64390e97f776cac52e5b936e5f514d2e937", "tarball": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", "fileCount": 5, "unpackedSize": 42097, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOztZCRA9TVsSAnZWagAAkHAP/0wgOosxGWAt+NpUaQNh\n+CccVWx2Kdbym5AvviSF4jzNp0TO+uorMLgE7mUk2fHkryJQjtmTEdSOV0AF\n4rETEIqvYv1kiGTaXYYAylWzWZR/Kh3L9fzMltEhamXKTSGsIVBMiJHEQeEU\nDE9v/iEPa/+WqjKYGypiUMH1BxtrRzoJn/kRqkPjOlgHloHBoEVAO7rz7V9N\nnprEt/4wDp0Hot+LT8caNRDvgjdk3RgHkrkKq3g/hQ662z1QVhZOWsw6ICNR\nXMbn7RhZAJOqO6QTSAVzO7ztaNeQPlDjU18ddTktn5y6N6tMhFju/A3HJ38n\nLaTv8D0ojMlXQaD1LBVvIa5IdGXVwaAi2GznHvjP2R3vB2SVw6GHODxzrO0p\ncQyc8sgN1QPznDAFBHCIZ8UrUqyMSBeJoJCGLn+ImPRUlL/++em96qa8oXDm\nN0eAUys7GVsbL8NrXP4JHyvccvytG+jvAQAzFnj1OHIdPkIy+fbuDX5ZWbjl\nW1hR55MxVBjFda2mj29jnvgtqt7AdFCL+vgEW8HiWQudjUJzbP8wQdtun3Fu\nY173NF4PUIxFDQedZQbPW59dasXdpEUaeEdoCN904cPYd0k6dNyWwBgclnqC\nEmWYzk8N7QsWAiy/BekK0D6tkVrCtZM46vYVqO4uIkT5VNd8ASmfSy54h/2L\nCTCj\r\n=8ZZL\r\n-----END PGP SIGNATURE-----\r\n" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_8.3.2_1530608473068_0.7461942716317538" }, "_hasShrinkwrap": false }, "9.0.0": { "name": "got", "version": "9.0.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "source" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.11.0", "cacheable-request": "^4.0.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^3.0.0", "mimic-response": "^1.0.0", "p-cancelable": "^0.5.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "^1.0.0-beta.6", "coveralls": "^3.0.0", "delay": "^3.0.0", "form-data": "^2.1.1", "get-port": "^4.0.0", "nyc": "^12.0.2", "p-event": "^2.1.0", "pem": "^1.4.4", "proxyquire": "^2.0.1", "sinon": "^6.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "xo": "^0.21.1" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "3a145c0477b2b2f7607107a6f0cb69f6b19574bb", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.0.0", "_npmVersion": "6.3.0", "_nodeVersion": "8.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-TumaTIc9kYMFTkLwtvELc1IQYpQDqKqVuLx07I+kQmWHF6LELztdtHoy7w6UYkLfSkNnvzMRkasC/75aJMNiHw==", "shasum": "8673d2838adbac8a2e4a07e5772e238c701e9b7c", "tarball": "https://registry.npmjs.org/got/-/got-9.0.0.tgz", "fileCount": 19, "unpackedSize": 61968, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZUskCRA9TVsSAnZWagAAlgsQAIdbMp39An9WAovDBMSS\nVlux6ohlAe8xAY/8UnvVxbt4k0gI7AWRX0skFxfBGeizAboUhbGRFzRc6j/x\nHxEmgmx9btpi90DcpRWCNgYZHH2qhrD1nG1y/UhiNJ+9jInAOiOG2FWU+ATu\nqlrtYFO+/kxlvLG/TshzQBB1c2WCHiMjzDnzslKBY8qH6/DG+tG1z8CtW/so\nfVOOKMLojujoXaq9zZA17LwQ/Z6IiSbx8xbRPrCbLKP7jISnlHI/EG0LC0vk\n7jJKW4qSF9RbezC4Tav/uelMaSlD89Da/X/GE073y9lDh9U2tS6SwFArJgVu\n7ikMAIiv/77GdpOOIo0Pn3AZGOHXzKF3UXZ750naxQwgjtNLq1MPsUaJiIn8\nk/jjcXsobTFwX/LebQ1XXRebZiJt1PjKRabcYvS5gzk8szCNGcqa4uZMYPAp\nGoz3R793/tq15NiZQyWZ3owSyfJJ0mnDJsjsTxsWT00GgBD96d2Nl/EBjkx4\ns4iTFT6uZwwF7P3ipe81JTQIpqNjWBGbwsi9N9QazdNCydfC/KB2FCac6OaB\nL9fse9CRCsvQkF2sGKaUdfeaK5lsvNZ0gft82LnWJxpsrkQU9ZDw3kMXPHx4\nG3LQGuQI0F/+Le8yPJ8sXZ7+Rlt73VrgHzf9VelmM/CVOBJ40AEhkNKHXfdb\njcEi\r\n=EhYC\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "lukechilds123@gmail.com", "name": "lukechilds" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.0.0_1533365028069_0.829938386523517" }, "_hasShrinkwrap": false }, "9.1.0": { "name": "got", "version": "9.1.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "source" ], "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.11.0", "cacheable-request": "^4.0.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.0.0", "mimic-response": "^1.0.1", "p-cancelable": "^0.5.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-beta.7", "coveralls": "^3.0.0", "delay": "^3.0.0", "form-data": "^2.1.1", "get-port": "^4.0.0", "nyc": "^12.0.2", "p-event": "^2.1.0", "pem": "^1.4.4", "proxyquire": "^2.0.1", "sinon": "^6.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "xo": "^0.22.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "1c54a03bc6a809b73970f1694d3fccd22b664997", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.1.0", "_npmVersion": "5.6.0", "_nodeVersion": "8.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-jAFv4Y23cGnIjQypO5NYuxw+UZDy6MdSX0mp8dMFb7niTQ+4xKhXIpE4tD/blMC/wxhDV1M13SdAPyheKwAeWQ==", "shasum": "e31aa530bf953ca51599c5722039f891e49cf2ca", "tarball": "https://registry.npmjs.org/got/-/got-9.1.0.tgz", "fileCount": 21, "unpackedSize": 69011, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfqDkCRA9TVsSAnZWagAAE0YP/RtD7TXKkC1xPiM8PCUE\nmp9BBs5K4KX9OcusEfvIHYLEzKaggJebnJKczrLieQcneFggp7dCUnqnZ6/S\n+DCVrXbM7nvvap8IDbRBrqZuEf2JF8meHuK2+XKDjJ6fQ6YldbMcPpWOwvJZ\n5QpYP6DMdvCIVCG7/5lewx4fsOe0cZstTLXS/CUgFHn4T5z2NrZIw+ilplgi\nIzw8pMxA+icYXsnxfCxv3SQen4ahaSvU7fYAUEdrmpIoqSiBPFIFLECGa0rG\n97xCXJgW93Brqhzcy6a2w9zBAlqjwq6Q853u1V4RECB4iSeC9WcLNwPFB5vc\n5ghq4qcaigx6C9zig0kVrMozBK41GU3jsk5F5yeqwU6FntZIocDCPLjN6c7f\nBa3dF0+foDFgOX77cMF234U10x/BP+RN2oy/XZd7UgEkIJwZGmJAHpG1TGMU\nZA4PZ4Ter6OVxUsSPmv2nEJtzvj+O4ZvHIN9cfuQScTR4vhgWu44EsN4JHU4\nlxmGU5n6W8rieOzUd1uaFKhRY0N+KsSEpzZmJjmT4D+1mYs0uX32cJzXRo5y\ntvvvnsON8YKL1ks6EaOAkZ0p4hlFRT1+bWE/LndArgJBOB3Zn2gJfa00JXtE\nfDI5cbeYR+xR8FZ3ZMewb5PZh+qspWlsoP+uSFXcYtNHsYMYtcYKUZ0LPhGp\nJJa/\r\n=w2gD\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "lukechilds123@gmail.com", "name": "lukechilds" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.1.0_1535025379793_0.797993204647272" }, "_hasShrinkwrap": false }, "9.2.0": { "name": "got", "version": "9.2.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.11.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^4.0.1", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.0.0", "mimic-response": "^1.0.1", "p-cancelable": "^0.5.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-beta.7", "coveralls": "^3.0.0", "delay": "^3.0.0", "form-data": "^2.1.1", "get-port": "^4.0.0", "nyc": "^12.0.2", "p-event": "^2.1.0", "pem": "^1.4.4", "proxyquire": "^2.0.1", "sinon": "^6.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.22.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "aec95d2ddaa25cbb09cc1b3a0084e2051345a574", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.2.0", "_npmVersion": "5.6.0", "_nodeVersion": "8.11.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-H6GUT6PMamiIm5pVufgmfmuk7Tl92Vr2RHf8n587SGs5HPiarOUVrmyL6bGIfX/mJ5IEUMpHEdGR03LSIHhZrQ==", "shasum": "f6aa4e26c984a3175f1073c421e2e40640f8295c", "tarball": "https://registry.npmjs.org/got/-/got-9.2.0.tgz", "fileCount": 21, "unpackedSize": 73350, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiSOXCRA9TVsSAnZWagAAXVgQAJJ5y1HPxKzm0pxihNWF\nvNmb2Lpm42MezqqGnSNJ7VerYKDIrlctskkJ9mNpPbe64mw23vIIpVBOHt2h\nY2puj2uLiQlIXg3YPoamotixyq45GsXrqMY+f59uVwJuWIREtL8+f1OXS0nX\nuOan1f9w4GbFcUklZhIc3hfH4Ds2Dr5PKlFlByCfOHKUxaD0ZQh5iVVkTRPg\no25kJLDbNTlbbhDaIv1Z0eUhruO3ZYaYRjS+niS+Bqn7ps32J97ZEHazLVXY\n5riFQMi7Hv9dRKTyCFPxHWDDMi0SVdehMSZQmVlrydt7HnANQMev+mq73NxF\nRf1iGnG5lp0jF4oFKyh22k5sCslVUl2UBBOKMrrKi7jgMWmwZQGDe/2VToSS\ncj15ZmbD7DqYJFzzsNrirdz1kzTjvAbKyXqQ2wHFR9J4aAWyo9anA7LfY7uH\nu2ZTVBtU2uEWIpfC7kO3VTrOoq5mp/4fv0L9TJ8sBAnd0AMUr5VozTPN7NAw\nD9OpUv9Wem/T60WeuRwldC5Z+dyjT1Kgyxj7eb9OIAP3CYq9XO4Fdxcr1/mb\nyu016z8NWo+BkZrJ2Fv4yp7rThQ6kh9kOkigbj96yGGNX9ZcU6xK/2tQxKkv\n2S2gWqaxuflYjDM4AVzq0PU6F9CrcZOakLFwKjQzvl7BAvzrmDzAod0mkZAb\n0n2K\r\n=5udz\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "lukechilds123@gmail.com", "name": "lukechilds" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.2.0_1535714198736_0.032577579628410236" }, "_hasShrinkwrap": false }, "9.2.1": { "name": "got", "version": "9.2.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.11.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^5.0.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.0.0", "mimic-response": "^1.0.1", "p-cancelable": "^0.5.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-beta.8", "coveralls": "^3.0.0", "delay": "^4.0.0", "form-data": "^2.1.1", "get-port": "^4.0.0", "nyc": "^13.0.1", "p-event": "^2.1.0", "pem": "^1.4.4", "proxyquire": "^2.0.1", "sinon": "^6.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "0ddf3ac4a97739a733a4126d8c5ac48075f17a15", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.2.1", "_npmVersion": "5.6.0", "_nodeVersion": "8.11.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-NntrjQKYtdvTIXUiwPL9kc3gJeJS61UncPVsldGaN1t+k3RdXEUOQcd4zx+mMOnmuDqm2/Gd9PEFSvaQx/so7A==", "shasum": "dc2145dfa26ee8e33a9b22e0c54a630f1c2df0ae", "tarball": "https://registry.npmjs.org/got/-/got-9.2.1.tgz", "fileCount": 21, "unpackedSize": 73538, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkQKpCRA9TVsSAnZWagAAzFUP/1uqNqvaZJWEXmjgK40m\n10wYyPQPcAUItakWDss0Hz/PE7v09PyubV8eLF60eoqG5Wcg0h6mIlKj9WCS\nWIqtylGM4G/oHAoMk6C8h/EBTIYcTRU4SGAZen5qy76HI6Ju6s/xAQs4iK8P\nkksdugOl/afC9LHK4sEitPTRYcZ4AX72TD69o3UeIHb3qPOOdzBbgOhprr4g\nrc6OlwuWo9NSkoRQ+B2ZX0IkiN6mxj9HkbDR7s3zVfTFt7UNAFuGKa7eIbfH\nnd7VTxJ5M5IeNRVWr2a4dxIcd9bmksRxTKrTtrgY8JOOMS3CM0LMmXOzmFoY\nIo8u/Ekt0manfl4QG+DeRNJ5NNr7EjTOTnuUNDjty34JqdxrKQFd4jzwpR3w\nkFDBNklcw1InNry4WJEzUWDprYLbRNWpJtnVDWP63Xjyd+o7Kp1LdS32+ZPn\n7CL3K/YO1VV9tr7qRFiegQXMHDsGaMyh8rdaLZ8smOhV2JD55uKhFPV+Qux0\nhWd+i0CQEZyKsYfNu6ytCNNLgBa6do77rS/I6boK+jTTGvBGx30CJmrRt3qA\nBJWQESL8Gs2Q7JOhJq0gb56c7v3xmDVQT5KCFox2NuB1Ztcr7EJOS0lOkMKK\nOJ2clbcwp8qtEoZmFvkXomIJBPSYlHtKg8ldRi3slgJFe2l1ybd5x2Vry3pe\n429x\r\n=hJ8L\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "lukechilds123@gmail.com", "name": "lukechilds" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.2.1_1536230056271_0.5184274546412673" }, "_hasShrinkwrap": false }, "9.2.2": { "name": "got", "version": "9.2.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.11.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^5.0.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.0.0", "mimic-response": "^1.0.1", "p-cancelable": "^0.5.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-beta.8", "coveralls": "^3.0.0", "delay": "^4.0.0", "form-data": "^2.1.1", "get-port": "^4.0.0", "nyc": "^13.0.1", "p-event": "^2.1.0", "pem": "^1.4.4", "proxyquire": "^2.0.1", "sinon": "^6.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "248d68c997f1c37551a4d6b56695bfe17a5db14e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.2.2", "_npmVersion": "6.4.1", "_nodeVersion": "8.11.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-XLXmtO1QxLuzj6t4JBClWD1NI/bMvsR9utYl0yyPg49eUJjqU7HaQhPDvSVGwYoSbAqsRfe5aNZXHl1Zctzwmw==", "shasum": "d6cb73f40d4cb512864c2f66f275f258ab43aa25", "tarball": "https://registry.npmjs.org/got/-/got-9.2.2.tgz", "fileCount": 20, "unpackedSize": 73699, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnznkCRA9TVsSAnZWagAA2YkP/1GpaPLyaewPZn9M6jCq\nNcLzP/aG4dFS82ML1hlTawg3g4Yf2Umyxchb7C5TqTsw7HRWWrVfMl1Xqcca\nqKslpQxCOypPNrfnQd0EAdoE56d7IWoWIzV03UZo+8Dl9qgOOdp6d5yqM6Ty\n4TAru0RRdmp3QjBGND1EVeyccBaDgYbrFcMAt2H0OS3vkIG8cTFd5sh1k6WV\nZIUxoH3nvoj2ktY2BumWi+QHEqKGSMkHOuHof+K33IGSqMR+3PL7QaV3ef1G\nhINX3QGgI1zclIS0Rn82f1qD3TejpgNYH8zTyaT023hHAYOKhl/ZVVP4BYgV\nUx/e0eNCb7ZVPFngjJqtxKQGGSAFGDfFxsMWyjEANTVYoT0pu+yak6ZMkwou\nBp0Garp9Rx8fDzbchB+HbnewRLPg1meIyWWKy4EWoW2VO+SYpFp69C27ag+6\nS2Lg9UeF+Riome0zHoMTWGBukGj6NZ7r+kjNx/1DM1noTpqMNmJI0EtwIPt1\nP8EN7XHTTmILs19jkMx56gSFTLhgowIlBw4E7oVvFWrEdMfq4PZvNaWCOGkv\nyH2Lhn7ZdAL6xLk9idgRyghNlEISuzv0PZXf8r6iWWfq/fn/00JsyiRNmvgL\nq/cMP0E1XNe5vda5Fs7ITt5pNti9IGADiXy/MGxqNVRMaiSVssHWx+ejCu4x\n0Txm\r\n=odMv\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "alex.tesfamichael@gmail.com", "name": "alextes" }, { "email": "floatdrop@gmail.com", "name": "floatdrop" }, { "email": "kevinmartensson@gmail.com", "name": "kevva" }, { "email": "lukechilds123@gmail.com", "name": "lukechilds" }, { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.2.2_1537161699123_0.8406477951172775" }, "_hasShrinkwrap": false }, "9.3.0": { "name": "got", "version": "9.3.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "release": "np" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.12.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^5.1.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.1.0", "lowercase-keys": "^1.0.1", "mimic-response": "^1.0.1", "p-cancelable": "^1.0.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-rc.1", "coveralls": "^3.0.0", "delay": "^4.1.0", "form-data": "^2.3.3", "get-port": "^4.0.0", "np": "^3.0.4", "nyc": "^13.1.0", "p-event": "^2.1.0", "pem": "^1.13.2", "proxyquire": "^2.0.1", "sinon": "^7.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "232e0f365ff4a636e9fc53bda79f4b483998cc50", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.3.0", "_npmVersion": "6.4.1", "_nodeVersion": "10.12.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-4WTeObCRe7hatjQmeCwmkviu+ibyfeF5v6De+FeZdfsLEIe/7d9rl3VOzrknXveeQV/Pq/+f+KbscBQsP8ZxUg==", "shasum": "9187472a6e7c642264d041b0e670fd8bb1eebb67", "tarball": "https://registry.npmjs.org/got/-/got-9.3.0.tgz", "fileCount": 20, "unpackedSize": 78111, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2B4FCRA9TVsSAnZWagAAjQoQAIRujBCd0vssICbEtXsB\n6RnNXClXjEGkYwd2WbipnKggWc0O8mxoYjfotliGDa2ZGqkAzvgOSFcDBXTS\ntuRsKjGm5as1Am+7WzZvHMEUVoCsyBmItknWKc5zQWd02GM5PQKaoMInep3G\nhXP3t4u7H+HccHd66YjZG1XsWnHsXdttIxubcZUNCC83irHujPJxr7OFja+D\nTjZHM6QCY6cQW7yT9f1mALU2EI5Vy29tBc8/IAhsqLL8YBZMeLTrdwtA0Pl1\nfjSf72XLYYoB+pLdD6y0KppJ0+/rfq9xxVyThcbl0dIepf85jq2uZBriMB4t\nDppOyv3wSBrAf9vR5fE8ta0NoklAmstZLfmf5MrbAhV3wWRmKCQMaVn4ZgO1\nY4UJuXz3zcdxbZmtRcWWoUYwkTCEaVF0JDC8o56T3ZL250zkmqyN5e/+XJi6\nXTM5EJU3Wx/ykre7zitVrkOQJIHFYAAyrwgJO6/FBqnbStF7CEe7ihByT9Xf\nZ5kFtwqEe78Ubrr4lcS+hVvMpPw2bgvHnXMZBdvegLJONeyIPKr2wCSlKKDZ\nX2uH2ehNyHmbDgcweGiHxsepDH4Bho0Do4iEEX6nYQuG9EP7VlUV8VAB5HSM\nCHtkDsfuWEa3QNRz0dduwDJynPbXFnATFvhU6kW6FG3Q/+IloTnZXQtkPxWD\n1t+h\r\n=KLLk\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.3.0_1540890115149_0.03451283131331917" }, "_hasShrinkwrap": false }, "9.3.1": { "name": "got", "version": "9.3.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "release": "np" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.12.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^5.1.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.1.0", "lowercase-keys": "^1.0.1", "mimic-response": "^1.0.1", "p-cancelable": "^1.0.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-rc.1", "coveralls": "^3.0.0", "delay": "^4.1.0", "form-data": "^2.3.3", "get-port": "^4.0.0", "np": "^3.0.4", "nyc": "^13.1.0", "p-event": "^2.1.0", "pem": "^1.13.2", "proxyquire": "^2.0.1", "sinon": "^7.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "50fdab303cb2a6b34383de13e5e0ece9ceaf80c9", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.3.1", "_npmVersion": "6.4.1", "_nodeVersion": "10.13.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-lIVTDQipyF6uz7FpfHJ2Yd67tgb58C6eKAE46CYPqPj4BEkCT/HgdeRx8nF64BbVJWasEtlEJ3OBziuwl8tYrA==", "shasum": "f0e6d531e6ece50375de4f18a640b716862f102c", "tarball": "https://registry.npmjs.org/got/-/got-9.3.1.tgz", "fileCount": 20, "unpackedSize": 78282, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3ZKzCRA9TVsSAnZWagAAMXMP/irGKBjej70LFOWENauD\nSj6xgGcdoVFBGPdk0ES8Z75hHCEkBpYt2ARztCeZVQsi7MCOFLm/Ny09VeOD\nZJBRkBO73cA9R24e4PFTuG55yv0SaIwgqz5Qs4tzDhAzJW/hidyTS42VQNYn\nYpcGJw3w4Wl359+cIAX1Jt58u146/QErUAAzp9kg27Hb6pZKFZgvrgM/1OT9\nLNZvHxul042kx/icI+4cAWYTLCFQmKwzh3WKvjqrkGjvVPQOPaL7dRyhTyYy\nWB3H2DjRqdfG0znfw+upY7RKM8PkJacC/70/SrDkC1uWjBmZjNISv5ThgJrD\nWSCWWls3ciz7j9mzr7YQ9VZQ5soRipYhXr1w2OSxuy+HJjeQHCcIccuIxWwx\niqNTnybVj26SQaP+oWbtSg5ZhXCExEJZP86BaV8KirJiUPMoj2IM1asIeDJS\n9m6m9ujAKj92FXMs82n8w9zOzmnlPDpoaWfuckqKQt/EeGBqEmwpgO95ctvu\nxOq7UwPvy8XbaCHXnk26enFqv2TLCoBdRQL7atdRctp2pdQlBMs68whzAmGX\nI3cjc1I2dy4tOSB449Xl5wrP47UBCibudV9SheVZItAZeoAGbP+OMad0UhbF\naJWSWBnpymQ73QnP7JUahoyNlPFZM8xY+uYotgVoSQwIXz7b7x6BF2BVLoA2\nghX0\r\n=NAef\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.3.1_1541247666080_0.9531824350208147" }, "_hasShrinkwrap": false }, "9.3.2": { "name": "got", "version": "9.3.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "release": "np" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.12.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^5.1.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.1.0", "lowercase-keys": "^1.0.1", "mimic-response": "^1.0.1", "p-cancelable": "^1.0.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-rc.1", "coveralls": "^3.0.0", "delay": "^4.1.0", "form-data": "^2.3.3", "get-port": "^4.0.0", "np": "^3.0.4", "nyc": "^13.1.0", "p-event": "^2.1.0", "pem": "^1.13.2", "proxyquire": "^2.0.1", "sinon": "^7.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "4a383f23887edff7b2569b6984eb3d1a2e13f94d", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.3.2", "_npmVersion": "6.4.1", "_nodeVersion": "8.12.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-OyKOUg71IKvwb8Uj0KP6EN3+qVVvXmYsFznU1fnwUnKtDbZnwSlAi7muNlu4HhBfN9dImtlgg9e7H0g5qVdaeQ==", "shasum": "f6e3bd063aa8f461ccd924afa2ba2b61deab3989", "tarball": "https://registry.npmjs.org/got/-/got-9.3.2.tgz", "fileCount": 20, "unpackedSize": 78279, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5GHdCRA9TVsSAnZWagAAB3gP/jr+HqvMb1wOA6dWepkf\nxZJeDYK+ZsCpopn/tJy7Z7ub+QNj/cSCaiQkvJfPR8DF3bT/CnF85pIlGFy5\nmahdhMbzotS5T+JqKdqT2aaCOPOEKJ1YmTElqhfHRLDICSiiwYnlQq6PyMSy\n3ouzkvbd/yHlaHb8MpfRZuVqlmzpCtprzW+/vsocnKauTys6HM06Hs8gvRbG\nCcG8+nhBQTlb8Q/mEdI1KZSAjVPbplXCauGzJusrU+sFYhm1TIbZt11UHbGB\nqq3h6WQTvGGJ3utC/doVRo7ltxuii5lwDU1AJJZCfLo5CliP4dLJQOnJbsC4\n+H1vNQKkqEBnS/4NesfbwrwlkQt2IB2nWNWOIaCVziV/vBeFlPk+bztTUh9Y\nSsxLivU2exkxFHmB6b9K/nJ8xNak/SwgKTc3ny8UQaGe4pw8ODtdQIpK/lVM\nOMnBOxOSuvt+/XaCXkGCWPbpgbTQIEPoUoNnitnmdfd9wSlSSDuTDNUtiSCw\nh9mPwb5xkv4L4ilMgORjlU1Arn3d9RoU4wU6BsuesY1+B0JBmgLKdAAN8dpo\nA1Qdj5X9ZFvPHi5eIRq6zruW4c3KHS6f1yk9dKp6HjOSALshAfnwg4HWq4CR\nTY7PFz1r1kJek8rdKOdOjMldoDFjezEX1hAvz4YqV5ANHU0a6yKz8xEPNZUn\nOjop\r\n=x5o2\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.3.2_1541693915420_0.15524097139641668" }, "_hasShrinkwrap": false }, "9.4.0": { "name": "got", "version": "9.4.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "release": "np" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.12.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^5.1.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.1.0", "lowercase-keys": "^1.0.1", "mimic-response": "^1.0.1", "p-cancelable": "^1.0.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "1.0.0-rc.1", "coveralls": "^3.0.0", "delay": "^4.1.0", "form-data": "^2.3.3", "get-port": "^4.0.0", "np": "^3.0.4", "nyc": "^13.1.0", "p-event": "^2.1.0", "pem": "^1.13.2", "proxyquire": "^2.0.1", "sinon": "^7.1.0", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "533d7e51ef56f2007ca426cc23b8cbda7ec36b32", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.4.0", "_npmVersion": "6.4.1", "_nodeVersion": "10.13.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-k15lhRXITxW0eURHfEGzV+8pBYBHtTrYterFlMzP5rXQcQMPikDC2wvZkgivcJwGH4bv1JzMUTPlHfYGhuXJnw==", "shasum": "3b52a54306514b0404b869e1ba572b594772f2b1", "tarball": "https://registry.npmjs.org/got/-/got-9.4.0.tgz", "fileCount": 19, "unpackedSize": 78958, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDtU1CRA9TVsSAnZWagAAR3oP+wZMXB6xaEZGEnfBEukz\nPnADzLPrvlYV5lacVoLjy286NuvITaRFw1OmnPI+3woETqGVwk5FDJiysZ5g\nhDDH2lyJRC74P+Crc7FveZuQ+HWXUSRNp0ysCp8ZoiTu0alsf3VuGOAfPJ+C\nkfAdabF7kQP9kTQYc1rrV+FxNizOINYwfKSVx1c9+vhZPTWF/vv+9VSBQQXk\nhXZer+NA+VAMffU53s1ai9Sb3wYdgWzF7ZO8vkUdL2d5Z1JaNQXqDPZ/S8IZ\nqa13nwyRBjx590uU0qdg4TEjzpg5rMwtlk6gxaUE2VHES4Cctj1YyO4uNBEi\nbpu0FzNYDfVJZCWBe7+1WCrTe1h+WMnxT98jG0ghMsPOEqRN+8+DHZgNE9tz\nHrwa95OR7pWQ6yl0ka08/9YRKWzgI0Lqg1ZMVzfmo74ol3SZvyAwGcrYHZc9\nFmfMD4iAvJxv1efqLhlrCiABaCTMP0rqT2ySjRwRG55O9JHzq191PN08oDQP\nMxw0677IZPywc7rg+OzLmUcuMUMI3Zj6F5iive4V3FMvbl4mYRz0vQIRBn8N\nUeeLvzBu2uKCsujt+OX8qOWWtrTXTDOFuhzx9SWZbb3Bj19Ar4zRQ9vfqyMx\n+L0Zz/Cj+ykfDf2ncfJw56PKlxIe9b5llpb33KjBe3NZXpaNDfWeY+9PT00c\nU1KF\r\n=006q\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.4.0_1544475955788_0.7242244388861145" }, "_hasShrinkwrap": false }, "9.5.0": { "name": "got", "version": "9.5.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "release": "np" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.14.0", "@szmarczak/http-timer": "^1.1.0", "cacheable-request": "^5.1.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.1.0", "lowercase-keys": "^1.0.1", "mimic-response": "^1.0.1", "p-cancelable": "^1.0.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "^1.0.1", "coveralls": "^3.0.0", "delay": "^4.1.0", "form-data": "^2.3.3", "get-port": "^4.0.0", "np": "^3.1.0", "nyc": "^13.1.0", "p-event": "^2.1.0", "pem": "^1.13.2", "proxyquire": "^2.0.1", "sinon": "^7.2.2", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "91c0607b21f85adc568a0d182b47483e59855f95", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.5.0", "_npmVersion": "6.5.0", "_nodeVersion": "10.13.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-N+4kb6i9t1lauJ4NwLVVoFVLxZNa6i+iivtNzCSVw7+bVbTXoq0qXctdd8i9rj3lrI0zDk5NGzcO4bfpEP6Uuw==", "shasum": "6fd0312c6b694c0a11d9119d95fd7daed174eb49", "tarball": "https://registry.npmjs.org/got/-/got-9.5.0.tgz", "fileCount": 19, "unpackedSize": 78920, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGQ14CRA9TVsSAnZWagAADaIP/ikaJGjKPXnDcTabh1il\nr6VJTG9+m6i1KpW6p7UY1Q+/PVQjDx36oDOhjrymFHVS/E2fmG5J1gkwFNWi\nBJviGw8AnIDqX2CqMrJrtLmONrx5fbHWLOd/GmVRQasW07JC2bQbuFs7X5Qv\nECZfSZI6RDM2EOviEN83d8If53uYGkZ9NSN4F9iwDnRngxIoI1ooD+BxCCx9\nkpP1S0GA4UMUWPQ0IZcax7HIDzkgXl9OQMuyPgrWkGXS/aG1LX+BB51Y+HRi\nTN7nPMGT0yay7vMO8dAiMacnua28l4aeb5Ln5Q4KcUhuGh4wPoFzVHoBrR4m\nAPHMQNQNj8UZVMn6UmxpbR5fr8FW3Z3UyDb7EeJKo8INdqTB84Rd902amWux\nOZBw2eqSqWuFwKULkELdecF8kDd5if5C8np2xl6sGocvtBWjGF7SgUZZyLdS\n2wodfX6O290GtQmUfQbfn0B8LMI4G8pfQTzYm93KeL48dVSxG3uBZVKAZNDy\nqgqU0nwM5ZShdtS3kvqT3yUA4/TO/nxVx7x6h0NVGBZsDt54UuG4S/Ux9uzi\nrxcYD4pweTxDLUO+XZg1IJojSbg+i+kgHF74hvHFjHdLjRMkWtpFuvybfP+s\ntAJa3f/53TidoUN39vFuOWGY9pA3GTL5cYogOdLxPao8+peHUzOWezDa8W+y\nDxMH\r\n=9JRB\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.5.0_1545145717894_0.3079192997691842" }, "_hasShrinkwrap": false }, "9.5.1": { "name": "got", "version": "9.5.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "release": "np" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.14.0", "@szmarczak/http-timer": "^1.1.2", "cacheable-request": "^6.0.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.1.0", "lowercase-keys": "^1.0.1", "mimic-response": "^1.0.1", "p-cancelable": "^1.0.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "^1.0.1", "coveralls": "^3.0.0", "delay": "^4.1.0", "form-data": "^2.3.3", "get-port": "^4.0.0", "np": "^3.1.0", "nyc": "^13.1.0", "p-event": "^2.1.0", "pem": "^1.13.2", "proxyquire": "^2.0.1", "sinon": "^7.2.2", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^2.4.3", "xo": "^0.23.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "6ce603e99a17d258751ddce23b1c9d424b7be795", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.5.1", "_npmVersion": "6.5.0", "_nodeVersion": "10.13.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-a6UC2YXj3UPQT3UOzCCovwna4WPpN/OBAiiPSUwQ9gFranGs8HQjidyRmen2esBVlauqLWDbMwSTFDtxYNUv+g==", "shasum": "9cd83c64978225790c5142fc4e492cdea01256ef", "tarball": "https://registry.npmjs.org/got/-/got-9.5.1.tgz", "fileCount": 19, "unpackedSize": 83728, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOtVjCRA9TVsSAnZWagAAEqIP/0S0fo6/D+MvgR18s+no\nieGTliPxUnUbKHqXMkz8O/xViOPZhe4WGy/gzeIDOHN7CfiZvA1vS8G+l9Ob\n7qyb56G7zqejzED1dNWEkitBQB/Kc5idQ8H5v5OKYn6jwe9gyI+7mriQ7Uk5\ngrUPpxrGtdoWXfiwSxaadez6a82xIYXrfKjdpwtEMuyFH7rG9pLMYt7w2t7J\naI/VrtxcdhBkMkwXCtt9JK2kgC0FU1Bh7HlbTEsSKZJRjMhtls5rmuWTZC8p\nGZ9NgkArY3ts1vrx1kTclfu2Dt90uZ7IXrs5YHn8lr2QU59BJwT7L9iQcRvF\nN07I1Fx1L18W8w3X0BZKNPX2ll9dJJBBxboN8cnGGax/b+pY/GmxgtUuF9YO\nfD2KInQ5AIRfP5TBgIiled2VYBqGc1dR0QThDRKLnNaIH/MIq8mCkSASECz5\nV+otKMgjj3FIWdL4AJecI0ALWMKzN0rJRAwJZ1XqHyD2eqmPxrglghoAqM6R\nvPmbc453P6+5T6il31I3seTjxbDVa08y7MkeXZiixWf4HOqglVpY3Ns0wgRV\nrWlt7VIcg+jgEULeHC7mErBR2TjMu07OB4N8oTslGi83n79C6F1YJlnw8J4W\nEgOhppb97SCs+fd75+tREX0vrAQngID7IvX3aw75Z9O2pCamKqzlJJcG5S5F\nF/2b\r\n=Gi3L\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.5.1_1547359586088_0.39918191915009094" }, "_hasShrinkwrap": false }, "9.6.0": { "name": "got", "version": "9.6.0", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "source", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava", "release": "np" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron" ], "dependencies": { "@sindresorhus/is": "^0.14.0", "@szmarczak/http-timer": "^1.1.2", "cacheable-request": "^6.0.0", "decompress-response": "^3.3.0", "duplexer3": "^0.1.4", "get-stream": "^4.1.0", "lowercase-keys": "^1.0.1", "mimic-response": "^1.0.1", "p-cancelable": "^1.0.0", "to-readable-stream": "^1.0.0", "url-parse-lax": "^3.0.0" }, "devDependencies": { "ava": "^1.1.0", "coveralls": "^3.0.0", "delay": "^4.1.0", "form-data": "^2.3.3", "get-port": "^4.0.0", "np": "^3.1.0", "nyc": "^13.1.0", "p-event": "^2.1.0", "pem": "^1.13.2", "proxyquire": "^2.0.1", "sinon": "^7.2.2", "slow-stream": "0.0.4", "tempfile": "^2.0.0", "tempy": "^0.2.1", "tough-cookie": "^3.0.0", "xo": "^0.24.0" }, "ava": { "concurrency": 4 }, "browser": { "decompress-response": false, "electron": false }, "gitHead": "a45e071e8dc5027ab9c7fad5919195501cd9e9ca", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@9.6.0", "_npmVersion": "6.5.0", "_nodeVersion": "10.13.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", "shasum": "edf45e7d67f99545705de1f7bbeeeb121765ed85", "tarball": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", "fileCount": 19, "unpackedSize": 85411, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQAzICRA9TVsSAnZWagAAZaIP+wQ2nqz3Di5LBw4A+tvk\nVcdvV+xkvu+ULzZbvPcGA2EuVXcY8MRWutgK1pGi8N4maAJi/KMDlZYL2zGh\nKYUzKeYDHjzS/MFgrUhU73eVnhWP3MPLQYXL30jFwW+czV04qaATaurQXqXB\nMl4gfiEfbKRU41NDPKsUtlZuiNDwRSll9AFpYqWqJ3eKZWFzKNRy1IbfzGg+\nP8DjJBBKyZTvi1MT9Q1mZUqphFkwkbJs5c5oJ6PzsdASzwybvK2pVi2vtCta\n0Xx9lQkfIDD88/xv6JSuPPLzJswWg4uJhnTGjEjeuP6RanIfIKv5QXdLWQc3\nNT5wXyXld9eBbWXMzmj7Ql2FuJYRfnsX2B7gbNH7shiVRoXLpxHKfilnZ78s\n+udT72DufofDYyTR+a46CPY/+hiM6wf9W+QCFEtJtDe4a1dMIkTbr8PNGwRM\nOsCurf3uMSJtBmI5cii7wOI/4hSCjm6AJu0BN9a+qrhwUHyRfk3oNJ49uckX\nV8/QoWHCGkBIVMkBLIaZlokh7mrChJHCG4bwnNXs6TuEDlccdtiVkP4pr+2r\nDLT4f2nbHpxU78hJaqfqRYj9daPFl2T5GBUPrzF4DVcAG+xwHOzpRyO/JZMx\n7Cr15r6aX0917muBnUcw8WUw7lnjy8Yrwf3Hgq7oNkolNaXwSpY/NtzfeHVj\nr3kt\r\n=NEVT\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_9.6.0_1547701446369_0.12698734393224176" }, "_hasShrinkwrap": false }, "10.0.0-alpha.1.1": { "name": "got", "version": "10.0.0-alpha.1.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "dist", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava && tsc --noEmit", "release": "np", "build": "del-cli dist && tsc" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^2.0.0", "@types/cacheable-request": "^6.0.1", "@types/tough-cookie": "^2.3.5", "cacheable-lookup": "^0.2.1", "cacheable-request": "^6.1.0", "decompress-response": "^4.2.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^1.0.2", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.4.0", "@types/duplexer3": "^0.1.0", "@types/node": "^12.7.5", "@types/sinon": "^7.0.13", "@typescript-eslint/eslint-plugin": "^1.10.2", "@typescript-eslint/parser": "^1.10.2", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.14.0", "form-data": "^2.5.1", "get-port": "^5.0.0", "keyv": "^3.1.0", "lolex": "^4.2.0", "nock": "^11.3.4", "np": "^5.0.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.4.2", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.4.1", "typescript": "3.4.4", "xo": "^0.24.0" }, "types": "dist", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "import/named": "off", "import/no-unresolved": "off", "import/first": "off", "import/newline-after-import": "off", "ava/no-import-test-files": "off", "ava/no-ignored-test-files": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/await-thenable": "off" }, "ignores": [ "documentation/examples/*" ] }, "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t
\n\t
\n\t

\n\t\tHuge thanks to these companies for helping make open source sustainable by sponsoring Sindre Sorhus\n\t\t
\n\t\t
\n\t\t
\n\t\t\n\t\t
\n\t\t
\n\t\t\n\t\t\t

\n\t\t\t\t\n\t\t\t
\n\t\t\tOptimised Image Delivery made simple\n\t\t\n\t

\n\t
\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by ~2000 packages and ~500K repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` 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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n})();\n```\n\n###### headers\n\nType: `object`
\nDefault: `{}`\n\nRequest headers.\n\nExisting headers will be overwritten. Headers set to `null` will be omitted.\n\n###### stream\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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.header.token = options.context.token;\n\t\t\t}\n\t\t]\n\t}\n});\n\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `text`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response. Can be `text`, `json` or `buffer`. The promise has `.json()` and `.buffer()` and `.text()` functions which set this option automatically.\n\nExample:\n\n```js\nconst {body} = await got(url).json();\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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: [`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###### 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 | null`
\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. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data).\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | URLSearchParams`\n\n**Note:** The `query` option was renamed to `searchParams` in Got v10. The `query` option name is still functional, but is being deprecated and will be completely removed in Got v11.\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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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###### decompress\n\nType: `boolean`
\nDefault: `true`\n\nDecompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\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\nconst got = require('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.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###### hooks.afterResponse\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [response object](#response) and a retry function.\n\nEach function should return the response. This is especially useful when you want to refresh an access token. Example:\n\n```js\nconst got = require('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},\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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### url\n\nType: `string`\n\nThe request URL or the final URL after redirects.\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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.stream` 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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\n```\n\n**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](documentation/advanced-creation.md).\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#### got.extend(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\n\n#### got.defaults\n\nType: `object`\n\nThe default Got options used in that instance.\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.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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\tretries: iteration => {\n\t\t\t\tt.true(is.number(iteration));\n\t\t\t\treturn iteration < 2;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {...}\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 `null`.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': null\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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:---------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| Issues open | [![][gio]][g1] | [![][rio]][r1] | [![][nio]][n1] | [![][aio]][a1] | [![][sio]][s1] |\n| Issues closed | [![][gic]][g2] | [![][ric]][r2] | [![][nic]][n2] | [![][aic]][a2] | [![][sic]][s2] |\n| Downloads | [![][gd]][g3] | [![][rd]][r3] | [![][nd]][n3] | [![][ad]][a3] | [![][sd]][s3] |\n| Coverage | [![][gc]][g4] | [![][rc]][r4] | [![][nc]][n4] | [![][ac]][a4] | [![][sc]][s4] |\n| Build | [![][gb]][g5] | [![][rb]][r5] | [![][nb]][n5] | [![][ab]][a5] | [![][sb]][s5] |\n| Bugs | [![][gbg]][g6] | [![][rbg]][r6] | [![][nbg]][n6] | [![][abg]][a6] | [![][sbg]][s6] |\n| Dependents | [![][gdp]][g7] | [![][rdp]][r7] | [![][ndp]][n7] | [![][adp]][a7] | [![][sdp]][s7] |\n| Install size | [![][gis]][g8] | [![][ris]][r8] | [![][nis]][n8] | [![][ais]][a8] | [![][sis]][s8] |\n\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n❔ Experimental support.\n\n\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?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[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\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?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[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\n[gd]: https://badgen.net/npm/dm/got?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[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\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?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[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\n[gb]: https://badgen.net/travis/sindresorhus/got?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.org/sindresorhus/got\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/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:bug/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[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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\n[gdp]: https://badgen.net/npm/dependents/got?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[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\n[gis]: https://badgen.net/packagephobia/install/got?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[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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "gitHead": "4fcab893eb87e14cce4a9a94c715df7b3c14b139", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-alpha.1.1", "_nodeVersion": "12.10.0", "_npmVersion": "6.9.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-KUpcGTKvR7lK8L4wpeaDtAAVIi4c6lovglOiknjqY0ZZHuuKWPXdhrIeDoQvgFOEXDFGW13isGs6+zvs+1qJNw==", "shasum": "cb0c662b6ad63e506de9b447471d0d7fd7abf5dd", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-alpha.1.1.tgz", "fileCount": 70, "unpackedSize": 195632, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgLikCRA9TVsSAnZWagAAQrUP/itKnQ0ocZx5JTrqV59b\nlwhvVgF3IvCLQ0/CLgnESogIxRQq8C8fp3qS3G9WUxN0A/BkT1hXjLD1RbV2\nqutkHUL/KyXqjG3vYV0PqTrDpBYScRrKbblJZ01RZ20CEwqN546dNKHLus7M\nvx14U/ZQmMyY9l5HUrMu9j8B00HTPHm+d9LL2790tnSQGnIvlSlgd81FS03w\nHKeKQo3JlP8mLO8CBS69tet1e98790aKrA6QadC1tBcak6gJdXZ8Sf70bM2/\nl1wNXPCmam8gxBBQv19VX4TjIaoYWIzVL58rkYGv2NsvCSAOObNzHmpq8RzN\nUy0lRFExSNiRme4WJPd12MDeFNNhtf+wNZ/rDN7jg+96xPnnIMXpBZaC+YrS\njTWC4DmRaiA+es9GynvOBjFsecdXDTEZm0Dx/XgdYVpzdJU72r4ZYhjCyNcJ\ngdIbh53kt67LlF6YApJ8YtwmVIPsWMmm2tg7joSJNG777YXisWkmjm0xjNl6\nvokXkuoThtmGOMbvtUu+4WqMxtn+zgtQrkxOYZSAZHJErnLpaSQCAqbk2TZz\ne4mQ4yTq4lx1EdRJgB8Xj4boxYH8VbQkPYJ+FdnMsFAOFKekRIuN4CcoO8Rl\nVWByLGY5Jix3vQsy+VGyXX2aHalrVylu8eOVV+239QsT+wEEXV4Qp4uYTVqn\nrSQE\r\n=A49m\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-alpha.1.1_1568716964000_0.6049844068429415" }, "_hasShrinkwrap": false }, "10.0.0-alpha.2": { "name": "got", "version": "10.0.0-alpha.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "dist", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava && tsc --noEmit", "release": "np", "build": "del-cli dist && tsc", "prepare": "npm run build" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^2.0.0", "@types/cacheable-request": "^6.0.1", "@types/tough-cookie": "^2.3.5", "cacheable-lookup": "^0.2.1", "cacheable-request": "^6.1.0", "decompress-response": "^4.2.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^1.0.2", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.4.0", "@types/duplexer3": "^0.1.0", "@types/node": "^12.7.5", "@types/sinon": "^7.0.13", "@typescript-eslint/eslint-plugin": "^1.10.2", "@typescript-eslint/parser": "^1.10.2", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.14.0", "form-data": "^2.5.1", "get-port": "^5.0.0", "keyv": "^3.1.0", "lolex": "^4.2.0", "nock": "^11.3.4", "np": "^5.0.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.4.2", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.4.1", "typescript": "3.4.4", "xo": "^0.24.0" }, "types": "dist", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "import/named": "off", "import/no-unresolved": "off", "import/first": "off", "import/newline-after-import": "off", "ava/no-import-test-files": "off", "ava/no-ignored-test-files": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/await-thenable": "off" }, "ignores": [ "documentation/examples/*" ] }, "gitHead": "14fe93054122861c25e8742ace27f6ce156e48db", "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t
\n\t
\n\t

\n\t\tHuge thanks to these companies for helping make open source sustainable by sponsoring Sindre Sorhus\n\t\t
\n\t\t
\n\t\t
\n\t\t\n\t\t
\n\t\t
\n\t\t\n\t\t\t

\n\t\t\tOptimised Image Delivery made simple\n\t\t\n\t

\n\t
\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by ~2000 packages and ~500K repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` 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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n})();\n```\n\n###### headers\n\nType: `object`
\nDefault: `{}`\n\nRequest headers.\n\nExisting headers will be overwritten. Headers set to `null` will be omitted.\n\n###### stream\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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.header.token = options.context.token;\n\t\t\t}\n\t\t]\n\t}\n});\n\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `text`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response. Can be `text`, `json` or `buffer`. The promise has `.json()` and `.buffer()` and `.text()` functions which set this option automatically.\n\nExample:\n\n```js\nconst {body} = await got(url).json();\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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: [`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###### 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 | null`
\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. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data).\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | URLSearchParams`\n\n**Note:** The `query` option was renamed to `searchParams` in Got v10. The `query` option name is still functional, but is being deprecated and will be completely removed in Got v11.\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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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###### decompress\n\nType: `boolean`
\nDefault: `true`\n\nDecompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\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\nconst got = require('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.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###### hooks.afterResponse\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [response object](#response) and a retry function.\n\nEach function should return the response. This is especially useful when you want to refresh an access token. Example:\n\n```js\nconst got = require('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},\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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### url\n\nType: `string`\n\nThe request URL or the final URL after redirects.\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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.stream` 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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\n```\n\n**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](documentation/advanced-creation.md).\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#### got.extend(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\n\n#### got.defaults\n\nType: `object`\n\nThe default Got options used in that instance.\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.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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 `null`.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': null\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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:---------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| Issues open | [![][gio]][g1] | [![][rio]][r1] | [![][nio]][n1] | [![][aio]][a1] | [![][sio]][s1] |\n| Issues closed | [![][gic]][g2] | [![][ric]][r2] | [![][nic]][n2] | [![][aic]][a2] | [![][sic]][s2] |\n| Downloads | [![][gd]][g3] | [![][rd]][r3] | [![][nd]][n3] | [![][ad]][a3] | [![][sd]][s3] |\n| Coverage | [![][gc]][g4] | [![][rc]][r4] | [![][nc]][n4] | [![][ac]][a4] | [![][sc]][s4] |\n| Build | [![][gb]][g5] | [![][rb]][r5] | [![][nb]][n5] | [![][ab]][a5] | [![][sb]][s5] |\n| Bugs | [![][gbg]][g6] | [![][rbg]][r6] | [![][nbg]][n6] | [![][abg]][a6] | [![][sbg]][s6] |\n| Dependents | [![][gdp]][g7] | [![][rdp]][r7] | [![][ndp]][n7] | [![][adp]][a7] | [![][sdp]][s7] |\n| Install size | [![][gis]][g8] | [![][ris]][r8] | [![][nis]][n8] | [![][ais]][a8] | [![][sis]][s8] |\n\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n❔ Experimental support.\n\n\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?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[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\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?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[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\n[gd]: https://badgen.net/npm/dm/got?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[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\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?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[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\n[gb]: https://badgen.net/travis/sindresorhus/got?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.org/sindresorhus/got\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/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:bug/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[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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\n[gdp]: https://badgen.net/npm/dependents/got?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[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\n[gis]: https://badgen.net/packagephobia/install/got?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[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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-alpha.2", "_nodeVersion": "10.16.3", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-Wt2jybIH18XL46PL3Kc5UU+uAZxwJdPPbfGgsNYZl3tXe6/zfMrkLqOmf2bdWIgENYMXoWB5DQ5LMk3cKn2KEg==", "shasum": "4447edb8dd34b5fcacfa604520a99ceccb89d509", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-alpha.2.tgz", "fileCount": 4, "unpackedSize": 60071, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiLFkCRA9TVsSAnZWagAAD+kP/3HQEZzlxQBxIDwezYZq\nOlXw0urRlahTwagrprlhJbhckjs6JhQ3y+39WWBt4CEb+/jkuIYH7DZs0nMY\nlW6hrzmtd4QLlEM1gMxRPS/8G/lnVlOa6rgEcSH+gjyMzvnnUxrHoRbpZZ7Z\nYZ/iWfrqC3Lh8NsodaCUv2p4w11DrRxd2F4hqQbv5Yy0k3axD9VotgeGrD5L\nzWVCCvpD3IpTrfJZeDS9RnWviZgngmQ3exeJPo3xvp83vrQRRcwWJWzjRkGV\nceihNBwo8GPRK3dWWbq6Mnf1mrrnBQqrbIbu6zf/sN4SVsjg2XWzYpsl5BIh\nm1nNjPQHl09z8iycPYBeIGBzeKuJ/yKnh1T9UH3ntlP4/+X/SY5yaRg//xde\n51uLxNLjJ3SRoG8i/EhmjC5eMJmTmyNQxs8b/SZbXQvtFTcOTyvyuzf21Na8\nml5mC+0U2vhhwY9bEYq6oSsXvw5J9YoQpmCuRw5AyZKVRrvtGu4MlbmTS+P5\nk3YbPxw4CUflP/9+UWXcxjO9MicsXe0QbjQKua9+/xfHgS4NmaLfCZlFmRSP\nVyKbcDcYm7UPbM3iaSIjnchpCxOHMezz1LcaBgZiEhDhiNUupLygA2PT1U4c\ntc8KydnZtht/aG6BkkwAL2kEWLM04XFVPo1YHXn5CR2Q2u0/bcRPFMbhbRh9\nwJRl\r\n=ZtF6\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-alpha.2_1569239396129_0.6943412971022056" }, "_hasShrinkwrap": false }, "10.0.0-alpha.2.1": { "name": "got", "version": "10.0.0-alpha.2.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "dist", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava && tsc --noEmit", "release": "np", "build": "del-cli dist && tsc", "prepare": "npm run build" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^2.0.0", "@types/cacheable-request": "^6.0.1", "@types/tough-cookie": "^2.3.5", "cacheable-lookup": "^0.2.1", "cacheable-request": "^6.1.0", "decompress-response": "^4.2.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^1.0.2", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.4.0", "@types/duplexer3": "^0.1.0", "@types/node": "^12.7.5", "@types/sinon": "^7.0.13", "@typescript-eslint/eslint-plugin": "^1.10.2", "@typescript-eslint/parser": "^1.10.2", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.14.0", "form-data": "^2.5.1", "get-port": "^5.0.0", "keyv": "^3.1.0", "lolex": "^4.2.0", "nock": "^11.3.4", "np": "^5.0.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.4.2", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.4.1", "typescript": "3.4.4", "xo": "^0.24.0" }, "types": "dist", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "import/named": "off", "import/no-unresolved": "off", "import/first": "off", "import/newline-after-import": "off", "ava/no-import-test-files": "off", "ava/no-ignored-test-files": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/await-thenable": "off" }, "ignores": [ "documentation/examples/*" ] }, "gitHead": "14fe93054122861c25e8742ace27f6ce156e48db", "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t
\n\t
\n\t

\n\t\tHuge thanks to these companies for helping make open source sustainable by sponsoring Sindre Sorhus\n\t\t
\n\t\t
\n\t\t
\n\t\t\n\t\t
\n\t\t
\n\t\t\n\t\t\t

\n\t\t\tOptimised Image Delivery made simple\n\t\t\n\t

\n\t
\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by ~2000 packages and ~500K repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` 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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n})();\n```\n\n###### headers\n\nType: `object`
\nDefault: `{}`\n\nRequest headers.\n\nExisting headers will be overwritten. Headers set to `null` will be omitted.\n\n###### stream\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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.header.token = options.context.token;\n\t\t\t}\n\t\t]\n\t}\n});\n\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `text`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response. Can be `text`, `json` or `buffer`. The promise has `.json()` and `.buffer()` and `.text()` functions which set this option automatically.\n\nExample:\n\n```js\nconst {body} = await got(url).json();\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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: [`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###### 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 | null`
\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. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data).\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | URLSearchParams`\n\n**Note:** The `query` option was renamed to `searchParams` in Got v10. The `query` option name is still functional, but is being deprecated and will be completely removed in Got v11.\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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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###### decompress\n\nType: `boolean`
\nDefault: `true`\n\nDecompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\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\nconst got = require('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.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###### hooks.afterResponse\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [response object](#response) and a retry function.\n\nEach function should return the response. This is especially useful when you want to refresh an access token. Example:\n\n```js\nconst got = require('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},\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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### url\n\nType: `string`\n\nThe request URL or the final URL after redirects.\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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.stream` 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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\n```\n\n**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](documentation/advanced-creation.md).\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#### got.extend(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\n\n#### got.defaults\n\nType: `object`\n\nThe default Got options used in that instance.\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.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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 `null`.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': null\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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:---------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| Issues open | [![][gio]][g1] | [![][rio]][r1] | [![][nio]][n1] | [![][aio]][a1] | [![][sio]][s1] |\n| Issues closed | [![][gic]][g2] | [![][ric]][r2] | [![][nic]][n2] | [![][aic]][a2] | [![][sic]][s2] |\n| Downloads | [![][gd]][g3] | [![][rd]][r3] | [![][nd]][n3] | [![][ad]][a3] | [![][sd]][s3] |\n| Coverage | [![][gc]][g4] | [![][rc]][r4] | [![][nc]][n4] | [![][ac]][a4] | [![][sc]][s4] |\n| Build | [![][gb]][g5] | [![][rb]][r5] | [![][nb]][n5] | [![][ab]][a5] | [![][sb]][s5] |\n| Bugs | [![][gbg]][g6] | [![][rbg]][r6] | [![][nbg]][n6] | [![][abg]][a6] | [![][sbg]][s6] |\n| Dependents | [![][gdp]][g7] | [![][rdp]][r7] | [![][ndp]][n7] | [![][adp]][a7] | [![][sdp]][s7] |\n| Install size | [![][gis]][g8] | [![][ris]][r8] | [![][nis]][n8] | [![][ais]][a8] | [![][sis]][s8] |\n\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n❔ Experimental support.\n\n\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?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[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\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?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[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\n[gd]: https://badgen.net/npm/dm/got?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[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\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?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[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\n[gb]: https://badgen.net/travis/sindresorhus/got?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.org/sindresorhus/got\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/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:bug/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[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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\n[gdp]: https://badgen.net/npm/dependents/got?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[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\n[gis]: https://badgen.net/packagephobia/install/got?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[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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-alpha.2.1", "_nodeVersion": "10.16.3", "_npmVersion": "6.9.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-xAiFuGzxUuJl84zESTi+MA/92Dn7tbN4CAsz2SUIwAVgLZ0SscS3Q72w0/Q1Qwy35guYd8utWel6ip4VUkx5Zg==", "shasum": "d047db7a2ef50f3f7a10c824b84c07f55b297cd6", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-alpha.2.1.tgz", "fileCount": 4, "unpackedSize": 60075, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiNpTCRA9TVsSAnZWagAAkb8P/RqEoV42GxBixeMs8iBH\nZCcE0DR/J03TgRBTS6b1Hvpjq/gon2yJQrP7OrNphlgeU9Z+0vOuhRqkW8CV\nATJ6m2wBxtxMUuQF3BegNQdEU+h47uI7HryL5hTJWZvXwYSXLM/095n7WStS\nwMwtjGhwuI10PBRViz5fHIQnfSyAZFuGauduiYhnxibw04F8NlfpUitNT+/Q\n3lJTbwF+UpOCVcRWrAqI4N5l3r6F2SQ9Pw3SlOOB+ZFWfba8OS+uFAX0Gwpj\nT0DqVjFvhDRhA6cxwRqkBqZR9YbY2SHWf1FIwv6HTr19+mHwmwf+NWgpgIpQ\nbgqx7ZQvWjuJz+XopeI4s5ckLEdiYZ2Rappz9x9dZUCuy5qjt2epta7fu0dR\n6RJG4xJCeXJ8HlCmue4nDR5ago/TiMZzKMSDlxHDc4OOEKvpYxSxnkMBW7mZ\n+tg8lmdOqWYihdVfBe77Kr+3XQYSsfuQ3JdCHHqS5h7ag0ewE4o+oov5KwVl\nsxIQ1UvSZMm/4Y7FRdZcLpU+DS1G/dBlIC9ulJpOQ9m4ak0gJ5g5vNLUN26u\nlWERvZCiNO7NfI10AOb6onkkt71MecewBj2kCSDOMUQxN9V/MTqirmih4dz9\nxhQkwkG2C8/eJGjSNrt485C/DAXJqg9CX2JFJJMNUBJ/xBVfiWJzeu+0d/h7\nE7b0\r\n=gpHJ\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-alpha.2.1_1569249874757_0.9465069510646149" }, "_hasShrinkwrap": false }, "10.0.0-alpha.2.2": { "name": "got", "version": "10.0.0-alpha.2.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "dist", "engines": { "node": ">=8.6" }, "scripts": { "test": "xo && nyc ava && tsc --noEmit", "release": "np", "build": "del-cli dist && tsc" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^2.0.0", "@types/cacheable-request": "^6.0.1", "@types/tough-cookie": "^2.3.5", "cacheable-lookup": "^0.2.1", "cacheable-request": "^6.1.0", "decompress-response": "^4.2.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^1.0.2", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.4.0", "@types/duplexer3": "^0.1.0", "@types/node": "^12.7.5", "@types/sinon": "^7.0.13", "@typescript-eslint/eslint-plugin": "^1.10.2", "@typescript-eslint/parser": "^1.10.2", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.14.0", "form-data": "^2.5.1", "get-port": "^5.0.0", "keyv": "^3.1.0", "lolex": "^4.2.0", "nock": "^11.3.4", "np": "^5.0.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.4.2", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.4.1", "typescript": "3.4.4", "xo": "^0.24.0" }, "types": "dist", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "import/named": "off", "import/no-unresolved": "off", "import/first": "off", "import/newline-after-import": "off", "ava/no-import-test-files": "off", "ava/no-ignored-test-files": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/await-thenable": "off" }, "ignores": [ "documentation/examples/*" ] }, "gitHead": "14fe93054122861c25e8742ace27f6ce156e48db", "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t
\n\t
\n\t

\n\t\tHuge thanks to these companies for helping make open source sustainable by sponsoring Sindre Sorhus\n\t\t
\n\t\t
\n\t\t
\n\t\t\n\t\t
\n\t\t
\n\t\t\n\t\t\t

\n\t\t\tOptimised Image Delivery made simple\n\t\t\n\t

\n\t
\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by ~2000 packages and ~500K repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` 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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n})();\n```\n\n###### headers\n\nType: `object`
\nDefault: `{}`\n\nRequest headers.\n\nExisting headers will be overwritten. Headers set to `null` will be omitted.\n\n###### stream\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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.header.token = options.context.token;\n\t\t\t}\n\t\t]\n\t}\n});\n\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `text`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response. Can be `text`, `json` or `buffer`. The promise has `.json()` and `.buffer()` and `.text()` functions which set this option automatically.\n\nExample:\n\n```js\nconst {body} = await got(url).json();\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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: [`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###### 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 | null`
\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. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data).\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | URLSearchParams`\n\n**Note:** The `query` option was renamed to `searchParams` in Got v10. The `query` option name is still functional, but is being deprecated and will be completely removed in Got v11.\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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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###### decompress\n\nType: `boolean`
\nDefault: `true`\n\nDecompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\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\nconst got = require('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.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###### hooks.afterResponse\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [response object](#response) and a retry function.\n\nEach function should return the response. This is especially useful when you want to refresh an access token. Example:\n\n```js\nconst got = require('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},\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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### url\n\nType: `string`\n\nThe request URL or the final URL after redirects.\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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.stream` 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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\n```\n\n**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](documentation/advanced-creation.md).\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#### got.extend(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\n\n#### got.defaults\n\nType: `object`\n\nThe default Got options used in that instance.\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.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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 `null`.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': null\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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:---------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ❌ |\n| Issues open | [![][gio]][g1] | [![][rio]][r1] | [![][nio]][n1] | [![][aio]][a1] | [![][sio]][s1] |\n| Issues closed | [![][gic]][g2] | [![][ric]][r2] | [![][nic]][n2] | [![][aic]][a2] | [![][sic]][s2] |\n| Downloads | [![][gd]][g3] | [![][rd]][r3] | [![][nd]][n3] | [![][ad]][a3] | [![][sd]][s3] |\n| Coverage | [![][gc]][g4] | [![][rc]][r4] | [![][nc]][n4] | [![][ac]][a4] | [![][sc]][s4] |\n| Build | [![][gb]][g5] | [![][rb]][r5] | [![][nb]][n5] | [![][ab]][a5] | [![][sb]][s5] |\n| Bugs | [![][gbg]][g6] | [![][rbg]][r6] | [![][nbg]][n6] | [![][abg]][a6] | [![][sbg]][s6] |\n| Dependents | [![][gdp]][g7] | [![][rdp]][r7] | [![][ndp]][n7] | [![][adp]][a7] | [![][sdp]][s7] |\n| Install size | [![][gis]][g8] | [![][ris]][r8] | [![][nis]][n8] | [![][ais]][a8] | [![][sis]][s8] |\n\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n❔ Experimental support.\n\n\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\n[gio]: https://badgen.net/github/open-issues/sindresorhus/got?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[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\n[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?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[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\n[gd]: https://badgen.net/npm/dm/got?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[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\n[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?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[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\n[gb]: https://badgen.net/travis/sindresorhus/got?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.org/sindresorhus/got\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\n[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/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:bug/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[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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\n[gdp]: https://badgen.net/npm/dependents/got?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[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\n[gis]: https://badgen.net/packagephobia/install/got?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[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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-alpha.2.2", "_nodeVersion": "10.16.3", "_npmVersion": "6.9.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-bJOQhLecSylUML9cRHHdVe7WqksurvX1srN/KGk/L9xBxwwwLVRLQXFUF49P9uhkUT4NQdvxSLBecIF+ehhWNg==", "shasum": "3e08ff79a9e714d8888137934a68e751c6adecc4", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-alpha.2.2.tgz", "fileCount": 70, "unpackedSize": 197045, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdicKRCRA9TVsSAnZWagAAVOsP/imPE2B0IXz7J9hJUF1J\n2Y39r0L3puSG3kWZ9H5QAYf8B7jOA4u5Lf1NnDlDVXTR8xNgdpqNSnuJelaK\nGPudunSZlWEW+PbgAwrkKQXd6gb76ef4p5A+fkOmc0jvNLb3Jh8L15Hy3w45\nCv7tFxfBbQEYfGPjmD7HBdurK+o/MaSB2YXlqEPaydAAIS7CHBm8kVsP3SjF\nZblvX9xTxeA3XXsBf2cG1I92rLpAWtmv7ZnCdf1KV68/+KTXVz6mKc+mrA1o\nMAY1+FGs3jZZGbpCRdGDA2pn5sEKW2TSl2tZdViuN+QJjdLMAh4S4XCG2zGa\nIVUWy+vDqH03MPReF318R5bLULYgVBhv6AXS8a0OHPfpY44cRmXgIYVuKvrk\npzfyQENV9AdgkF4Ml237ovOPyZEZUj10FdRFqDDkNhNSRYmIKAENfLgGQDSS\n1M+3Rkz57pplgNXltOqoCqqgcmDJtHllRg14/ftFwseKoBnpTCB7EodpshkA\nbRBsZrKIKOvwLUngxPVLGggkp/0N+rJQGOj6YUshml/XGAvmyC/HVdAsM4Fw\nB7bH8X6AgzWz+vC2OWHsZzbui9jI/Us2b/IvP5GqxAhKndXXJCtRMRq1M8Rd\nsb4dfyPXlHzy+dSBuepSwi51RFCvSja1luEgmZ/SbjK94vrf4DomMO8U+VdO\n9MhJ\r\n=Aqg0\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-alpha.2.2_1569309328699_0.049343242223831574" }, "_hasShrinkwrap": false }, "10.0.0-alpha.3.1": { "name": "got", "version": "10.0.0-alpha.3.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && nyc ava && tsc --noEmit", "release": "np", "build": "del-cli dist && tsc" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^2.0.0", "@types/cacheable-request": "^6.0.1", "@types/tough-cookie": "^2.3.5", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.5.0", "@types/duplexer3": "^0.1.0", "@types/node": "^12.7.5", "@types/sinon": "^7.0.13", "@typescript-eslint/eslint-plugin": "^2.3.1", "@typescript-eslint/parser": "^2.3.1", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.19.0", "form-data": "^2.5.1", "get-port": "^5.0.0", "keyv": "^3.1.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.0.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.4.1", "typescript": "^3.6.4", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/promise-function-async": "off", "@typescript-eslint/strict-boolean-expressions": "off", "@typescript-eslint/no-unnecessary-condition": "off" }, "ignores": [ "documentation/examples/*" ] }, "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t

Huge thanks to for sponsoring Sindre Sorhus!\n\t

\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by 3000+ packages and 1.4M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` 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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n})();\n```\n\n###### headers\n\nType: `object`
\nDefault: `{}`\n\nRequest headers.\n\nExisting headers will be overwritten. Headers set to `null` will be omitted.\n\n###### stream\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `text`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response. Can be `text`, `json` or `buffer`. The promise has `.json()` and `.buffer()` and `.text()` functions which set this option automatically.\n\nExample:\n\n```js\nconst {body} = await got(url).json();\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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: [`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###### 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 | null`
\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. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data).\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | URLSearchParams`\n\n**Note:** The `query` option was renamed to `searchParams` in Got v10. The `query` option name is still functional, but is being deprecated and will be completely removed in Got v11.\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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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###### decompress\n\nType: `boolean`
\nDefault: `true`\n\nDecompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\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\nconst got = require('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.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###### hooks.afterResponse\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [response object](#response) and a retry function.\n\nEach function should return the response. This is especially useful when you want to refresh an access token. Example:\n\n```js\nconst got = require('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},\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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### 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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.stream` 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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\n```\n\n**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](documentation/advanced-creation.md).\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#### got.extend(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\n\n#### got.defaults\n\nType: `object`\n\nThe default Got options used in that instance.\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.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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 `null`.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': null\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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`ky`][k0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:-----------------:|:----------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ✔️ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | ✔️\\*\\*\\* | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\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\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n\\*\\*\\* Currently, only 'DownloadProgress' event is supported, 'UploadProgress' event is not supported.
\n❔ Experimental support.\n\n\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\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\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\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\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\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.org/sindresorhus/got\n[k5]: https://travis-ci.org/sindresorhus/ky\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\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:bug/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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\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\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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "gitHead": "72390c2dfb79f7ee0012d6ba264faff638248e47", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-alpha.3.1", "_nodeVersion": "12.13.0", "_npmVersion": "6.9.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-qVKGJ/r4j/+/O9h5Ys1cR1AWlamoeoPZzGcDAHJWez81uhHayFrjNxbVrxqFL1Vcaz3v9jl53tJ2HpM3QrxJeA==", "shasum": "a5100ab007389b2cf615e2723b4ffceaa8a4a6b7", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-alpha.3.1.tgz", "fileCount": 48, "unpackedSize": 146691, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvI97CRA9TVsSAnZWagAAec0P/0hI8Cbq+mDOdkzTa5yW\nVAGKV1up1g9VpS673t4g4dwGfPYkA0uzIVEZtm+NG7QYJFfZvgQ4fAL5UGHP\nq/Z7eBDxt9ThzwImcBdFmc4wa7V5XmTnUgQo0ljNyPqWiGvSaieCeotckYxa\n5sAP2GIFUmFl5ZXwqluxa64xoy6oxZ9ENNQqUpzZ2MJHvgINCL4YXNF+Zviw\nY4StWur7M5Y9Wj1NOrZDYeyLUxvO4i7VnjoY8k1Yf3KM4kJxoPpAREDRRzsp\n8ub1M8bR9ueDUayLD+2OUc0MVnjL8+/pSg7nmXff7jUgGzAgB17q9VO5cfg0\n4g23siI9b3T989d4luECrebk7HeSVV2ORAOnmVhjN8U+/OqWL3+T4HW3dnDQ\ntvsmJTv8AXrdksu+y+OjAZnW+ip1KtDPYLIN5CZFhDQm9BmPu/VAglGM6Tav\nNmyetQ7T1LmdrL4kxYTavoAD57giR+vkXE+M5s/u1yNgXHAPxqn8D5GB0ZPe\nA0/oNpSA+X5YVJnfgawxdw/uhmlCI+3XwoG3x3/m4jVC8F/+EC5tDWCu2zdf\n7x8xPMvTItL8FU02pQkad3zRKC+Iwy+sutiYnXgs4gbLsdnJjgd4wQ6cuz7c\nJuIgGG7FgxcVsEc0qfxAqiYaG9IkGhqmtPbjeLqKrzMGStlLBEfRJRDEnN/P\nEidi\r\n=Q/O2\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-alpha.3.1_1572638587396_0.08332064511598225" }, "_hasShrinkwrap": false }, "10.0.0-alpha.3.2": { "name": "got", "version": "10.0.0-alpha.3.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && nyc ava && tsc --noEmit", "release": "np", "build": "del-cli dist && tsc" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^2.0.0", "@types/cacheable-request": "^6.0.1", "@types/tough-cookie": "^2.3.5", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.5.0", "@types/duplexer3": "^0.1.0", "@types/node": "^12.7.5", "@types/sinon": "^7.0.13", "@typescript-eslint/eslint-plugin": "^2.3.1", "@typescript-eslint/parser": "^2.3.1", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.19.0", "form-data": "^2.5.1", "get-port": "^5.0.0", "keyv": "^3.1.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.0.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.4.1", "typescript": "^3.6.4", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/promise-function-async": "off", "@typescript-eslint/strict-boolean-expressions": "off", "@typescript-eslint/no-unnecessary-condition": "off" }, "ignores": [ "documentation/examples/*" ] }, "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t

Huge thanks to for sponsoring Sindre Sorhus!\n\t

\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by 3000+ packages and 1.4M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` 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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n})();\n```\n\n###### headers\n\nType: `object`
\nDefault: `{}`\n\nRequest headers.\n\nExisting headers will be overwritten. Headers set to `null` will be omitted.\n\n###### stream\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `text`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response. Can be `text`, `json` or `buffer`. The promise has `.json()` and `.buffer()` and `.text()` functions which set this option automatically.\n\nExample:\n\n```js\nconst {body} = await got(url).json();\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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: [`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###### 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 | null`
\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. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data).\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | URLSearchParams`\n\n**Note:** The `query` option was renamed to `searchParams` in Got v10. The `query` option name is still functional, but is being deprecated and will be completely removed in Got v11.\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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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###### decompress\n\nType: `boolean`
\nDefault: `true`\n\nDecompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\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\nconst got = require('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.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###### hooks.afterResponse\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [response object](#response) and a retry function.\n\nEach function should return the response. This is especially useful when you want to refresh an access token. Example:\n\n```js\nconst got = require('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},\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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### 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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.stream` 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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\n```\n\n**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](documentation/advanced-creation.md).\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#### got.extend(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\n\n#### got.defaults\n\nType: `object`\n\nThe default Got options used in that instance.\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.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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 `null`.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': null\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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`ky`][k0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:-----------------:|:----------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ✔️ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | ✔️\\*\\*\\* | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\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\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n\\*\\*\\* Currently, only 'DownloadProgress' event is supported, 'UploadProgress' event is not supported.
\n❔ Experimental support.\n\n\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\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\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\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\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\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.org/sindresorhus/got\n[k5]: https://travis-ci.org/sindresorhus/ky\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\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:bug/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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\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\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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "gitHead": "72390c2dfb79f7ee0012d6ba264faff638248e47", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-alpha.3.2", "_nodeVersion": "12.13.0", "_npmVersion": "6.9.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-8CpcAt6uomONUxQCXysMfFgZg5LIWmwK3d2PF8RZ4nGtwNjA1VjG4T9JGTzPTKVgavLolpztXOrgs366/z519w==", "shasum": "4099e4a68ecdb1c44fec9116018ff3dab118e86b", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-alpha.3.2.tgz", "fileCount": 48, "unpackedSize": 148745, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvJA5CRA9TVsSAnZWagAA4VQQAJ5dojbdDH+GdN30tEK1\nFnGeRoiEkaMlHIl1q5IUEOOxAJAwEcw0G2Rau/qpIivFS4V4tbLDQcJ51oBq\nDw/PhyjQI38iENuILFOJEL5MtpRawsdkI3jyq0H8xW116Kjn3eYhzBnmg82p\nsK2ESNHFf3rNJzI/Ly5aCMQHyLmzoPwlyqwP4tr2AX4Wls+igxsWx72bMKcJ\nSQnrOX99DRfkgxTDcJqKn2/zj1/oCsR7cSLXeJoMG9nVzcLVBEh0oxvCi0q5\n5w/fiVppTqbHSG+szoneASs6Hh09THI+reEZamfWe7xepfpp/siBM7+uU7Yw\nZvIu3F5rSL8OJd3BTPs+2JL2CfIXdOcVt7+LzLXB9R+rjYbeImuoO1fx7KlN\nlFSISH7l2Lm/i53cyLiLDmXY4u53SgwIOs0df78QJl+B9Mp1a8Lcz75p0TZU\nmkjATDFibr8I8DuX1ivcVlfJnT/pFQPskiL6nk8BjFkB0nMiCwZCeurRmlGi\nPm1q7m9hVYxFHBMUaIJ0SNzvKyiANXrgyq+erkJq8iD8R5OFkmCzI6qFwtua\nM+JaY/OycD1tdcbnDm1T/5QoOsbJ9S7LR9DQLvcBFNyqDgrY1mLH5euVE6Mm\nKFX07Q1yZjsllqfnIaui9zEPvzeF+ES2sac9LD/UDYTgawLWmasz41vZKSn8\nxA0d\r\n=N+ZZ\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-alpha.3.2_1572638777095_0.7221311328828659" }, "_hasShrinkwrap": false }, "10.0.0-beta.1": { "name": "got", "version": "10.0.0-beta.1", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc ava", "release": "np", "build": "del-cli dist && tsc", "prepare": "npm run build" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.0", "@types/cacheable-request": "^6.0.1", "@types/tough-cookie": "^2.3.5", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.5.0", "@types/duplexer3": "^0.1.0", "@types/node": "^12.12.8", "@types/sinon": "^7.0.13", "@typescript-eslint/eslint-plugin": "^2.7.0", "@typescript-eslint/parser": "^2.7.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.21.0", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/promise-function-async": "off" }, "ignores": [ "documentation/examples/*" ] }, "gitHead": "5c3d06bbf02011a55d964737f099e849816c344a", "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t

Huge thanks to for sponsoring Sindre Sorhus!\n\t

\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by 3000+ packages and 1.4M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n**Tip:** If the input URL still contains the initial `prefixUrl`, you can change it as many times as you want. Otherwise it will throw an error.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n\n\tconst instance = got.extend({\n\t\tprefixUrl: 'https://google.com'\n\t});\n\n\tawait instance('unicorn', {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\toptions => {\n\t\t\t\t\toptions.prefixUrl = 'https://cats.com';\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\t//=> 'https://cats.com/unicorn'\n})();\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `'default'`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response.\n\n- `'default'` - if `options.encoding` is `null`, the body will be a Buffer. Otherwise it will be a string unless it's overwritten in a `afterResponse` hook,\n- `'text'` - will always give a string, no matter what's the `options.encoding` or if the body is a custom object,\n- `'json'` - will always give an object, unless it's invalid JSON - then it will throw.\n- `'buffer'` - will always give a Buffer, no matter what's the `options.encoding`. It will throw if the body is a custom object.\n\nThe promise has `.json()` and `.buffer()` and `.text()` functions which set this option automatically.\n\nExample:\n\n```js\nconst {body} = await got(url).json();\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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`\n\nThe function takes two arguments: `rawCookie` (`string`) and `url` (`string`).\n\n###### cookieJar.getCookieString\n\nType: `Function`\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 | null`
\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. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data).\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | 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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored. If the connection is reset when downloading, you need to catch the error and clear the file you were writing into to prevent duplicated content.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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\nThis supports [method rewriting](https://tools.ietf.org/html/rfc7231#section-6.4). For example, when sending a POST request and receiving a `302`, it will resend that request to the new location.\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. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\nconst got = require('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.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\nconst got = require('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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### 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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\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.stream) {\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(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\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/as-promise.ts) or [`asStream`](source/as-stream.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.create(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## Errors\n\nEach error contains an `options` property which are the options Got used to create a request - just to make debugging easier.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\nWhen using hooks, simply throw an error to abort the request.\n\n```js\n(async () => {\n\tconst request = got(url, {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\t() => {\n\t\t\t\t\tthrow new Error('Oops. Request canceled.');\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\t// …\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`ky`][k0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:-----------------:|:----------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ✔️ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | ✔️\\*\\*\\* | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\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\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n\\*\\*\\* Currently, only 'DownloadProgress' event is supported, 'UploadProgress' event is not supported.
\n❔ Experimental support.\n\n\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\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\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\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\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\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.org/sindresorhus/got\n[k5]: https://travis-ci.org/sindresorhus/ky\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\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:bug/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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\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\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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-beta.1", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-eZtkHTdzU4JUbj0UNTJfoNNn64+utYvjg+K8qd1rqiApskBiobbwX1nJ29jD7fobOe5KyR+9gBZCT1ExHXF8Eg==", "shasum": "a52e450d4b990d5ada13abb9205d6b327529f6a3", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-beta.1.tgz", "fileCount": 47, "unpackedSize": 149298, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0k8dCRA9TVsSAnZWagAAGm4QAJ8xUPG/SAbWmjcSM+n0\nuNOc26Q1iBJHPvQUOwcDABpTe82Nydo6BNuAEPfmJ8rdRNBr7iwl5aDvGTXE\nNirF9TyqC13RUXTMaXvxzSaJsIFyyKus7fUTutNpVe6XmqezedRI4o5c6+GP\nzMwN3tjNhOJMnqFanG+gQCy0Se5RCPtKRw8llytnt/EcasMskvz8toY7tTBp\nQ4X8G/fHrQIDIba1JM5869grwweBG1I49XaE4gBKhzfMDJpcKQISsUIiRBWF\nn8AoIK6656bPXqSx3Os3zwP7ZAP169/bWvC3C26ymrDeJjJKu5E05P0KhIAT\naqg9u+inMHB2anyBQeTzV+x3rVytEGcGRl2uvYipYZiglnoLKWs4EdvXHBHh\nPf5JnBBDB0r2DFws5jC6vDiJVvzelTVpT6LlKcEX8o8Zr3JeDMbDdQAnMTUk\niAwBO+sCQ1tJSA9j/PgmA2llCW+ShTGD8WVAOJdYB9Tnz2k2cqv8EbXsjzjd\naO4VmKpa4C9sKhkYxk//+rlm6OgWI2mFZVRrK8KoLiEeea+dziTrlx1BaMSw\nSBWvWXGk5jGZakymzJXJoaJG01gSDLlrZTxl8vME08jtW66NVVQ15Mtv2JgP\nKpctrjBranq6Lnf782Jv0/RIfblstPyciWgRH1VcTmqIBzX2wxOVcBch5/ZS\nFO1m\r\n=92lR\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-beta.1_1574063900990_0.6341987289682078" }, "_hasShrinkwrap": false }, "10.0.0-beta.2": { "name": "got", "version": "10.0.0-beta.2", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "funding": "https://github.com/sindresorhus/got?sponsor=1", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc ava", "release": "np", "build": "del-cli dist && tsc", "prepare": "npm run build" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^3.1.1", "@types/node": "^12.12.8", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.7.0", "@typescript-eslint/parser": "^2.7.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.21.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "rules": { "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/promise-function-async": "off" }, "ignores": [ "documentation/examples/*" ] }, "gitHead": "966e7ff37f7bd22c49847b83689b5181a306f528", "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t

Huge thanks to for sponsoring Sindre Sorhus!\n\t

\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by 3000+ packages and 1.4M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n**By default, Got will retry on failure. To disable this option, set [`retry`](#retry) to `0`.**\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [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:** this can also be an option.\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###### 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. A trailing slash `/` is optional, one will be added automatically, if needed, when joining `prefixUrl` and `url`. The `url` argument cannot start with a `/` when using this option.\n\nUseful when used with `got.extend()` to create niche-specific Got-instances.\n\n**Note:** `prefixUrl` will be ignored if the `url` argument is a URL instance.\n\n**Tip:** If the input URL still contains the initial `prefixUrl`, you can change it as many times as you want. Otherwise it will throw an error.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n\n\tconst instance = got.extend({\n\t\tprefixUrl: 'https://google.com'\n\t});\n\n\tawait instance('unicorn', {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\toptions => {\n\t\t\t\t\toptions.prefixUrl = 'https://cats.com';\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\t//=> 'https://cats.com/unicorn'\n})();\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `'default'`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response.\n\n- `'default'` - Will give a string unless the body is overwritten in a `afterResponse` hook or if `options.decompress` is set to false - Will give a Buffer if the response is compresssed.\n- `'text'` - Will give a string no matter what.\n- `'json'` - Will give an object, unless the body is invalid JSON, then it will throw.\n- `'buffer'` - Will give a Buffer, ignoring `options.encoding`. It will throw if the body is a custom object.\n\nThe promise has `.json()` and `.buffer()` and `.text()` methods which set this option automatically.\n\nExample:\n\n```js\n// This\nconst body = await got(url).json();\n\n// is the same as this\nconst body = await got(url, {responseType: 'json'});\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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`\n\nThe function takes two arguments: `rawCookie` (`string`) and `url` (`string`).\n\n###### cookieJar.getCookieString\n\nType: `Function`\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.\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | 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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored. If the connection is reset when downloading, you need to catch the error and clear the file you were writing into to prevent duplicated content.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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\nThis supports [method rewriting](https://tools.ietf.org/html/rfc7231#section-6.4). For example, when sending a POST request and receiving a `302`, it will resend that request to the new location.\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. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\nconst got = require('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.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\nconst got = require('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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### 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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `undefined`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\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.stream) {\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(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\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/as-promise.ts) or [`asStream`](source/as-stream.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.create(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## Errors\n\nEach error contains an `options` property which are the options Got used to create a request - just to make debugging easier.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\nWhen using hooks, simply throw an error to abort the request.\n\n```js\n(async () => {\n\tconst request = got(url, {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\t() => {\n\t\t\t\t\tthrow new Error('Oops. Request canceled.');\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\t// …\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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;\n\t\t\t}\n\t\t}\n\t});\n});\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst body = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`ky`][k0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:-----------------:|:----------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ✔️ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | ✔️\\*\\*\\* | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\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\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n\\*\\*\\* Currently, only 'DownloadProgress' event is supported, 'UploadProgress' event is not supported.
\n❔ Experimental support.\n\n\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\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\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\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\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\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.org/sindresorhus/got\n[k5]: https://travis-ci.org/sindresorhus/ky\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\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:bug/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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\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\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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-beta.2", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-WLEanbnLqRLxO2tN9NoPZ/ywnlRDMZ8R5aOz4ojnpr4eDFXTcLrzqOtZdJBa+I8RygOfKhbik5rmRwr6QiV45g==", "shasum": "7b7cacc04d59f801731846e66cc6e9ea0ec33f93", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-beta.2.tgz", "fileCount": 47, "unpackedSize": 152425, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2145CRA9TVsSAnZWagAAMUIP/R3ls8KMJ/QlB9n4o8cP\nQ2cmNpjqFlK3k2ifb4NDSeIIV8x5Xra3qcgSHKEPCBMknoSUj9FGuoSR42s9\n86VGvlgn8MqT6qgXRMgiQkYaZKpFi9iG8dsOyyj7D91ANZ65w6iq393lI6Hr\ntExRDQZIZIyk+t32kDaSWK3A0teLY6Tb8IGYhGpBBGKotidoAFYWH+uk2/52\ncm+Xh79VvGBX3SvW9a7qWd8JsOpBKwzbWbDN5oD8TqwrSzocXhGqTUiuaRhr\n511CvS4VP4ZIDWGnIoQwmk9P9LiXIQuM9M1P90Z/3YtIvQa1Ru5LGlcoAd/K\nMNpeo4fp4olDqrSsep2C/XDoHPPIbohEuoYyobD1HZiCU+O5MlIagcQMurbE\nL9AU1fggGdbvRK7uEECM83gJ/5pyWA/yE+Y61HyEPNyUh+TXuofPcWqJZsKK\nDjXuxFJSvQ37xv7rjZTrIyC/Aq7Xvis4au+UYtvBiEzUyHlXaBvT5h6vvyg4\nqVbhcxc/8No9wVg0MXLZ9toIv9rcwf0AOROT5JSdAOdqI6XvcLVEseQCm7kN\nc1JaClRIFsP/ApWdiBWy5ZRaJ44450MroBJFPr2IYys4GEXahpgl8q88ot3n\nhr+XcEV1k1lxQa5ZiyedRGxXfZpEUwW7ioNDP/6vNFoYRZ+vkuccRKe0sLSY\naYpt\r\n=Q6w0\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-beta.2_1574657592130_0.7090340178445669" }, "_hasShrinkwrap": false }, "10.0.0-beta.3": { "name": "got", "version": "10.0.0-beta.3", "description": "Simplified HTTP requests", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/got.git" }, "funding": "https://github.com/sindresorhus/got?sponsor=1", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc ava", "release": "np", "build": "del-cli dist && tsc", "prepare": "npm run build" }, "keywords": [ "http", "https", "get", "got", "url", "uri", "request", "util", "utility", "simple", "curl", "wget", "fetch", "net", "network", "electron", "brotli" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^12.12.14", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.9.0", "@typescript-eslint/parser": "^2.9.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.23.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ] }, "gitHead": "71b8452efcd173d54700fb090cbe5664da702143", "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t

Huge thanks to for sponsoring Sindre Sorhus!\n\t

\n\t
\n\t
\n
\n\n> Simplified HTTP requests\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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\nGot is a human-friendly and powerful HTTP request library.\n\nIt 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)\n\nGot is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky).\n\n**This readme reflects the next major version that is currently in development. You probably want [the v9 readme](https://www.npmjs.com/package/got).**\n\n\n## Highlights\n\n- [Promise & stream API](#api)\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- [Hooks](#hooks)\n- [Instances with custom defaults](#instances)\n- [Composable](documentation/advanced-creation.md#merging-instances)\n- [Plugins](documentation/lets-make-a-plugin.md)\n- [Electron support](#useelectronnet)\n- [Used by 3000+ packages and 1.4M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- Actively maintained\n\n[Moving from Request?](documentation/migration-guides.md)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n## Install\n\n```\n$ npm install got\n```\n\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\n})();\n```\n\n**Tip:** Using `from.pipe(to)` doesn't forward errors. If you use it, switch to [`Stream.pipeline(from, ..., to, callback)`](https://nodejs.org/api/stream.html#stream_stream_pipeline_streams_callback) instead (available from Node v10).\n\n### API\n\nIt's a `GET` request by default, but can be changed by using different methods or via `options.method`.\n\n**By default, Got will retry on failure. To disable this option, set [`retry`](#retry) to `0`.**\n\n#### got([url], [options])\n\nReturns a Promise for a [`response` object](#response) or a [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:** this can also be an option.\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###### 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. A 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\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n\n\tconst instance = got.extend({\n\t\tprefixUrl: 'https://google.com'\n\t});\n\n\tawait instance('unicorn', {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\toptions => {\n\t\t\t\t\toptions.prefixUrl = 'https://cats.com';\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\t//=> 'https://cats.com/unicorn'\n})();\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:** The `body` option cannot be used with the `json` or `form` option.\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nIf present in `options` and `options.method` is not set, it will throw a `TypeError`.\n\nThe `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\n\n###### json\n\nType: `object | Array | number | string | boolean | null` *(JSON-serializable values)*\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\n```\n\n###### responseType\n\nType: `string`
\nDefault: `'default'`\n\n**Note:** When using streams, this option is ignored.\n\nParsing method used to retrieve the body from the response.\n\n- `'default'` - Will give a string unless the body is overwritten in a `afterResponse` hook or if `options.decompress` is set to false - Will give a Buffer if the response is compresssed.\n- `'text'` - Will give a string no matter what.\n- `'json'` - Will give an object, unless the body is invalid JSON, then it will throw.\n- `'buffer'` - Will give a Buffer, ignoring `options.encoding`. It will throw if the body is a custom object.\n\nThe promise has `.json()` and `.buffer()` and `.text()` methods which set this option automatically.\n\nExample:\n\n```js\n// This\nconst body = await got(url).json();\n\n// is the same as this\nconst body = await got(url, {responseType: 'json'});\n```\n\n###### resolveBodyOnly\n\nType: `string`
\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`\n\nThe function takes two arguments: `rawCookie` (`string`) and `url` (`string`).\n\n###### cookieJar.getCookieString\n\nType: `Function`\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.\n\n###### form\n\nType: `object | true`\n\n**Note:** If you provide this option, `got.stream()` will be read-only.\n\nThe form body is converted to query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).\n\nIf set to `true` and the `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`.\n\n###### searchParams\n\nType: `string | object | 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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\n\nAnd if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package:\n\n```js\nconst got = require('got');\nconst queryString = require('query-string');\n\nconst searchParams = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'});\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams);\n//=> 'key[]=a&key[]=b'\n```\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\n###### retry\n\nType: `number | object`
\nDefault:\n- limit: `2`\n- calculateDelay: `(attemptCount, retryOptions, error, computedValue) => 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)\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\n**Note:** When using streams, this option is ignored. If the connection is reset when downloading, you need to catch the error and clear the file you were writing into to prevent duplicated content.\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) + Math.random() * 100`, where `retry` is attempt number (starts from 1).\n\nThe `calculateDelay` property is a `function` with `attemptCount`, `retryOptions`, `error` and `computedValue` arguments for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (`0` return value cancels retry).\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###### 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\nBy default, redirects will use [method rewriting](https://tools.ietf.org/html/rfc7231#section-6.4). For example, 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###### 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. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`
\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached DNS data.\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](#experimental-http2-support).\n\n###### useElectronNet\n\nType: `boolean`
\nDefault: `false`\n\nWhen used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461).\n\n###### throwHttpErrors\n\nType: `boolean`
\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nSame as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature:\n\nIf you require different agents for different protocols, you can pass a map of agents to the `agent` option. 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\n```js\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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) and [`got.create()`](documentation/advanced-creation.md) when the input needs custom handling.\n\nSee the [Request migration guide](documentation/migration-guides.md#breaking-changes) for an example.\n\n**Note:** This hook must be synchronous!\n\n###### hooks.beforeRequest\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.ts) [request options](#options). Got will make no further changes to the request before it is sent (except the body serialization). This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](documentation/advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing.\n\nSee the [AWS section](#aws) for an example.\n\n###### hooks.beforeRedirect\n\nType: `Function[]`
\nDefault: `[]`\n\nCalled with [normalized](source/normalize-arguments.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\nconst got = require('got');\n\ngot('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\nconst got = require('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.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\nconst got = require('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\nconst got = require('got');\n\ngot('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} (${error.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#### 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##### 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- `upload` - Time when the request finished uploading.\n- `response` - Time when the request fired the `response` event.\n- `end` - Time when the response fired the `end` event.\n- `error` - Time when the request fired the `error` 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- `request` - `timings.upload - timings.connect`\n\t- `firstByte` - `timings.response - timings.upload`\n\t- `download` - `timings.end - timings.response`\n\t- `total` - `timings.end - timings.start` or `timings.error - timings.start`\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.abort(), 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##### .on('downloadProgress', progress)\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 it's not possible to retrieve the body size (can happen when streaming), `total` will be `undefined`.\n\n```js\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\n\n##### .on('error', error, body, response)\n\nThe `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object.\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` 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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('/headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('/headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\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.stream) {\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(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.
\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\n\n```js\nconst a = {headers: {cat: 'meow'}};\nconst b = got.create({\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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- Otherwise, the new value is assigned to the key.\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/as-promise.ts) or [`asStream`](source/as-stream.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.create(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## Errors\n\nEach error contains an `options` property which are the options Got used to create a request - just to make debugging easier.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\nWhen using hooks, simply throw an error to abort the request.\n\n```js\n(async () => {\n\tconst request = got(url, {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\t() => {\n\t\t\t\t\tthrow new Error('Oops. Request canceled.');\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\t// …\n\t}\n})();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\n```\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(url, {\n\theaders: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)),\n\tresponseType: 'json'\n});\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\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('unix:/var/run/docker.sock:/containers/json');\n```\n\n\n## AWS\n\nRequests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('endpoint/path', {\n\t// Request-specific options\n});\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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst body = await got.post('https://httpbin.org/anything', {\n\t\tbody: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('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**Note:** Not to be confused with [`got.create()`](documentation/advanced-creation.md), which has no defaults.\n\n```js\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('/v1/users/list');\n})();\n```\n\n### Experimental HTTP2 support\n\nGot provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package:\n\n```js\nconst got = require('got');\nconst {request} = require('http2-wrapper');\n\nconst h2got = got.extend({request});\n\n(async () => {\n\tconst {body} = await h2got('https://nghttp2.org/httpbin/headers');\n\tconsole.log(body);\n})();\n```\n\n## Comparison\n\n| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`ky`][k0] | [`axios`][a0] | [`superagent`][s0] |\n|-----------------------|:----------------:|:---------------:|:--------------------:|:-----------------:|:----------------:|:--------------------:|\n| HTTP/2 support | ❔ | ❌ | ❌ | ❌ | ❌ | ✔️\\*\\* |\n| Browser support | ❌ | ❌ | ✔️\\* | ✔️ | ✔️ | ✔️ |\n| Electron support | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Promise API | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Stream API | ✔️ | ✔️ | Node.js only | ❌ | ❌ | ✔️ |\n| Request cancelation | ✔️ | ❌ | ✔️ | ✔️ | ✔️ | ✔️ |\n| RFC compliant caching | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Cookies (out-of-box) | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Follows redirects | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Retries on failure | ✔️ | ❌ | ❌ | ✔️ | ❌ | ✔️ |\n| Progress events | ✔️ | ❌ | ❌ | ✔️\\*\\*\\* | Browser only | ✔️ |\n| Handles gzip/deflate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Advanced timeouts | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| Timings | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |\n| Errors with metadata | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\n| JSON mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Custom defaults | ✔️ | ✔️ | ❌ | ✔️ | ✔️ | ❌ |\n| Composable | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ |\n| Hooks | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |\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\n\\* It's almost API compatible with the browser `fetch` API.
\n\\*\\* Need to switch the protocol manually.
\n\\*\\*\\* Currently, only 'DownloadProgress' event is supported, 'UploadProgress' event is not supported.
\n❔ Experimental support.\n\n\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\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\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\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\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\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.org/sindresorhus/got\n[k5]: https://travis-ci.org/sindresorhus/ky\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\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:bug/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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\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\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#### Install size of the dependencies\n\n| Dependency | Install size |\n|------------------------------------------------|-------------------------------|\n| [@sindresorhus/is][url-is] | ![][size-is] |\n| [@szmarczak/http-timer][url-http-timer] | ![][size-http-timer] |\n| [cacheable-request][url-cacheable-request] | ![][size-cacheable-request] |\n| [decompress-response][url-decompress-response] | ![][size-decompress-response] |\n| [duplexer3][url-duplexer3] | ![][size-duplexer3] |\n| [get-stream][url-get-stream] | ![][size-get-stream] |\n| [lowercase-keys][url-lowercase-keys] | ![][size-lowercase-keys] |\n| [mimic-response][url-mimic-response] | ![][size-mimic-response] |\n| [p-cancelable][url-p-cancelable] | ![][size-p-cancelable] |\n| [to-readable-stream][url-to-readable-stream] | ![][size-to-readable-stream] |\n| | ![][gis] |\n\n[size-is]: https://badgen.net/packagephobia/install/@sindresorhus/is?label\n[size-http-timer]: https://badgen.net/packagephobia/install/@szmarczak/http-timer?label\n[size-cacheable-request]: https://badgen.net/packagephobia/install/cacheable-request?label\n[size-decompress-response]: https://badgen.net/packagephobia/install/decompress-response?label\n[size-duplexer3]: https://badgen.net/packagephobia/install/duplexer3?label\n[size-get-stream]: https://badgen.net/packagephobia/install/get-stream?label\n[size-lowercase-keys]: https://badgen.net/packagephobia/install/lowercase-keys?label\n[size-mimic-response]: https://badgen.net/packagephobia/install/mimic-response?label\n[size-p-cancelable]: https://badgen.net/packagephobia/install/p-cancelable?label\n[size-to-readable-stream]: https://badgen.net/packagephobia/install/to-readable-stream?label\n\n[url-is]: https://github.com/sindresorhus/is\n[url-http-timer]: https://github.com/szmarczak/http-timer\n[url-cacheable-request]: https://github.com/lukechilds/cacheable-request\n[url-decompress-response]: https://github.com/sindresorhus/decompress-response\n[url-duplexer3]: https://github.com/floatdrop/duplexer3\n[url-get-stream]: https://github.com/sindresorhus/get-stream\n[url-lowercase-keys]: https://github.com/sindresorhus/lowercase-keys\n[url-mimic-response]: https://github.com/sindresorhus/mimic-response\n[url-p-cancelable]: https://github.com/sindresorhus/p-cancelable\n[url-to-readable-stream]: https://github.com/sindresorhus/to-readable-stream\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\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) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds)\n---|---|---|---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak) | [Alexander Tesfamichael](https://alextes.me) | [Brandon Smith](https://github.com/brandon93s) | [Luke Childs](https://github.com/lukechilds)\n\n###### Former\n\n- [Vsevolod Strukchinsky](https://github.com/floatdrop)\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0-beta.3", "_nodeVersion": "10.17.0", "_npmVersion": "6.13.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-lq3TNHuat96CkPtz2DLH8rMFpS48nYHTgh+pqwqMcc+eN4XK0Qmuilr5I5bQqunkrISFondnOgPI7uPrK6yD7g==", "shasum": "f86a2b9c0a5bddd340c1dcc19cb831b819465cf8", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0-beta.3.tgz", "fileCount": 47, "unpackedSize": 154207, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd42TzCRA9TVsSAnZWagAAKTkQAKHCvN5OzlfUpq2SoUcD\n57s9rgY0A1EXoaYDASM/pCSehx4Sys/GbBAI+XYuKretiuTXn3sw+hTGbw/g\nji8p2yogGfVZsmlo9qSGPpIbn+K7tuDaOXGQpn936JyZ6Kds3zVjqirJeVhY\nPZFWHW68tRSjn1ujPsgvfY5RAwd+LM35PKmCzF07jrAw14PQz0baQvWxdVcd\nFkBD0C/4KrpXJ4N4c3HuQjmocRrpGEdCAdiGKJ2U0qQFMu6nvbb3puHnq6EM\nlg4/kfARTAcpHSrwOrtOkK0IjTKH1vYCghg9goWvPSEbWTSvK32iGqd1jysN\nNgQ+CZvuW+EfHJ8+XlOkEOsCkg3YlEe7jZ3L36nwgJiR3LbfO62BHGQnx4qO\nnbYnw5BG+TbEWbyl5ttoZd5rGis4/Cb63G8Lmw//gtz7KfTSuCU+E5BG8syO\nm+QLEWVncjz8s+NOTtPMy4Z/oAK1AzHmnCFsD6flYGqHl2ogNofsS2VP1pew\nZYvSabaH0NcmNmwo4VvRnwJmhMSaXQ9aer6ZZ3MD6ICh9OC4xgy0C+3dRGVT\nvrn5xFnuzmJM2wuzq3FbjRrvkwaUDv25oJeMoDj1q0LdFWuGuEme3ZfF5sZu\n/hiskxaabHColBVaNyPRdzRIK7Jw6TW2wG+A5kas8Uy+QH4IkFyW9HQ4WOtf\n4B91\r\n=tRW5\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0-beta.3_1575183602942_0.26979586213258777" }, "_hasShrinkwrap": false }, "10.0.0": { "name": "got", "version": "10.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^12.12.14", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.9.0", "@typescript-eslint/parser": "^2.9.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.23.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ] }, "gitHead": "abdfee258a8a18a9db0f8711250cc2cb6d5fb179", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.0", "_nodeVersion": "10.17.0", "_npmVersion": "6.13.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-WbswXguxMWIbHOPFN4T/6OV7xGSg8IVThXtvVzsrNUeJSfSF4xgpuQ4WsfqQ8dsEKPqJuCz0UTOlqUsRZIlMwA==", "shasum": "de5794240952e81784982a372d936d0be05998e5", "tarball": "https://registry.npmjs.org/got/-/got-10.0.0.tgz", "fileCount": 47, "unpackedSize": 153454, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd43SGCRA9TVsSAnZWagAAn7EP/i1GEi9fvjDJ57/mhJHJ\n+a517OuDKaqKMYi9GQ9SvpYVN3VuZ18uITNB4q23cJ4vSYikR0tOfvPpNUXW\n2iKKF8CxYU2kPkyp2tOvO5hfPs73Y3h8GCGhmSVfIu2TyZIUjckf1WbWiBDW\nco89pKqK6TIq9HPQXDGPSAFvvS93W3d3N8+eO9TqSwRZWpw7f1LS8Le8M3DL\nlPW9zRa6eYZ8AUB/fJTELYkYULVfuzGoiI3FzUoWAkh2NaPfVws3tmcb10iB\neddXO8U2NpAPOgk/GMi+pkvDbbkOiSLR8951MBOQ6tCh97j54K2dajkVV+Xd\nG+4EK0mtjjKtzFtVbzTwdQwvhVPDgAqkACtaMeaGu2LCOEJ7h7nafPDvk7N1\naj2bzTa5JNImpWjQjP5FDm7ZTnYzf80Au+QBVE+dMbbuTHKVJ9h4OOhfxv6J\nQhW/nNOcGOERRQOq+PuFxG2wpnAWP8r+VYEtUIs43ly0HP+3fo6MRKE9Mlak\nLaUfHQQE+Ra5FXISO6pr75dqs8/WaknIOTufZdDetmPjY5uzaZIFtAhmUk7O\nF9j2hCQsJN9lrRaY1v/M3c5pcJkgWH9d5Ur8pePrVQ3L3CZsp7rBcWfiew4k\nSIx47OX1WXOb4mpSWmiRCRZlo0uZkKxjx0pMzJHiXyzPQb0XUQG+Fm7VDbYV\nv1wH\r\n=sPJw\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.0_1575187589734_0.5423738990459677" }, "_hasShrinkwrap": false }, "10.0.1": { "name": "got", "version": "10.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^12.12.14", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.9.0", "@typescript-eslint/parser": "^2.9.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.23.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ] }, "gitHead": "8ab83888bd16d0942a82b2cc591afd341cd316e5", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.1", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-lXOWDVJczIX4uOZG5CRSlIzNAGqft40Kj7/rLSccH8y9GKs1a86rO/+23CC4kF8OdHFazapX3mI6gZPqDrIAfA==", "shasum": "0c9eb81a7e5e3baca2dddd611a4bd7c054e31fdd", "tarball": "https://registry.npmjs.org/got/-/got-10.0.1.tgz", "fileCount": 47, "unpackedSize": 151359, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4+86CRA9TVsSAnZWagAABcIP/jQVDUr1FTPSxaMGL13C\nC+RAaK1vQDnwnVoDe8rNGzQyst07AlASP5zyz/cQc/ac8dy+Xx4WRCBgDhb+\nSen6PvO6gitJxPNcVqZeyTWR55PDSqjgbUC0IoOi7oE/VGRFRIGqZr2hDYIA\ntaL89CIOwoIFrt64owzGCHqkvCMxApNnmGQeyJCW6u7UfEl82L6jCTNUFpxy\nTds80sqDAcGAzLYpESLrHgV89UrO6KBhlZh/YMNVss8GawZGrqCuWb/odmud\n73MTa5hdHP72Y04R4x7PVwRtyK26tM7I0cLIoftalzskeQBgxvDWSCWceXOl\npZZ0shmWbRKdAV5lpIxW54KQ5QT2hsBKxoqb5vCcEhZIHKrBX+XUHVwBlclm\nFtgXI/NM97bb6SbHnseRmcWGIr6CeL0Z7+GfOBQUR/Dn9MrFvy1+LN2UHIZd\nVzEBI1AdOvwbms2EKrtjuxBujQ9lmV3LjqBvtW0YrL10W7KlZTxujnfzrJpo\nnfJehFCI6B2GpE7yyHffH4ljkQ+VXPyn+MD5g85bMiE14COIMae328uxX8gd\n9Hd/Qg3kBExrT8GlVdO+Hv7+fzLPPRgcjU4H3tll192T7MlHyXwQuiEZ+apH\nQ9lFEfFIOjMD1LAMhkaBtuk6bP8680y+CdJMFzuKa8rlA3cTecbeJZroMX+t\nWABc\r\n=D8wu\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.1_1575219001900_0.31044601559159" }, "_hasShrinkwrap": false }, "10.0.2": { "name": "got", "version": "10.0.2", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.1", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^12.12.14", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "2.10.0", "@typescript-eslint/parser": "2.10.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.23.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off" } }, "gitHead": "a755a1614938b52a87321ad69f183aa76d57153b", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.2", "_nodeVersion": "10.17.0", "_npmVersion": "6.13.2", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-ojjUBCvrhkbEiQRAI8OIcSsCpM+EiVEX5xaoUAS6wFGlnoNa3KnDTiavRfAWXO9x29rA7sl2igh3E7z8glq9Gg==", "shasum": "f03040d966e0ff8da516d92e8689a3f9def44a3c", "tarball": "https://registry.npmjs.org/got/-/got-10.0.2.tgz", "fileCount": 47, "unpackedSize": 152116, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6/RSCRA9TVsSAnZWagAAQJMP/AsGQUO6mjmpKZhNuy8J\n4EBglY3M299ukUd5SLiv/oKOWr9TByP88AIZukK/ZfCkHL5aS0XavlgOCPoq\nWNlS9sSyaR6+JldQ2F5YzE80oR9KTSdBTmwsWqV4s63MEQsVYjInoLPeDuBK\nxoBfSuQ4ME5f/0ZRJWRScU+fB2nNkFq3Ouz65FlXN7XRc7+xYW0IDXK6inEw\nN5NWpFbk9fYJyVPORDsclcvgSgPUb3tixaCcr8e644hH+R+eb2LI12rERoT7\nHR1onA0nBXQJ9bvKN3DZlzYc8OLEs5QdXcFPUjh6ff9dXMlEeNiZErN+fQw8\nIDL9mJzAwVepZ81PnRjnAOFJnsZwa5VIu6gYGrBZ09ixoUCOmOyT4Yb6NDNd\n7qANpFel7jtWOIyQnmpsz8OkBdYey/NWB+GrFI1Pd+VWVMJfRcxmeBVNZ66W\nl4HW2zT3Wo1NqHjwc0/Qiyg+FbEnJMILbOwvJ1YPv93ofhFFKx46adeXoIj6\n15iRmbbyz6O1OBMxsWaNe0MakONjHy7S/bHFFaV9GPfVO85jFo8qfxl5AcMN\nuQL/+XVYkQrGF3z1LJpQNpab253aH11xc6jDEfiz2Wnky4L4/zvWCdWEyzKj\nPQGcjYBD31rPnF4+cIue3NyQb1KuAdgbZNKLeaqEZ00f11MV0RT/MjlnuhCM\nHl6P\r\n=az9B\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.2_1575744593506_0.8319115249298918" }, "_hasShrinkwrap": false }, "10.0.3": { "name": "got", "version": "10.0.3", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.1", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^12.12.14", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "2.10.0", "@typescript-eslint/parser": "2.10.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.23.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off" } }, "gitHead": "8d533febf7fef4fddb85294a6a59a8bc136259e5", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.3", "_nodeVersion": "13.0.1", "_npmVersion": "6.13.2", "dist": { "integrity": "sha512-5QBO/EhIq3nbt2madWsez9aTPc0k1oWBzXipfqLdb6JmnrWNxcHEvnxuWErec/PE67Jy/QAgacq6XzGbyzXCzg==", "shasum": "0bd93429fd2891de0026ed731a16143e6193e7ac", "tarball": "https://registry.npmjs.org/got/-/got-10.0.3.tgz", "fileCount": 47, "unpackedSize": 153169, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7paOCRA9TVsSAnZWagAAxt4P/R2KwVd8hNFIp771M+ET\nquTEiAHbvuWLQKhOomZZZdDPF34AObp3fjPWmEIaOCFkafQfIA0M2dXJagSU\nDBh8qsN206Ka1sYiMflSLP55dBG4cElwU7htBxKX+iS2qZ03tXaX4iLyjBuj\nUJK1uSm5cBNhgmn7U8QuB3zNQ2g0P3LCXHAYF7nnGJts1vnvfvUPsqyGWMOm\ncqqci5g3/Qzt2nNSLsrmHl4LjJ6KaCG7KcJYV+qmu1SBYcf0uTDHO+gy1yo7\n8aEoRROGfrZ1Em14DYUu9vX/4mjZDpZupXfrwf/py0fpruT7/Jyf8n7a/Bls\nx/moij4i3kfkqAeMqWDMWC5Ijywi+biSQkm1qZItCf1UCkVln7McRMPYpxxG\n/w26jV+hMaOTlqq+HIzm88cUaLMV/rDsXqYoM51WnV5KDfUXiw+TAC5bC3KV\nfn0NgX1x5JmVYCVHoMjPmt0FxO2u2DKts1RJS7arWdF3SyMzL+cJzKV0hMZ2\nPxPtrmHcL7Xf2GjVonRlgotJ1o2O78MrPJ2Co5pTZORyh4DXjiWWzrNoUbzy\nK5ab1YUhQSPRA3YgMYweeRRclfxInW4raTvIJkrQkWf0tQBVrnWgkGm3iRTd\n/EpHc4GKGa18G+YrTjnMOxiyHcZv3A5bMT3Tf8DTzf2OkZB5QzO1oBs/20b6\n6wAa\r\n=CsEI\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.3_1575917197447_0.6915428770510712" }, "_hasShrinkwrap": false }, "10.0.4": { "name": "got", "version": "10.0.4", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.1", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^12.12.14", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "2.10.0", "@typescript-eslint/parser": "2.10.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.23.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "d083a5954f2b8db414549fac98fa74856ee286a7", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.0.4", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-yMaRLGZJ7iINsDcZ8hso+v44IXVOejz7xrqEabSvUewdHS3zOf57IqU3sWIBYwHlekSrk+CC2PCeLzabOBxnVA==", "shasum": "d3a5a6cafd2f6c342d562513cc2d2d7b6afdcbb4", "tarball": "https://registry.npmjs.org/got/-/got-10.0.4.tgz", "fileCount": 47, "unpackedSize": 152250, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8jzXCRA9TVsSAnZWagAAHtAQAKElBnEw5B7OACPC0LEg\nWh291L5Ztu9DmMpZkKEW0sqTwbh4i/hQW6fbr2hgTrB/TcKjN+Zn4oCu2nc8\nBfx/PbypSjZaJ+Fiuc+voL4S04KPq0Z0Acbino3OKbmMab3xD6E4xfs/Dv8A\nUtl2+KMmj0mrqIu1kmNx66U7MDoV78DC1LczvnIElaVeWcKQRthRLBEt/bQZ\nczYVSc+2GrBknTmi4WX3rU/LO2nu/mgFYFO7QBO4+mPXk+uOPNpKAeBUtaEM\n5KEZDkStWQVn7YFZ/CeO3FuqRVLtvR6t4yUQ+IivaJiorC2UghMePqMvvTJS\n+kQ+ucz+Uk2lQJjb6b5WJvIbwDD3GPepvEJ1HesssLYDvQvO5VTwv6jQ0IIv\nAWnqJJDA1qYfwswabU5xynu/rsUIrhbjdIYCWz132I/YdnksN5/H4l/74H5q\nmv+gRkCf9RZFOUNcd/Kc6JTIMnZxJB/x8n0NdDBzkpCG55R/rPjaaQTFjHLT\nHle8cCTrDRQwdk1Yu/qLXnGCGR0shB9+I3nilXfYtHgEtQJHy3u+vKLA4t33\nd3AOvjCRXJiFnIJ7TaVXtmYNFfpkPw+UiEec/GbyE5YRejxDC2g3onIEtkVb\nOgTOlSDCjXswgv9Oxv+g67HmZfuaWg1nhDi8UsAz/tZ1flQ4dBzZnlp+eY9Y\nTWGs\r\n=p2JJ\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.0.4_1576156374216_0.875709961283806" }, "_hasShrinkwrap": false }, "10.1.0": { "name": "got", "version": "10.1.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.1", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.6.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^12.12.14", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "2.10.0", "@typescript-eslint/parser": "2.10.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.23.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^14.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^7.5.0", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "db5165217e2b92400de558dafa81d57b9fa17e55", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.1.0", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-7tFtiOkTc47O9PyQ8or0urxjs8XF+4K7CfZMRM9RiZAm4kbllG3D8tGlA04PloiFDA2e178mS8yiLSZut1C6Zw==", "shasum": "f8437664bdc95a80638db9e101fa81d6e730b67a", "tarball": "https://registry.npmjs.org/got/-/got-10.1.0.tgz", "fileCount": 47, "unpackedSize": 152116, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+21pCRA9TVsSAnZWagAA/t4P/AkbJ2GtbG7JYHPc0+OJ\n+ZNEwrN8Kykf9//pju0qJSgOPwcYb+OJRu9NBk/kSPEs20fgmH5rsgAqjuD4\nspGYgMfuA1JO6mgma6N6i13XP5g5OxKu2ZvIZIfDF4kgE8cmh0sFWKGIzWhw\nQmJTD5XC/+05yC6TRLtZE7OcbFYA8Ech7rcOYfpbtYW1kkmGi668ZnVek1Hm\nFtFgFbotHEPB6mGI/7r5fOmkEIwshMg0Pwm/HAFZqSzhxFzC9jbx0MR4+Mar\nAWCWaUV8dD45qg/ycoaFuVeUKCsEfdEE46KuGgryaqXsAyyxn6u86N4JJJ3X\neZ0Wvsv3BvEFBJMmXgPpykchlxHLUTNgHi9+xkL+610GbonFSUtLLP4BQVcL\n3sVSCh6p9nFnqVKvjm98cdIDMay5pfm/4azNkRRFBHGyyua/Psn8ZP043GnP\npDrVUHnQR4u9Ejp6dYrVULyRKANjPx4T6aME8Gz2Rw96qHGzNx001OJ5DTNK\nzYkeoa5Sil8fIsnbB9QxCbN0f1PtpXCBmirKO3QOCa7BIy39yKCONNMtwLMB\n+5EEGm15TXJ7IyMBbH1OrA0n7zGsDUR0DhZi7yy22FVG+POfjw5h00zEcnDs\nc0xYrcGpXAIXbGu8saYPXk/8z6I9ZKBUeBn4WpQIhi/nh4h15Q//IB3JIser\nrACm\r\n=rnYU\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.1.0_1576758632769_0.8372193347609942" }, "_hasShrinkwrap": false }, "10.2.0": { "name": "got", "version": "10.2.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^3.1.1", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^13.1.0", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.13.0", "@typescript-eslint/parser": "^2.13.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^8.0.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "^3.7.2", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "8f9847c531f6e47ef4140df1c32fc8837381b5bb", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.2.0", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-X14b2uo+20s+HrJz9qyUmGNdIyYbRUZNE05fUz0aS4eXp1l82oUvsvFcMjwY3D25zgWwittqEQWEia0XqSlzzw==", "shasum": "c7d54e5b41881e5c64952a4013986af12dbab47f", "tarball": "https://registry.npmjs.org/got/-/got-10.2.0.tgz", "fileCount": 47, "unpackedSize": 151072, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeASwxCRA9TVsSAnZWagAAlesP/AknQBqIuZztzjuoHvrG\nKsvEwSrGRkC6D/3WhMoD70k+qYDHtG0nrpOIXy+O/sDN/4Csf+c5dFPrQbZX\n2kcDVY8RvAvtMix2g04nVLg5GaDe8Og4s0ay0GnnBSOnjaE6y9nxWpzughhR\nXbEC9HCQ6mpXgbSCUtw1cQyBWQGAOg1073g72n5rdC/Yjy/G4DwcQdOQsvE/\n8gBjUnVZ1NpUt6y0eg+SQ+VzpBCDtKTdazCoZV/WzXFMXI5/D+cdLDcJfrOw\nDNupFN2f8AHfcPgpN/kG69jMv7sWd5AUjoLJeWys/yOZ6hbv6kkcHqpz8FSd\nwCLYzdts0hadn047oIE8ea9tnMBY9vhaBmnTrVFhpvGYxSew9ENUjY8oio+g\ntww3ZK+gWKn6MqCzhbzcobwWP/gwLIlBvMpKddlUAzRt8kbBZKe9b/prLlTl\nBxBXjsURyR/fk0+x5Kd+9gcwVXMmS8ViC3DG/vCLQNOqsVreMFOcp2M0oAgu\nSxD+8QeallqfbmgmpkFRwwa5jrvtzU1oshp2YmqvurGbNi9wXhDpNqKLz4rE\n6dqEdRfcy8yZVawtLRYFaE+c/sbpjp/pTy1e8V0GiP/9NAVmfhReMbzJDinV\nsgBOLTQl5KskUjcqRzrBbtbjkVGNzE22kDUPu6QIH/54ub8YEfaWyx73ZWY2\nN5XE\r\n=AVop\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.2.0_1577135153285_0.061861071430093784" }, "_hasShrinkwrap": false }, "10.2.1": { "name": "got", "version": "10.2.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "2.14.0", "@typescript-eslint/parser": "2.14.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^8.0.2", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "3.7.4", "xo": "^0.25.3" }, "types": "dist/source", "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "7c22b19764585d391e3d5761e95c186863326fd9", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.2.1", "_nodeVersion": "10.17.0", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-IQX//hGm5oLjUj743GJG30U2RzjS58ZlhQQjwQXjsyR50TTD+etVMHlMEbNxYJGWVFa0ASgDVhRkAvQPe6M9iQ==", "shasum": "7087485482fb31aa6e6399fd493dd04639da117b", "tarball": "https://registry.npmjs.org/got/-/got-10.2.1.tgz", "fileCount": 47, "unpackedSize": 152961, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDOV7CRA9TVsSAnZWagAAtk8P/1rsDRx8VFNA+i2zbk/i\n9THbIESPy9PjEb510Z+ou+w42vmgQEpE4hFfOcRXvo7Ft6dUAoa1+520MXVF\nsZ0WbtGNRUvhvPK1MqtqvLZOAAMG2NjkkAuMf/moPz//IWomrzkL5sR3Hy15\nSVwi+8d9JcsaPV9wuIyH0NaiIzyuGXA2znagEhvPhwRXuPTomDSgxq8VBuwk\nTVtRFJSMeUU/2z4XBVT4pNxSIdcorJ6c70HoxRd7EHhO1okYizTttQkOUeqa\nvvIXmA2G0XaRqbLwR14+kvFZlomrCO+7Xez30nV93GpmvreiGAdgvI/8EyPb\nNYdHzjFiAsNVbt4r38E8bIxvFNdRrTzVSSk6bOdYnMrwtFPd0GSiWN8H4o/x\noQBgA+RU86/7nuXY+WT2P4NOy7o34WyOF0GdZX76iZ4hN3wbWJzR5ovBGfGx\nB3OknDn7sNcBTujMDUX3YKov4dyqT/VFcOg6RfqkwvxQHYO/Ejy/MDmSTyjv\nBWrQt7ampOSIuckxM1iCvdtvkn3V22FkcSdF74+PXzgpX2a9c715cCIKT2ao\nMr1Z1HNdcVSxkR5i3A697Y8Gl9DJWuKnt89xOjdHg6+D+3JT+7cmjrPBDufO\nMIm9G4ruOkkHRbblZT2FTjqgjgwi+ES96+H9zzmST44etUVlKHQdCCgc5Eml\n58j3\r\n=hyo+\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.2.1_1577903482966_0.19607702609016409" }, "_hasShrinkwrap": false }, "10.2.2": { "name": "got", "version": "10.2.2", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.0", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.8.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "^13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "2.14.0", "@typescript-eslint/parser": "2.14.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^8.0.2", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "3.7.4", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "b288927c18537acac8b0d95833095a9bde1a5280", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.2.2", "_nodeVersion": "10.17.0", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-QibZN13xHH/mc7H5uuU2xq28xxs8moEPsJrW9AQQX0jAV4DkGdllHDVE9cxw1nntIPFk8xzzOrgJZBg194AWrg==", "shasum": "3cd61dc07db0533c6190a2889b78e0c39c0f52d6", "tarball": "https://registry.npmjs.org/got/-/got-10.2.2.tgz", "fileCount": 47, "unpackedSize": 153575, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGetoCRA9TVsSAnZWagAAJp4P/AxtNgYHMVuJnlRUYKhy\nFqLuw+/+fPKWOHd/egxzh2befbQM3UjX+AL7v4hxDW8c4z6VZWlzqvnJIqJz\n5goJtAwY5LDDjh9b4/3sx7rDO2cbnhSLgCTxxRa4YKgjmKFbZ/uxvHCrWsGJ\nMtsY3hR+GlPnD8UzCuTUXjJovlVg/UwegtYpqRwsdGs3PzqWvd1enjpscIyo\nX04WcsMC9/0OgLLr7oX1JlhjTmFizsfRVNKF3wuPgVe2jqAQz26cwMOyOEiG\nxXtn2awFkrscU8q6oT62x9napL4hzrx47Qv2WoVLN3GcIIoU+eYptOOrly53\ngTx1lCTjLsACoj/z4/yVo0BAroYUjiCwCLmnVBfnWglbW5JuGI/8hQJkFJQW\niVuzhZ7kYGcC6pHRkGkK2vkpn3lWq5gGP+hsRSymU4jiypHlF9+uuAM80JtT\nArekzoK49RJvspncnkwuLWLnAz7iVVAfRwr/3B+NQVvF5ScddSaPKJjrgt8h\nGuwZPOYgwqaQ+TFQUYL2uiC8YF/UtROUUmAIUNDQEP77lFo5XBeV/ZzLN6jh\ntPJskbD/yqJvS8c70KYeJAhaeS9OlCHDSf5GZxj3jnQVuofJUaSlDIXe1nQS\nQkqu2LOgDAWXFw00pQCx2kUarpY9f9GF9rj5Ddz/hunevP/biVqgwE+oPQxj\n48FA\r\n=BRyK\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.2.2_1578756968085_0.21316951816561036" }, "_hasShrinkwrap": false }, "10.3.0": { "name": "got", "version": "10.3.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^0.2.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^2.4.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "ts-node": "^8.5.2", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "babel": false, "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "689c660441569faad4bf6a98dd75cbd187a78185", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.3.0", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-p7TGnZLgAMTDOwXQnNAF7nTVWmd9YWTvF+64JFKnyskLY0HXUcIyzSz2kfjHIyd8ysA8gr5EXNtOgloiY0Cjrw==", "shasum": "c67b26b48425d1609dda9004c4013cd379fd15d5", "tarball": "https://registry.npmjs.org/got/-/got-10.3.0.tgz", "fileCount": 47, "unpackedSize": 154957, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKwT/CRA9TVsSAnZWagAAP3EQAJBuZvbRq2uM0jwor0Oy\nC0RuWrhgTmEoGmwxUqlSxK3Q3EqxpzcNPLqjO+zRDqnOoDHKsCuk0itL9uaO\nf4IwT/WoI6Dnb4Nq5fUN5P2BtYsCHfTW5aAJ+cYcRFdUDsBksbKFXjzy5KB/\njLoOHd56yL4gl9trJQ9QJ7IvSL7cz6En75efCtwS8YoOQ1EmUv1PbtdyCnGo\nArGOTFtv3OYWwZnNh4ZyiAKXGRi6laLYoBWr95WF0iQuoKGeAly21N/WlAHK\nkfC/11AJT0cvHK8H/6FVAknd0w/HGCsJccgVOmOGaHRZjK5Ig2B3KRCZ76GI\n2y/NZ8zu5iH+M0dBLCeEiAQoYLis3/L54Nx+PjRw+w8IvXxQ8UusrVLSOyCs\n8sVO1OpZbWV9KGgenIchiSYNHiucaEL80KcRkTtRcxW0fVEYl7Xc/9t9keZM\nNhERIUAuzVf9VA6VNpnCfp+hX0kUT2t9/+pQ6X/+7tvuxRjzhtsWtGubdnsa\nyIWVOBpN9ojf04eP0SPTxDhGhgEdvDj4ad/vKqPtisigxIl7AdX/Y+5Td7jD\nvY0G1ZrPt1AABitXOlsu+dITBSp9yTfqscv7fycWScE8fmXbsmGGUUD465eb\nMLSg74jSdsFAxWJQD+/Gl5LMsiMndH2zEoedii2MupJlYTR3tEHweC0wv5RW\nvr8A\r\n=pD4X\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.3.0_1579877630228_0.8290251378485691" }, "_hasShrinkwrap": false }, "10.4.0": { "name": "got", "version": "10.4.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^1.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@ava/typescript": "^1.0.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^3.1.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "concurrency": 4, "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "27cdd982058ed77d6d81b58059217a8a7f2d2471", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.4.0", "_nodeVersion": "13.1.0", "_npmVersion": "6.13.7", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-yHxq0LgdLFmJcrl27wEOIvZaHbgtn1DYpYUUX/kovLZoQ8q+QwJH+i9zkldDxGUawu1cUsgNMp8Xxm5yKT2UyQ==", "shasum": "2bd869d3d965716a43bee89d6fc3d16b565109c4", "tarball": "https://registry.npmjs.org/got/-/got-10.4.0.tgz", "fileCount": 47, "unpackedSize": 154989, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeM9kmCRA9TVsSAnZWagAAu9AP/iBG6+IWz2AXNdgQxhdz\nOONajzUT0uZqbkYCZnmHarwsAzP5gFiGjqFAEm4Ho1IBLLffWLHUrId7EzKX\nHnIQbyHhSdd7IyJWFn4cPpOufVq8kEiXGTyxzq0RpN/T9ia6mQUOqknmCFVe\n6EqQvVH9KDq8M7X8QPz9ACYTSVUXfrD9w14xkqIWwgqzw1v9+KchzukX+Tse\nMrPwN9TtbYM2fBb+FnlbilmdKCHAaYl7A+mAcNrgGwx/edUicYBmX+xSu0Dp\nJdhxwbLS5EDH/M/Yk7JHcBNsHIpxNnEbrwQBf1pAmLn943GuVRy/s39FRJBg\nu2PprdnVFv9fCuPGuUoioq3UnrNHkr9RV9vpa/a0y1xl3efd6eHuZ7F6bGs9\nnmlIShyiuOYoNs0IQeC+KTnTfLqj4XMyzWUJLyeHIXCPe9PgMbRLDHjT+Arx\nZL0kbT+CBCKxZgMYED0WIwsu40qj06OSeOu9Tm7I8HjLQVxCCvKUrboEYMtu\neosYF4mxr2Ob6Q28lXhUnrpvboovS8Nudo8aDgxWMS7Xml1YC67nEg6gb8vR\nrOvPOoIAZc2pda/OVHpLE40G33jIko9aCIqlsrdEP/i2LPVVq9FpH7YtqkVC\nIcZvnUYcEhgIY7FgkgHywEieTYT1T66WjiE81ahOcYeA0tUe6MPuB7pOSN5v\n6YzQ\r\n=M15D\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.4.0_1580456229787_0.8194076863984698" }, "_hasShrinkwrap": false }, "10.5.0": { "name": "got", "version": "10.5.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^3.2.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "b4a540218efa09292738f63a84b7ed2b63a81175", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.0", "_nodeVersion": "10.18.1", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-khBPRcs/TspRdC7O7bEJdlIaEHhzhKr5kosYrDbKoLto+2goepOodis6JsVGBAIHo7ZNbarflf+/kH4ySJFrsA==", "shasum": "8335299ca0b69b8564971837a455c87ace4779a4", "tarball": "https://registry.npmjs.org/got/-/got-10.5.0.tgz", "fileCount": 47, "unpackedSize": 162125, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePHITCRA9TVsSAnZWagAAygcP/jf2vDJw3SR6UuiwCAmo\n+6zM6lrSUVmpveE7qcZRueNiYy16Pr1i0wFxPUJwuKORkn6MyojalucBqUh7\nAej+brpccpYCPMAOqMtG4ajJRTsfrNyTxM17Weuh0Py+Lkgw4BAn1lpu0mqi\n9m1CYEybBoVGy71J0NyTSDtQAzrBUPRJOdkSEeB7UXobR+KakfWSJI+7QLk5\nrxL+3c4/WCfV0wSrUArKm4sPnNz5jl3ZnAvB8V5duizniNuGWGu1rDp4tAfP\nr7eFXABISRiUiWcDuhXfAs29OZCOSeN7BUQfNuBFNhW6Uhnq6W+SxApOpO3v\n1bJtGoOqkKYOfx6aWOJi1JT3E+i7MrL39lPs4RxHgh31MMXfmIe2t1wyuT5w\nB3F90zRyeRuYh3v0kPB4Nx0XePFH+ayrFukLi4P21r1GIokul2iLgglFl8LF\npqE5/53+MBDC/WMxobNrzU7cj6B/ZckoqfKLjlBvaHnbIDZcGvMlG4wgUTGo\nB6DyuGz0b+vQ9Yvl1uRj1Mxl5UbG/avO6N+qIPogVPWbSWnYd5Elpa54Cp2x\nEpZEVWzaDaCLhKaU2fuUsosu6r2fF7pKU1nCrCj2ikGlJQ0t3iiITOjqmlEj\nPpXvXDO3Ig3r6M42cwWHDXqRfUHHeQtA/wpa9SmDKWVI4yXMOG5z2xuBi/Ub\nFTDG\r\n=dZhW\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.0_1581019666524_0.04266631567323764" }, "_hasShrinkwrap": false }, "10.5.1": { "name": "got", "version": "10.5.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^3.2.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "p-event": "^4.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "78fb85b01fd106f4fe0295f5b136d722b022be58", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.1", "_nodeVersion": "10.18.1", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-Bxx/GV/6PKHj2YS4ksj37ku/FtwHypjmuCeFTQpEJSM1D36pVAijb2h0jOFVDh7q0sISoIOQE0OwnYfk5pWYhQ==", "shasum": "8680f6366db65b14ee41717d509dedc4d46f225d", "tarball": "https://registry.npmjs.org/got/-/got-10.5.1.tgz", "fileCount": 47, "unpackedSize": 162333, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePQR4CRA9TVsSAnZWagAA+usP/AoW2wsSL+UNX+WZDllF\nn57f2FeB3g+RnwZpI8WmqGatYQqXc0GqnAJyezlGbeLvyE3aGOj7/sifRMFI\nfyro2W/ZkLBTZEj282QhdmA07/jdKtZN8z0vYU5UOAcgxdKC9+cAzzyIWUrW\nu5bBqemBu0xJ99MBRw3HTpegcaNn1HakrmSY9bNmDEaHi3jOPt7BQHI/jGuC\nzVHqXhPtJrDsIDzkDhy1svcx5LR+vTIAtoi5RIIeYVI8oLM/xOOUlTtaNqyL\nw8PaPfm/iO4PAe1MJEIvIuBNhTGQTA6kAI0ISypSH0pNzfT0dTSaeKs8wpSy\nsPcgBGf5GnBsXj7McrCAW0g2d4gF8rRY6VKX+cI38LoV50/5W627fZe4/a2H\n2e5MMuIvcgaXtGuitbU4J2uVYbJEMf1bVOGUcBtTFGLAE/qTFNQg7SN46Cen\n/MfpLWm0Q4seZeccKhUTU1abHEsCgL0GYEmLtmoFiZ9JjIMx29uxltHmebUY\nwBJMLaHkrFaq+AalR4lkxe30eaSQTsQpS/6XwUHjMivkonz9UdUxcrW+l/bI\nP2HkzJSAzMJNJyDCH+GYgFz7KNMLtadtz8CHdq3oc/zL96kTu33kF3wYsVvX\nLJfsnXc41HKR8LrTN/V9lkYo1WL+z7BREsefrzuD0NPIC4vZCeNagxekNSwX\nFcNw\r\n=0EPv\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.1_1581057144077_0.5933626961289133" }, "_hasShrinkwrap": false }, "10.5.2": { "name": "got", "version": "10.5.2", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^3.2.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "4f8c555747c45ec2ae33aa12e4e945360a8469f0", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.2", "_nodeVersion": "10.18.1", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-uN3A7WzRXLBDm/U1dlrQkyvnkWHk8KkVK8TEP4GohWQrit91MQ0/qAzQqB2ylFkNp5l3oKmWq+SNNxXqk2mYUg==", "shasum": "28a35ed7d6dac64fe58074965d9bb17c941b8fe0", "tarball": "https://registry.npmjs.org/got/-/got-10.5.2.tgz", "fileCount": 47, "unpackedSize": 162333, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePQmkCRA9TVsSAnZWagAAhkgP/iyj7W2+K66QRpfxNi1h\nw2ax1zQUmcOAyeAO0qu6Jz03LmhlNDJdqJrGtceAlPyS9V7nuv2Jr3Glscho\ntB0twZ+IUAAqWpqbUcHzJa/o89eFF/+AVDjQtmHVH1tfiNIk7A79EFSQZuxJ\nfEknnZE3j7ppyYnMt3UrsMEg7z85HraXajGACeajlHqVYieraMbTnvy4gGX4\n8E7aaCZXvSS2CpU7i0rH2cStVNLe9388TtRgQTeikFbDU1hdlHzMOja1d3OZ\nbVo7CGvJKITv5b7sSQ+cpSiUxERPy0XjkgJcPhUZIdB0MLWD+dyzfqNKK9m0\nMTPe6MWIrfJej+Y0a1SW8FUkHltEQkIeuxK7X+Haz50aeUFRIbvTw5w0+AL1\nqITDUk6WMtRwJtysbrgrKjFqLc0qr/6iEYuFUYmzzco05pIq4/2fBac8VyLI\nPy8y1eDiDrXeK2pKOsIqILZUcuqqnvoI8p+HT2AROzDtJT6SaYFUuI79vw+H\n4VcXyPKmrVgEn/A0QV97F/Mp7dBuP4NBpVNNKn5BjAwLBUpo7732FwH2nJTw\nkxFfmJwe6XU3qmTOqA11CiirROxE3eVif3+xmfqcvx5PDIlab7COuXKM8dj/\nHDlP99Nb6Cll8gWYkTDAkDYz2Sx5KkKCHAf8swMA7sxaEVy2Y2zetOrH+aaR\nBS5c\r\n=B3ZI\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.2_1581058467510_0.17375661607303794" }, "_hasShrinkwrap": false }, "10.5.3": { "name": "got", "version": "10.5.3", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^3.2.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "3c6ca29000707dfad1d51edd013748107806404d", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.3", "_nodeVersion": "13.7.0", "_npmVersion": "6.13.6", "dist": { "integrity": "sha512-PmA4BGUTptinJSDMOVz9FmOovKOAZDAEvmIrTX7Qg/kq6t99HP8LXBPbye3iWjAOngZ0cZ2AQpYQZb+ldU0lEA==", "shasum": "41112536ace735166a2c144fc31b96112d555120", "tarball": "https://registry.npmjs.org/got/-/got-10.5.3.tgz", "fileCount": 47, "unpackedSize": 162743, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePt6NCRA9TVsSAnZWagAAxvsP/1IRFYio0fSs+LqmIZJR\nnOElczEGqoqBtGEMKMS5nb1D5jQFogewRPgvERU+wLFroIjMCARbk0Gvm81F\nWQWRoFfVQ3cwavT4g7pkMGEnnywKXnV0AaVMVty0eqWKf8aiarNwabUoYfNV\nZ8zgAu1gTY5lCgM2HTP3q/kmt+4aKP3GTphpmow0rImFF9G3rCrlrCIO3/G8\nbEEqH+dNVc9fykIamGKBOuCwu37Enopf4hHluy4fFTfVjBhpDSLJLvn7rnTq\nIDA6VWImy+9VeLOv/chSpVpPFLJOBrTGBvgFpIIpJR7huRiBEM+879SJoM5B\nlKlT6EzR54mnx5M309hHJ3GNXTaIVpKs3RtolZZ03vwuF48BrJv5EXRcIvPL\nqVRfvNn5c9ae1+wtO1ItRiGwx1UvpPyhO0U/eK90Fg/ften0ACvPFDSqbEzW\n4gwWnDBctbZMp25RGQfgSeRAsym9zbpmgtT39y7q/sMhr9LsfYKsndqjJuHG\nDC1pTwjDENB+Eqfe+FJEm17HGo/qZXS+trI3B0oJOz1Lgp6QrnjJ39MBL0nN\nVmipnGC7LiC98AJKvL3hDW75iFZmGDQYU9xsg93jaoN/U7uYTHZ7RNYKfu+X\nDU47P8AsHZHw4piiHQ+dSXU1IfQVYmXUKJ9OMQ78cn6yVbmK0Mdspj3zkbgv\nX/tg\r\n=cPdt\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.3_1581178508406_0.584507429728429" }, "_hasShrinkwrap": false }, "10.5.4": { "name": "got", "version": "10.5.4", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^3.2.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "f9a719c1b1406afa586eec6bb498ad8361050305", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.4", "_nodeVersion": "13.7.0", "_npmVersion": "6.13.6", "dist": { "integrity": "sha512-DiyqjDt0yvN3HoGALtOHBGkl6cEZX24DgSm51eDgUk0JvVQF4oqhjDbFnLm81G/pOEl1sn7W0V5tDWkBfBYf+A==", "shasum": "1cf7bee3436a80be48a314c197d22df3f7dee7e0", "tarball": "https://registry.npmjs.org/got/-/got-10.5.4.tgz", "fileCount": 47, "unpackedSize": 162744, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePvTgCRA9TVsSAnZWagAAwT0P/0KSvNwXM9InNMbq8LsE\nf6u7zShF8sXXGVIVuYWHgbnCNq6p27dsn5QHJsB0W8hPErSs1PG+IJSCzwhd\nh2lxPT2EERy3Q5fmVnGH/SB4b+GCU57Td4qPcYw7jGLjApzoWTyN4ojdCKEA\n6Fnblc0E0nd/zJpkqivsdqWONj9nefPNb7WrsLi5F74RkcbC1Y7vAilcMnNE\nwm6v7mMVrzkGqdLSYSktMohTX2SROBPfWPhZMm1MdewUHmpkUSZeWqPY2gk+\nxLLHJW3bzUJPDvolc4S9w1b1wZN0IsxDpgfuEdNbOiBZd0vLh6j9jjiMoKks\nH5yfTHSMZusYxGkDULD69NtBuelDAfednST8/xmuIki4pTFUcvht4UDipGRb\n3faYuYVR52T0EfT4y75ec8hpLrBtf/rfrNCCpT4fsOjKPN5+zSdw1nolEfiK\ng4/z+lhJhGFAWJZTH/S3FYqbXq884Gy0ih/+yPp4G4CsFQKR99BeOfeQz0FU\nDIw+pJHG6tOtJIbFRWI43P/CQS3JliAUBaURlVh9wZ/quxd384ug0YCAs5jB\n4wUVyLLoCwgw6mQx7QX3utdRH6b5mYN7N14L+Gm108wsXIkNMhjnw1xsV5h/\nWwkKbcjRzQg9PuUAcxFzx6s/OczsBon3OnWrwEQuibkW93Xp/y7rxJVJgRF/\n3ZH3\r\n=yNTO\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.4_1581184223718_0.5394783796641827" }, "_hasShrinkwrap": false }, "10.5.5": { "name": "got", "version": "10.5.5", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^1.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.9.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", "ava": "^3.2.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.24.1", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^5.1.1", "nock": "^11.3.4", "np": "^5.1.3", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.3.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.25.3" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "e450fa044efa96ac539b64dcb80f5a076c6592a2", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.5", "_nodeVersion": "13.7.0", "_npmVersion": "6.13.6", "dist": { "integrity": "sha512-B13HHkCkTA7KxyxTrFoZfrurBX1fZxjMTKpmIfoVzh0Xfs9aZV7xEfI6EKuERQOIPbomh5LE4xDkfK6o2VXksw==", "shasum": "9ab2702c2a6b354ff95585144546d3e304a5022f", "tarball": "https://registry.npmjs.org/got/-/got-10.5.5.tgz", "fileCount": 47, "unpackedSize": 162512, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePxTECRA9TVsSAnZWagAArpcP/1lKJUG2lG/onrPucNQE\nhVNTIhFXPQ1tQ9+SlFy5KlWc2nfMnRWygp0N196dGza+6g0oRS/boxt0EgC9\nrkljNAOL0PivrWyyBM5bhch0BhnhLM9fzrX3soFUs+wWJpY46XICfw29UoBI\nxWs49FaLvmGVKOgjY9i+G9O8kSNzdAKI+7q1oEhjjY9oVA5qJwFclIEZZ8ky\nEI8NLRXclW7YzAIo0dBmCkO0PUALKTo0YkDOs2Cd1QRTg4nX3NBs6sactCTs\nUgxLmHdr0gfLT9qsbNoFWFYnQpNzV6ecsySQQIMvcyEJPNk0ZT4ZvqRzXxdK\ntlQt9GtcwTPBGB6iLGb/vXODGz/p8AeRPY1Dw8nsvxOGEDfKmX3MBLwwoozY\nO7t8doJ3BKkX65YDKm8KG/SwFgd8IclVGf3lo5SiFFkp8tIVetApXXgL7leU\nPT+Nw/LLTL/6RnTeyF7lB/+zI4BnM0c5+mLOu1+GyT8dr5eyRxfTQrywOzAc\n/wHIqzQdLsaMmPR6amANcJ5643ke98wKJfmTrEVh4tFpjjdHBEZtzDIc3bHc\n0sRj3Icdorl91ZHNQIVNKeYHWYjP91TtvDc/YzK79H8b0rPD0nxw0QcGhY4/\nC5bv85ovRxIrLJGIz/DICg9273rbII8OuLmvsn9iJ7OOGvQJ/MZUKgcu+eEv\nVZ+o\r\n=UT3H\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.5_1581192388115_0.5842748309483687" }, "_hasShrinkwrap": false }, "10.5.6": { "name": "got", "version": "10.5.6", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^2.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.10.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.19.2", "@typescript-eslint/parser": "^2.19.2", "ava": "^3.3.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.26.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^6.0.0", "nock": "^11.8.2", "np": "^6.0.0", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.4.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.26.0" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "68b0d80ffdd71f4654ac58328318933fa19a0f43", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.6", "_nodeVersion": "13.7.0", "_npmVersion": "6.13.6", "dist": { "integrity": "sha512-I6rsJJe98gZvmOpqtfU5dhqEjxY6gXrdAq0YfRUM1slGvJeJMlglWLACCwiUjZNZGvKUe4mAbTakRV4jPXO/bw==", "shasum": "fa9cbec9563ad27cff6008e8d48be04aa7788463", "tarball": "https://registry.npmjs.org/got/-/got-10.5.6.tgz", "fileCount": 47, "unpackedSize": 163035, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSZ3bCRA9TVsSAnZWagAA02UQAJXE6AAKlLWMgFKdNIxR\noHgF0KLi6uWYeEAYy1VtIJgqS46JOme3anFnFVEkgCUEMRBSJFw2SFfCdEas\n//dwqR2/mwzRHChSfsDicm7E6Dm23IBGBf6cLNrEARXiRfl8lXzK0MngRx6E\nNk4xU6QAFejW1TtN27HkU9ooOW1YCc3Ec0UFGjp45lI5SP3vDMnpzqyBIhXY\n5vc2cTbGbFvbRI+LxooHAVMOjpDWM6ooEISlelGPQjKFKdjsgiyS8xPhREoK\ngeIMNTxGVhzO2q6twcjQqlOSXoaaH3UuMZLUSk93kiGdnzdPKTPJrx6l8/4t\nanZwCSdxBcel27gMyzaWfztDkjo7j2geZqIIG48lM6IJhic3A+KEUhTyd4Gr\nU+YFjpqskv4OCROTOqNzJyUqoiOzKD5TjdeUr4m3kHsZV98omVioUcy3E1IO\nOASmrc9avPNbsyP/pKhy3p631fm1QSUk5Qpp01q9lmahS6TC0vnjM7H9HrDP\n06KbBg94iDkqcBEQohzllhpqGOFggGjV8A57coPZZDvBtBXjcT20ACpBJvLE\njMCVrF6FdK7qeQYoQ4Y7d/bC4in1zoTlZ1Xqi1Syq0GcQ8oPRliOPD/spQgk\nCETxQnq8x2JoMt/ad8vkIcms9nS1BiueLqz+IHYs2rFyX77rohymnB9hETll\nnCLn\r\n=QfJj\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.6_1581882843229_0.6537364652090472" }, "_hasShrinkwrap": false }, "10.5.7": { "name": "got", "version": "10.5.7", "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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^2.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.0.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.10.0" }, "devDependencies": { "@ava/typescript": "^1.1.0", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.19.2", "@typescript-eslint/parser": "^2.19.2", "ava": "^3.3.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.26.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^6.0.0", "nock": "^11.8.2", "np": "^6.0.0", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.4.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.26.0" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "acefaa4c2a0cb3c33b3f952be29ac0a9cb316e87", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.5.7", "_nodeVersion": "13.7.0", "_npmVersion": "6.13.6", "dist": { "integrity": "sha512-ZDu27XJw4XuOM3wOjOfHPLQiyE0h/+CqX5DkfptEJD2bnn2idqua6uQl9HUGwgQE3Ogv8uOvE2W8jUTrTVrRbw==", "shasum": "bd0ef35404345d31f1d6793ed8133896ea911a19", "tarball": "https://registry.npmjs.org/got/-/got-10.5.7.tgz", "fileCount": 47, "unpackedSize": 163538, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSaGKCRA9TVsSAnZWagAAbUQP/jRH1WtCm7+5HAR44cqT\nlH8BrgBDoJkWREpII3sjhnmWhwfbWlQhFY8HZhwejk+2qTv93fNNQHM4oryC\neQiptFlZSmKULyhJT0Y/EHmFn7DNTSzN49hxi9tv9Tgrt4NxshGNn3xvxGDt\nz0rWh5zx+vSyooqkFgVJ47LF1mVo5MBYpFrfAbghPcPp5sn9ag9qzOzqN4oX\nm9n1aqcnQchcawU3usfi3uKEermzS9sA7w5ViK3EplZ1ECDcI5jTKWxvNIfe\ndlbYTkZegq4w5C4Liv54VCITUpqqxKglWk81luFe9eJIcRAhLiOvjq8Ib6Jn\n0WmjHZJWcC64YOmb/K7WZxWYA4cJp2AUJDdVs4p6bfXy8a68MJpukm78cf3Z\nxhoDpplUvuVq+Oc4kcf8NAMmluDcpGzfTXNg5HxasJGvQRqKODFppDkuDZte\n2ohp6qp8a8sPRlHzHxiRykBvKRSfW2bo7QBt6ntSe27SOQzgOj3+QLCNZlSb\nk5Y+cM6AN2cjzoSkjUnNcpOBXTY81onMUfSQlgCZDmMWER+0mB1yWMIrXaA1\ncA/vRvK1gn5EX8GuhNcq1+exweuL7+ZiSlK1rgAU6c7aMBeZJNOW4VlO5oby\nejscZGHHcJIuU2YeyxSabiMGtjJK4XzCZAzR3RLQoTvN5YXlU8o0cT88QVfi\nqO/U\r\n=QogD\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.5.7_1581883785826_0.8388540575896586" }, "_hasShrinkwrap": false }, "10.6.0": { "name": "got", "version": "10.6.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^2.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.1.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.10.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.19.2", "@typescript-eslint/parser": "^2.19.2", "ava": "^3.3.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.26.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "np": "^6.0.0", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.4.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.26.0" }, "types": "dist/source", "sideEffects": false, "browser": { "decompress-response": false, "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "33a696694ebb2bd1c995f4800344fdf9b7fa1e86", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.6.0", "_nodeVersion": "10.18.1", "_npmVersion": "6.13.7", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-3LIdJNTdCFbbJc+h/EH0V5lpNpbJ6Bfwykk21lcQvQsEcrzdi/ltCyQehFHLzJ/ka0UMH4Slg0hkYvAZN9qUDg==", "shasum": "ac3876261a4d8e5fc4f81186f79955ce7b0501dc", "tarball": "https://registry.npmjs.org/got/-/got-10.6.0.tgz", "fileCount": 47, "unpackedSize": 164829, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTje8CRA9TVsSAnZWagAAG8EP/3YnSWe+wczh6vStiNFV\njjqjokH+0h8s1Zjt0lEgKXSXifRTkCnSlXYybuRDJYU05Sj4KdinfZirZzS9\nmKIeoQRwwyu8VJ0F4Q5TcDVSoeAtrHTFAwzoi4KuXBKAWFn1VR9YxRI6x7q/\nqMAsHCLKCQshIJkLD3PC3wfHLZaz3gSHvm7iHNQrA8GMUukT/szrqgt24Of/\nJDUP9xC8G2IC8RezSZr9JDDK0iUzdm1qgz7YXlSKedKlTxQExYshq7skaZKG\nNtV1MtfUW5kkrVjS+ZJOjQKKHVw2GMdAUO7FdcISF0r8DMknVnDEVhk5uX30\nGz5bR1hA/NzgADKnJyUcX74J4vDQFc7rA+xrKFtetAH5yRHtTircCFDFSNrv\n29f+BazgmF1auBbX5RnqZIDh0xkd+mAovDLgzeUwIQfYZI0WkzuKLtbPapWm\nhLvkeJMdNggEN50x3yARV/LlDVOGMUpp165ysMXujz/JVNuQ0igSRG7X/eBB\nm9+jSbZ/hfXvaj+rrhsSM9Bu1+zDMXuby1vkMEG13FMIqaSn3OycFbVVe9Mx\nUNh0vOgWCBBZZ2Gsh2QYSr9stVQ9QcZvRmjqLNhg42kFQMUomUgo/iDIwnil\n6mg8LdEElxTyMkIh5QVgk9M5t60fxxSoicEjjc+8cMTPHVKkNBDAzLEIuLdE\no0yC\r\n=PgLV\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.6.0_1582184379597_0.8243294570835618" }, "_hasShrinkwrap": false }, "10.7.0": { "name": "got", "version": "10.7.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", "main": "dist/source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && tsc --noEmit && nyc 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", "electron", "brotli", "requests", "human-friendly", "axios", "superagent" ], "dependencies": { "@sindresorhus/is": "^2.0.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "cacheable-lookup": "^2.0.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "duplexer3": "^0.1.4", "get-stream": "^5.0.0", "lowercase-keys": "^2.0.0", "mimic-response": "^2.1.0", "p-cancelable": "^2.0.0", "p-event": "^4.0.0", "responselike": "^2.0.0", "to-readable-stream": "^2.0.0", "type-fest": "^0.10.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/duplexer3": "^0.1.0", "@types/express": "^4.17.2", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/proxyquire": "^1.3.28", "@types/sinon": "^7.0.13", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.19.2", "@typescript-eslint/parser": "^2.19.2", "ava": "^3.3.0", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.26.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-port": "^5.0.0", "keyv": "^4.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "np": "^6.0.0", "nyc": "^15.0.0", "proxyquire": "^2.0.1", "sinon": "^8.1.1", "slow-stream": "0.0.4", "tempy": "^0.4.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.26.0" }, "types": "dist/source", "sideEffects": false, "browser": { "electron": false }, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off" } }, "gitHead": "5c74084fe49fe69e3e12e059d6adf46def2af764", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@10.7.0", "_nodeVersion": "10.19.0", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-aWTDeNw9g+XqEZNcTjMMZSy7B7yE9toWOFYip7ofFTLleJhvZwUxxTxkTpKvF+p1SAA4VHmuEy7PiHTHyq8tJg==", "shasum": "62889dbcd6cca32cd6a154cc2d0c6895121d091f", "tarball": "https://registry.npmjs.org/got/-/got-10.7.0.tgz", "fileCount": 47, "unpackedSize": 167281, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeelO/CRA9TVsSAnZWagAAhREP/2bzIb7/SG5JyxjxRiva\nW0ke7IOIQCUYMIa20NdnONHTNRYp50GXGovtY393YM3EZ+H3ou88GdWJCRtY\nZS4+ZeX8QVIOvT2TQFA9dWz3zAhRvz4BUMtovJy1v/QL6OMsm0ce4KQo3SYf\nWVSkcYzyWec2tIsgfkry5TtxzuTGuLSlMk3738HRQ24z03JO6BWOMaDnCrk0\nX+eT+U9KLPYqQNCoO+pf+xyGpWAcTp2CZXnUrsxo3XOMaXrk8Z5qyvDwyF1S\nDNiOkUqZcVyRBr88OANnTbJW1i0r5nCUi5+1EYG56XO54HV/Y+vmUQfkwUNC\nwOdzaV6Sh21jv5Pkc4/RJDTj3H6duigMr+/JhQyk527QPXj02NVGhPzrZ8vj\nrY2TJso/AKqZbS98uB389nh7p1yy40STqbml4I5c+x2/YXHOCzLP8KLRPIkD\n2ag1WtAHTLaAag3S1k/XagcGWK2hwkaTgtoNnzjerLAbHeqZu+NzS2hoKc/T\n85s9Gs8kA3hfcrDN9ohlbQpSIhh/HPPZ+KHTZgPdhMrtzriGJlw2QQr4LOmo\nLdlaaEtP0dfRx//4hwcIN/QxQ5+XHr9AS00xkuFhtKW2gbs/5SpDPbu97LAq\ngenk5to1XiZqt2VF6NydtXScZVdf5rc6ki8Fiw6uK7YrIkt7iWtX/I2cIFk7\n7lib\r\n=1dwT\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_10.7.0_1585075134197_0.9440833449617358" }, "_hasShrinkwrap": false }, "11.0.0-beta.1": { "name": "got", "version": "11.0.0-beta.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.1.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.0.0", "http2-wrapper": "^1.0.0-beta.4.3", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^2.3.5", "@typescript-eslint/eslint-plugin": "^2.27.0", "@typescript-eslint/parser": "^2.27.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.27.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^3.0.0", "typescript": "3.7.5", "xo": "^0.29.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "unicorn/string-content": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-return": "off" } }, "gitHead": "5d5df319337e76ca33ed22dbcac49fba8adf8c71", "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t

Huge thanks to for sponsoring Sindre Sorhus!\n\t

\n\t
\n\t
\n
\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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## 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- [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\n## Install\n\n```\n$ npm install got\n```\n\n## Usage\n\n```js\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\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### 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##### 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\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n\n\tconst instance = got.extend({\n\t\tprefixUrl: 'https://google.com'\n\t});\n\n\tawait instance('unicorn', {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\toptions => {\n\t\t\t\t\toptions.prefixUrl = 'https://cats.com';\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\t//=> 'https://cats.com/unicorn'\n})();\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` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\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\n(async () => {\n\tconst responsePromise = got(url);\n\tconst bufferPromise = responsePromise.buffer();\n\tconst jsonPromise = responsePromise.json();\n\n\tconst [response, buffer, json] = Promise.all([responsePromise, bufferPromise, jsonPromise]);\n\t// `response` is an instance of Got Response\n\t// `buffer` is an instance of Buffer\n\t// `json` is an object\n})();\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###### 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`\n\nThe function takes two arguments: `rawCookie` (`string`) and `url` (`string`).\n\n###### cookieJar.getCookieString\n\nType: `Function`\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.\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 | 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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('https://example.com', {searchParams});\n\nconsole.log(searchParams.toString());\n//=> 'key=a&key=b'\n```\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\n###### retry\n\nType: `number | object`\\\nDefault:\n- limit: `2`\n- calculateDelay: `({attemptCount, retryOptions, error, computedValue}) => 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\n**Note:** When using streams, this option is ignored. If the connection is reset when downloading, you need to catch the error and clear the file you were writing into to prevent duplicated content.\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) + 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 (`0` return value cancels retry).\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###### 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\nBy default, redirects will use [method rewriting](https://tools.ietf.org/html/rfc7231#section-6.4). For example, 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. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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`\\\nDefault: `false`\n\n[Cache adapter instance](#cache-adapters) for storing cached response data.\n\n###### dnsCache\n\nType: `object`\\\nDefault: `new CacheableLookup()`\n\nAn instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups.\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.\\\nIt will choose either HTTP/1.1 or HTTP/2 depending on the ALPN protocol.\n\n**Note:** Overriding `options.request` will disable HTTP2 support.\n\n**Note:** This option will default to `true` in the next upcoming major release.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {headers} = await got('https://nghttp2.org/httpbin/anything', {http2: true});\n\tconsole.log(headers.via);\n\t//=> '2 nghttpx'\n})();\n```\n\n###### throwHttpErrors\n\nType: `boolean`\\\nDefault: `true`\n\nDetermines if a `got.HTTPError` is thrown for error responses (non-2xx status codes).\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\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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`](#got.requesterror).\\\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\nSee the [AWS section](#aws) for an example.\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\nconst got = require('got');\n\ngot('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\nconst got = require('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\nconst got = require('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\nconst got = require('got');\n\ngot('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 three arguments:\n- `response` - The current response object.\n- `allItems` - An array of the emitted items.\n- `currentItems` - Items from the current response.\n\nIt should return an object representing Got options pointing to the next page. 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\nconst got = require('got');\n\n(async () => {\n\tconst limit = 10;\n\n\tconst items = got.paginate('https://example.com/items', {\n\t\tsearchParams: {\n\t\t\tlimit,\n\t\t\toffset: 0\n\t\t},\n\t\tpagination: {\n\t\t\tpaginate: (response, allItems, currentItems) => {\n\t\t\t\tconst previousSearchParams = response.request.options.searchParams;\n\t\t\t\tconst {offset: previousOffset} = previousSearchParams;\n\n\t\t\t\tif (currentItems.length < limit) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tsearchParams: {\n\t\t\t\t\t\t...previousSearchParams,\n\t\t\t\t\t\toffset: previousOffset + limit,\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n\n\tconsole.log('Items from all pages:', items);\n})();\n```\n\n###### pagination.filter\n\nType: `Function`\\\nDefault: `(item, allItems, currentItems) => true`\n\nChecks whether the item should be emitted or not.\n\n###### pagination.shouldContinue\n\nType: `Function`\\\nDefault: `(item, allItems, currentItems) => 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, allItems, currentItems) => !item.flag`. If you want to stop **after** emitting the entry, you should use `(item, allItems, currentItems) => allItems.some(entry => entry.flag)` instead.\n\n###### pagination.countLimit\n\nType: `number`\\\nDefault: `Infinity`\n\nThe maximum amount of items that should be emitted.\n\n##### localAddress\n\nType: `string`\n\nThe IP address used to send the request from.\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##### 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.abort(), 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\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\n```\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##### .on('error', error)\n\nThe emitted `error` is an instance of [`RequestError`](#got.requesterror).\n\n#### Pagination\n\n#### got.paginate(url, options?)\n\nReturns an async iterator:\n\n```js\n(async () => {\n\tconst countLimit = 10;\n\n\tconst pagination = got.paginate('https://api.github.com/repos/sindresorhus/got/commits', {\n\t\tpagination: {countLimit}\n\t});\n\n\tconsole.log(`Printing latest ${countLimit} Got commits (newest to oldest):`);\n\n\tfor await (const commitData of pagination) {\n\t\tconsole.log(commitData.commit.message);\n\t}\n})();\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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\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.stream) {\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(...instances)\n\nMerges many instances into a single one:\n- options are merged using [`got.mergeOptions()`](#gotmergeoptionsparentoptions-newoptions) (+ hooks are merged too),\n- handlers are stored in an array (you can access them through `instance.defaults.handlers`).\n\n#### got.extend(...options, ...instances, ...)\n\nIt's possible to combine options and instances.\\\nIt gives the same effect as `got.extend(...options).extend(...instances)`:\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(parentOptions, newOptions)\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\nOptions are deeply merged to a new object. The value of each key is determined as follows:\n\n- If the new property is set to `undefined`, it keeps the old one.\n- If both properties are an instances 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).\n- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax).\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```js\nconst a = {json: {cat: 'meow'}};\nconst b = {json: {cow: 'moo'}};\n\ngot.mergeOptions(a, b);\n//=> {json: {cow: 'moo'}}\n```\n- Otherwise, the new value is assigned to the key.\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/as-promise.ts) or [`asStream`](source/as-stream.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 {GotRequestMethod} from 'got';\n\ninterface Dependencies {\n\treadonly post: GotRequestMethod\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.\\\nAdditionaly, the errors may have `request` (Got Stream) and `response` (Got Response) properties depending on which phase of the request failed.\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.RequestError\n\nWhen a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.\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.HTTPError\n\nWhen the server response code is not 2xx. 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.CancelError\n\nWhen the request is aborted with `.cancel()`.\n\n#### got.TimeoutError\n\nWhen the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.\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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\nWhen using hooks, simply throw an error to abort the request.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst request = got(url, {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\t() => {\n\t\t\t\t\tthrow new Error('Oops. Request canceled.');\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\t// …\n\t}\n})();\n```\n\nTo abort the Got Stream request, just call `stream.destroy()`.\n\n```js\nconst got = require('got');\n\nconst stream = got.stream(url);\nstream.destroy();\n```\n\n\n## Cache\n\nGot implements [RFC 7234](http://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\nconst got = require('got');\n\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('https://sindresorhus.com', {\n\tagent: tunnel.httpOverHttp({\n\t\tproxy: {\n\t\t\thost: 'localhost'\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\n## Cookies\n\nYou can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package:\n\n```js\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(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\nconst got = require('got');\n\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('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 [`aws4`](https://www.npmjs.com/package/aws4) 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\nconst got = require('got');\nconst AWS = require('aws-sdk');\nconst aws4 = require('aws4');\n\nconst chain = new AWS.CredentialProviderChain();\n\n// Create a Got instance to use relative paths and signed requests\nconst awsClient = got.extend({\n\tprefixUrl: 'https://.execute-api..amazonaws.com//',\n\thooks: {\n\t\tbeforeRequest: [\n\t\t\tasync options => {\n\t\t\t\tconst credentials = await chain.resolvePromise();\n\t\t\t\taws4.sign(options, credentials);\n\t\t\t}\n\t\t]\n\t}\n});\n\nconst response = await awsClient('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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst body = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('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\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('v1/users/list');\n})();\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 | :sparkle: | :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\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:sparkle: Almost-stable feature, but the API may change. Don't hestitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n\n[k0]: https://github.com/sindresorhus/ky\n[r0]: https://github.com/request/request\n[n0]: https://github.com/bitinn/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\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\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\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\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\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.org/sindresorhus/got\n[k5]: https://travis-ci.org/sindresorhus/ky\n[r5]: https://travis-ci.org/request/request\n[n5]: https://travis-ci.org/bitinn/node-fetch\n[a5]: https://travis-ci.org/axios/axios\n[s5]: https://travis-ci.org/visionmedia/superagent\n\n\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:bug/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%3Atype:bug\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\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\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[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.now.sh/result?p=@sindresorhus/is@1.0.0,@szmarczak/http-timer@3.1.0,@types/cacheable-request@6.0.1,cacheable-lookup@0.2.1,cacheable-request@7.0.0,decompress-response@5.0.0,duplexer3@0.1.4,get-stream@5.0.0,lowercase-keys@2.0.0,mimic-response@2.0.0,p-cancelable@2.0.0,responselike@2.0.0,to-readable-stream@2.0.0,type-fest@0.8.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)\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\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", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.0.0-beta.1", "_nodeVersion": "10.19.0", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-9oH6JbsotGJ1p/llzFB5XYWaSBOchQvNCfvpcaD/xILnU49zt+F5sDMIBo5IiIx/q9qKlIvqbJet4QAbUEVt/Q==", "shasum": "96ffe9dabaf1a77128b17e83a52ab9bc0ae0e471", "tarball": "https://registry.npmjs.org/got/-/got-11.0.0-beta.1.tgz", "fileCount": 37, "unpackedSize": 174102, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekw4vCRA9TVsSAnZWagAAM4gP+wQeXLiKeRbd0tHci18l\nt+ba/jXXP5pXH1onVDhSUiXAxdhlVN5scIbVI6aO5/qqNE+e37MyREG7pkbe\nhfNaxZAEjFhkO7vSAoV4JhLGu+QIOtonAYxbQFTC07lo/ew3ftkDc4v2XzHd\nYTPc1MReNjpf4Lhuv43pwL3cQgOtsCGDXmVlO1ix56+Xmd4DlSVtMSlKArnn\nb0BQ0M+irZzifIf4okS+AzvYBxHi2y6GAZh6e8q4jcLr88e7S9UcoBogUIol\njJD41d0TvtzrJaIGBxSYO8KkREgMu+FSBm+0w50sFIIwf3zJr7Jl92xswEWW\nwGGSIWSt0CiEh1akpgY6Qi4+G0AM+6lXsrM7hQIwMG7ejMbg2k5s8TBCVLvJ\nOvoGugORKpLP20OFdKS75YK0lJxehNqg+CPTM8s8SKRsFVKa9Xkt2v8J2Yfo\nXKb/yLXZ/Vu1UNu5OneNFIab7wt1rMSuhBDOdrFfmU/bSDUKmXpmDH7M239J\nkbyJE0KvGGsousOjB6FIk27evTjuSfiVXc9mxm2NFj48YlRlaFRU5eCXjfhU\nZitlqVSOiIEAaDl7RCO6xOPXvRO6aSBPhYUtNTZp9XmfRBT0mTmnmhFIZEBj\nHL1Q0ekgD5buCMKatArrEdnvaGqtu5LE3xNIk37Q5onFalCThjpksthoxZF/\nLzFE\r\n=0SdO\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.0.0-beta.1_1586695727208_0.21593588665525343" }, "_hasShrinkwrap": false }, "11.0.0": { "name": "got", "version": "11.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.1.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.0.0", "http2-wrapper": "^1.0.0-beta.4.3", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "@typescript-eslint/eslint-plugin": "^2.27.0", "@typescript-eslint/parser": "^2.27.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.27.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.7.5", "xo": "^0.29.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "unicorn/string-content": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-return": "off" } }, "gitHead": "1f6ac4597b797e6fe760a7dc11a3db8bf298aa94", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.0.0", "_nodeVersion": "10.19.0", "_npmVersion": "6.13.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-6PjDdCa2yPMuxhoBp6TIdHUm5gv8rBEfr055vJG9CqznZBw4rFEwNifI5JxfLhu41xVHRrFsVtseFOjrcIy1/w==", "shasum": "a5a131a55752309157bb32e1365a6a7f2a8c15b8", "tarball": "https://registry.npmjs.org/got/-/got-11.0.0.tgz", "fileCount": 39, "unpackedSize": 176046, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenY1aCRA9TVsSAnZWagAAkQgP/243D27dcS3h6mzxsYa9\nKyWUlAkISJdOxdY/dMET9+EO67qkpQBUcYBflTVUsccsabeA/2B+fO4sbszz\nPqBvA+F9zmJPUExz03GN4Ex68H4A/xpatnyuJlald+VL3SDSnVtTRCHC44oz\nUC0zuuiokrhmYH61jmujSJQ2+FP817iBdptE0e/mpNWBvypQa9Yl6+nuqb1i\nSGzin6EsITgS/beBvfJmzLOaEs/j10J9xixjOoZCMp6NHNvuj7oyijeddjet\nRBP34PtL+FZJoHA78HCliT85rXtWYZSIU2U6ija3rAL4Rm8BcHHruzykjtOy\ng32KfM3v3x+a27AxLLlQ+qCB6uBz4AZ/Jdkn7ex4cAxzlSViC7A5Ae9ql/X+\njh50qklVMhk0bNKlZ3uOkObFr2bSUmOvXSk2UQVQ8aCV9al4igEsL5cNb1WQ\nArQt5Oiz9MZbFoNbEjv3DtE5NxC3kpWdjv/j/68ts6lRMpR4fSnu68bJ1Nsk\nOPgAeKoSbaVhupmK/dbANG1pyYGZpORUNwjyuDkq3HEWVv4atihKYoxmGy5Z\nN3Y+tKr7jqRTwfaVHWaR0o+DE/MUFw1VWa9AFQIHiD7Nef8LTm3n39vIojJH\nj5tGJDintUWB02n3gLJNGrqXP2m3DUdDGve3sCKiEJwQbIHr6v8PHj5G44v3\nmh70\r\n=BkaH\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.0.0_1587383641386_0.8298435344117718" }, "_hasShrinkwrap": false }, "11.0.1": { "name": "got", "version": "11.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.1.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.0.0", "http2-wrapper": "^1.0.0-beta.4.3", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "@typescript-eslint/eslint-plugin": "^2.27.0", "@typescript-eslint/parser": "^2.27.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.27.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.7.5", "xo": "^0.29.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "unicorn/string-content": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-return": "off" } }, "gitHead": "090be50d108aaf99c35ec3ff95ac7adaa5217b6b", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.0.1", "_nodeVersion": "13.11.0", "_npmVersion": "6.13.7", "dist": { "integrity": "sha512-yxoJ0Mo8IV0bcrDaT9OaQ3dB514e26r+0V16TK7cqbcotbAwuOq5IIr2WJl75CvZ3oIRtpHVftYAQLF1lqrC5A==", "shasum": "515ed43867a2b49d2dfa7b920092fd9299188f28", "tarball": "https://registry.npmjs.org/got/-/got-11.0.1.tgz", "fileCount": 39, "unpackedSize": 176987, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJend5sCRA9TVsSAnZWagAAeHgP/An+G2rbEK2WpFuS3dmj\nF6WLItZnSrhMIt69aNcnSNAuGuHZSJaGqzyBf4Qcy2QrjdVdTEJLY4CBuR4i\nXJIyDU+SRepYX7NSH/zX7Iyx/9vnXh1JU5+2l6wsGiCxVxi9dr750v4GVJmm\n+2X0ZtJAU5sirZvCbHZe87xZhIEVgUCaJdsG5Rw02RS7yODhD7ws1cGQZM96\nN5LZQ2NCleNJlLGOvRt6hISTQh1kNF/rbtZIxqkSRt0ehLJ/U7zMjEqnmUhA\nKuXuaVk6y/ZOMKfmUNAXIlBsRdFYUn5Do/7la7Xa+K0ag2KDWV/gz0TVfeON\nvRC1TrXVSvUd8WiFybREb8mafXiChhckXhNDFC0fqfAVSm4CLuikZHnCF/z2\n5tEmXm6HcMyOLWoQ8//Kic/nJ1u5288+kkeI++DK/E4WBxIdZdZl1OD+4zwB\nAyHSVhLpGkZFlcq53o7lX7JRnvIcDtXJeUtMvBA4jHQr1fTMBO9gwsC2tT70\nRb5og4LcpBwyZMIjlWCcY1GH7W+1mxBi7gT2ckkAd6k871/lqK6OV7cVIhdR\nT4OH5g2WNsbH4ngO9JSdtHYyaHwLa0uoDgB8e96jhrt1tzXXxXqAosK5BWNX\ngKuYfTwDitLMa54RoI++sXWih4gMJ4i7Ptc5XCcCYfi6S0TzuElbmoHhs27X\n5VAz\r\n=4FYf\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.0.1_1587404396042_0.9773292310475763" }, "_hasShrinkwrap": false }, "11.0.2": { "name": "got", "version": "11.0.2", "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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.1.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.0.0", "http2-wrapper": "^1.0.0-beta.4.4", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "@typescript-eslint/eslint-plugin": "^2.27.0", "@typescript-eslint/parser": "^2.27.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "eslint-config-xo-typescript": "^0.27.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.7.5", "xo": "^0.29.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "extends": "xo-typescript", "extensions": [ "ts" ], "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "unicorn/string-content": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-return": "off" } }, "gitHead": "835c70bd6fdc5b1ba7e7ffd322490b6d66fb407e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.0.2", "_nodeVersion": "13.13.0", "_npmVersion": "6.14.4", "dist": { "integrity": "sha512-zOanxiJs1LaBAiKsV43UUw/oRlyRNtJFeuATahfi4c3MTremj09eAeJBSJ7GR2oEMhrLLRSJpz8fQaojVDijjw==", "shasum": "55613d6a1b7040ff9c26cb075defea39eed58d7a", "tarball": "https://registry.npmjs.org/got/-/got-11.0.2.tgz", "fileCount": 39, "unpackedSize": 177919, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoAxdCRA9TVsSAnZWagAAdu8QAJ3Xuew8tuDO1yWsDX7p\nf++UnOzbp1LpHcgZb1DWcOMSHnTyki8T0JfRrjx0TDdBh77U6454eaa+Icbw\njO6loK3d4h+FUduZrUmAfrOfnSUDwTu00FcgwcD/0Q5WRWcoK/RtVxd03Gbc\n2+BnzDaM1TeDRJveFKCiNSw4mNN1Fo8V40K1FSquM0WEU38wz65uDqefgX51\n1FVrB/qcW/kE/xNhwmI0V7nhyWCZDZcxgDpXfTeQrCWMtCiWQdAcQ9rRBtY4\noqiAe5yZiTFHjlxSECNj1TcOV7PIeyuTLAk7Q3A8RA97OUcuPie6BLo0p1+J\nCyl0whuEcPLhn2LjbhBbHvsCGizZbheWDe+/L+zUapc749knjaumQLcY/rDQ\nGgewsxDprLWze8719fYwodpNG2vfedbYKvaICSGzf4BDkO89fnPR/BHq2jM9\nY3l1i+HHLdZuqNsZ6cO15AA7oTkWlbVK53uXqrULPSHb+vUV4yMmzzKjHD0u\nQtlcqKlB4O7wXLn6BspWJ+ihdkryITyGBbQL7t2177vXii4Kjk66Q6OSIOri\ntVhHyh9vx4dSTCQiWKrCrh9mzxy276FXYVNlZGGlynDsAc+PWIfXuM62oyT4\ni7P56fM0eAACZBqrxPDIN5mrL8SAp9fXY4JEmCyn3nXmBBZE9BT1eqPIQmlR\n5sSf\r\n=PWTH\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.0.2_1587547228456_0.7021233289503805" }, "_hasShrinkwrap": false }, "11.0.3": { "name": "got", "version": "11.0.3", "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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.1.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.0.0", "http2-wrapper": "^1.0.0-beta.4.4", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "gitHead": "46cd61b5db7bb7f486b090094c1336a475fc2608", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.0.3", "_nodeVersion": "10.20.1", "_npmVersion": "6.14.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-VmU5xQ5tWIc2SudsZQ6ewOwPxXxJ4pMS3SJoqP5SK8oBKxnZ3OgAhLZcPMDYeOW0RKIL6HF/vHtibWDLSa3rvw==", "shasum": "1df7678f9768ad3991c03b3efc304795eb29fdad", "tarball": "https://registry.npmjs.org/got/-/got-11.0.3.tgz", "fileCount": 39, "unpackedSize": 179620, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJequLTCRA9TVsSAnZWagAAXEYP/RCUQrt3G/g6Al9w2Ld0\nokBI3ap2Wb4PIeK7YR+cRPaxw/mqInGihAW4MCrZ/a8e37XeHoZnK5Bl5j6b\noKp7qte4sJCJc3o0JTqkrsgSudVIEYuMzNUnh2G7cStYrX41woPj4c0ochMW\noOL1rTPxsDwWHoS5GowSD41p9Kn5RKMB/MRQgKyrZnJrfRMerHWsfDK4YZIa\nWkhOngiOb5k8ccT7eHVS5AiSfGpUhFUOTSCeEJCRnun2v1hftpjOqo5whbkA\nbHmCj4ZqaSzv7BT8URIjvMCaaS7hMLlRUHJMP3anut3KpZd0RyXQUiA49CPp\ncsuRc8KMYMKSQDqzhD7Jrw6LANAaRHqWACijgA86+RH3NwCJH1XAvw4ISkmD\nvAppgq7tqu+dyAfX9SyM7JxkL95Z1V+GYcxp1oqY9gUtlbho/rYUTlDp8PMv\nwrMX7rbRsUic9zhLXKTfZY3fEyoYfROrpEjnMIJjD2SY39XVmyI4LBi1S6LK\n7CWQ3QHMzaLcrulUe8kpUihSLLIOz3OUZAhrhN5/blg4pllf5lj86TYyEjH3\nLhJo1jl7B4rcxrgkPEAxRjIrvnyjGw+8TLQiFR/TbVduzVN4nUGWoa3dVwJt\n+K5xPAqDMu30OjOySvhCKspdb9LuLa2/NyrjXXEJfV6g9PZOXV8xU6/ALe/0\npS8j\r\n=6gIK\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.0.3_1588257490400_0.21706238624846974" }, "_hasShrinkwrap": false }, "11.1.0": { "name": "got", "version": "11.1.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.1.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.0.0", "http2-wrapper": "^1.0.0-beta.4.4", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "13.1.2", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "gitHead": "633e46e8cb184e6a2670ffae5f8184fcf710f31b", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.1.0", "_nodeVersion": "10.20.1", "_npmVersion": "6.14.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-9lZDzFe43s6HH60tSurUk04kEtssfLiIfMiY5lSE0+vVaDCmT7+0xYzzlHY5VArSiz41mQQC38LefW2KoE9erw==", "shasum": "99c0c3404ee17592e553f9ed1c895f920f554ed8", "tarball": "https://registry.npmjs.org/got/-/got-11.1.0.tgz", "fileCount": 39, "unpackedSize": 180341, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerV4ACRA9TVsSAnZWagAALWoP/0/+C1n4WR2hF7nPWUuT\nNkBI4NbAsfecKmy0Tp4h5TrPMJEsvZyFJfF6F7lTj3LQnhVpqH8zspRfInIP\ndN3fntfA2vfywjIrPrvH34eItHfPwHtp7eFcg9ztNLUzAe4nmdokbx9fwKCz\nG7XM4mmdS5pqJI9Mg1ElNldeT2YhgM8BCUY2xROLBkj8WY/rwPj1Y5H8Ii+d\nGnt2a7/7iSzw3wPia95qMDl9qtTgVg0A2c14GsRFSmaNt5tK5S/SY1h2datc\nydj2lkuqpDWTv9s6cERbQcr75nndt/0hMrDBF6uIdMmJL22sRbIG+RIUq1L6\nRjI5Tj00F+8Grzoa0dnX8X/d6GwjyJDxpvNpjxAeuJciHcTuRk9EBCpsRAvB\nLHR3Rggum1vD3Ln4JXEXnUvdi8PkbUf+FOSYOeRLtMWua6/o13qh7f72CJIB\nT2ngkd84nG1799Q4XB4xa3Eds212z9iBxbz9vk5HYk2OH89aNYWrkB5tlKVo\naSFdtcgniLTIXwyfTBOKvqBQsAIjmOkfCoUhVciWZCGPJlc4gg5S1ALA6/PV\n0KwRyO0BUTHvZ5P4KNL39urt3HM1RGu1OMo7vnlNj1iV30ZoNDTxPoqJ9HpV\nJ+kfbnH8b6jYDZcwAW8+vToMLOmwHDkvPJ+ygarXLxUuoMYGBBU92m85p7q7\nMGmI\r\n=OnBm\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.1.0_1588420095707_0.7730510830682404" }, "_hasShrinkwrap": false }, "11.1.1": { "name": "got", "version": "11.1.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.0", "@szmarczak/http-timer": "^4.0.0", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.1.1", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.0.0", "http2-wrapper": "^1.0.0-beta.4.4", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "^13.13.4", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "gitHead": "352a3536868a9eb335635902d2aa843424e1b6d6", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.1.1", "_nodeVersion": "10.20.1", "_npmVersion": "6.14.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-7WxfuTyT02hMZZdDvaAprEoxsU13boxI8rWMpqk/5Mq6t+YVbExVB2L6yRLh2Nw3TeJyFpanId41+ZyXGesmbw==", "shasum": "11f83049df8155b384413547fe163dd4b35b4240", "tarball": "https://registry.npmjs.org/got/-/got-11.1.1.tgz", "fileCount": 39, "unpackedSize": 179758, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesobKCRA9TVsSAnZWagAAuCgP/1Wb68nlC5nTCdEJKqUg\nbky/W0Nf5t0mgmJp3IQD/azPYopiKdcBqVTSoXlPxUCgc6y3STPC4qBJeMRO\n3UUicygKEZ4+OydJsLyurv347ZBKc/pi153OLZ88yuP/b54rR4wv2mJ3bFgY\n6TTroZzW6MNVR3K5Zd6z6uXI2XU2G/T1LH5z6IZsuEjVAdVagg6H8rm/C4S2\n5FtgUbp69LYbgmeIlpG5IuCGCLUAjVVXEj1f5uOdUnmnYTccTeBmioZWLLbZ\nr1RiPaYz8xLyS99GkgR47qi6hlbkcSrHGbhCliBQ1cCtCmigBgl2CLRRpKIo\nMot9xwxs4GBlC8r9YtZAfbRBvdTwShIxq3ncPMPslpXfvXMO7u0lDTJlzX4u\nZ8S/dVJjE6g740wMuOXPcNZMQSq7mzDRq5VGe4rRfowkKpMUq0KqlZoIZvoI\n6ZfEhOZCJlFJ5y72WRVvUOppyKtvirir4k5aP4bElSmAL7QX09ocrFZ99ppL\nSUPqU6zS8nn0OWOxlA3YGPHhNHsHoJ1EtFRgCK7VvA5vFTipijDsZ/xFBJ3d\n9UsgXRMhI3WQB1XGOIJyhhtGFbQnqI0juXx9cMaN0zW0CCIHBnLt3bYiyoxd\nOs8WVYVTLZuSYUVX1IpYWL4TRyxKz4IUeWO4Eh31R74ebmGg4RBBmlV0rwa+\nlrCK\r\n=pqKH\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.1.1_1588758217943_0.056217844200783684" }, "_hasShrinkwrap": false }, "11.1.2": { "name": "got", "version": "11.1.2", "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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.1", "@szmarczak/http-timer": "^4.0.5", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.3.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.1.0", "http2-wrapper": "^1.0.0-beta.4.5", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "^13.13.4", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "gitHead": "812deb690bc67b9bb2a0a28f10ece46c7905c78c", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.1.2", "_nodeVersion": "13.13.0", "_npmVersion": "6.14.4", "dist": { "integrity": "sha512-ywWJU8STgxsWaPRC61HgqNYGboJFgkVNNbga+C4xJR67cySTskU8XehWWRMnWCtDmmaYU5SVoMAXP+SuY4pNsA==", "shasum": "bb38ed6277670fbd103a1b858cfff9581e62045e", "tarball": "https://registry.npmjs.org/got/-/got-11.1.2.tgz", "fileCount": 39, "unpackedSize": 180109, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetT1eCRA9TVsSAnZWagAAPjEP/j4pv8zsF9sREX94nPI1\na9GawJwUQiFpMkhIJ/ZbpFEHvSjbl65sRD25SwM5iar0DxiErxVKNEBIniuP\nnm8hjMH9tqIuI1HZe9Y+M/5cSo+ONNtdekg5CBKXVPVd5KgfpvYQ84Uu4CrS\n/fXxqTsJsiy/+WWM9cNQAuyK7i1OOZDbc1eUoOWSdGxAnGFckbCy3FZ1StIO\nzP2nfQk3Z5ZNbig5Dc84fpRtUg78QqWE7tpMlimUGe3iUIn5bSEGDc4AONOx\nCzAaV1HSQ9GywKaf556gzqSVe/+pHuECxva7RG2QqhTfW5W2hLo6yXAfJGlJ\n0R1SRZlnUCt+UVrw+5JAf2RB/YYuojmttrwvv1Ytf1XbN/uP2VlCP9aw0ZxB\nzsvHRm45I2Y7qUgodRm9G1fdVTSLsm2Bz5koN37P3yblHhx48NtPw4QDyIxv\n5IPqDH/h+LdvCf3O7afBqdmRoOurrdVqyeygaieJJLhGhQ/2daQ8okhtQKKQ\nrUMjXCnV0wNpUcuSIPGRWO6VcHJdsh79RMp6mZoZr5COgFFKXpEgnmZ0pbXD\n1RVkknVcC6tpN5bD66Ul1PtpaklmgIGdyO0lf0qZqVWmJq9cxdE5Ch5Iz6tO\no16Md4d3yJcJJT92k9dDTwAn9X2ci0f0R7d8VEvI76WABjUqEVoaYxxE0Usq\nYY1G\r\n=6XiX\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.1.2_1588936029438_0.0551393555670161" }, "_hasShrinkwrap": false }, "11.1.3": { "name": "got", "version": "11.1.3", "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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.1", "@szmarczak/http-timer": "^4.0.5", "@types/cacheable-request": "^6.0.1", "@types/responselike": "^1.0.0", "cacheable-lookup": "^4.3.0", "cacheable-request": "^7.0.1", "decompress-response": "^5.0.0", "get-stream": "^5.1.0", "http2-wrapper": "^1.0.0-beta.4.5", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/lolex": "^5.1.0", "@types/node": "^13.13.4", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "lolex": "^6.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "gitHead": "ece94edec31bc8d004f93d74e218d8fd3b442c15", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.1.3", "_nodeVersion": "13.13.0", "_npmVersion": "6.14.4", "dist": { "integrity": "sha512-JnGxEHZiy0ZArb/zhfu1Gxoksy9PjhQ4GAk6N4UArV/m1JdE7cGNVXbUDnrQk+nU7UPMDX+BHQAP0daMjsnTtQ==", "shasum": "bcb624c636f9c4da5a82a7d7c9017fcad6e2905a", "tarball": "https://registry.npmjs.org/got/-/got-11.1.3.tgz", "fileCount": 39, "unpackedSize": 181786, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJet/qxCRA9TVsSAnZWagAApbEP/RXZwdqd2NUlwGTCr9Iv\nVLDOULwujL9bewqn+uN6xH36M7TficdEMp5H5yCEebXbgWAsH0gAa5sbtOJL\nA89qfKU8gmaukw3mo8KYaL1r2yvIWQDSbLTIOfAxpWJzZkugWBBAOmNjHR04\nKU1ysJDNVANY2AYshCbbEe9HpD9bPSLDrMMK/GKI59+Gc8nRK9mE8Y/je5Cj\nFowU5NbyZD5jC6npzBi4q/t38cZSzxE7dB2EZbHIhoMgS74Ym0eYxVOvFJpD\nSoP7XxSg5VWM/VETBmgkNgeYyZ7v/4yCsOz8B+IJXCcQRvZ/0IgQRs34tk4T\njZjzeKhHEHwprycfTzoovDvp9zLdxP/OhqsyFzpSK0B9pl4PoC1T+i37kL8E\nFFyxigLQ8lfq+dMoc5iwSLuPXDqvd7H38sBdVyTr0yVC/gYmYV6zbimraor3\nbCzuziOHm0w+AnurZb8gR50KBUkZGJRl0d3mIQ3bI2fup9VQaO9LfSe5GdHQ\nhfkUy9PJgRFJaPNj0CqkGGcK1+bN29eMcL8YVX7hPCUoDZSRS+PoeR3FGaaO\nAbtxMhi4fZQW3rMmFbHN3df/kNjGkIFQNylDYpw8uQQ4Ivd2CQApdznRCPgm\neLwfLxmdB8qNHhbcSDAXQEnBY8k0s2w6QWglGxqAo5OXIdpitXTQ++G3w057\nBqj1\r\n=2t8K\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.1.3_1589115568157_0.6799666573486882" }, "_hasShrinkwrap": false }, "11.1.4": { "name": "got", "version": "11.1.4", "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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.1", "@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", "get-stream": "^5.1.0", "http2-wrapper": "^1.0.0-beta.4.5", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/node": "^13.13.4", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.0.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "775563219d6ba494ffea6e5dfd66557feb32c020", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.1.4", "_nodeVersion": "14.2.0", "_npmVersion": "6.14.4", "dist": { "integrity": "sha512-z94KIXHhFSpJONuY6C6w1wC+igE7P1d0b5h3H2CvrOXn0/tum/OgFblIGUAxI5PBXukGLvKb9MJXVHW8vsYaBA==", "shasum": "ecf0064aab26ae4b2989ab52aadd31a17e7bad63", "tarball": "https://registry.npmjs.org/got/-/got-11.1.4.tgz", "fileCount": 39, "unpackedSize": 184190, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewBRfCRA9TVsSAnZWagAAbWwP/iTSQ5iOytkZ1oK7dWGm\nSw6u0LMGgrXLDBxtn57qiL3sLvJUSmSanmOAtq3McNdqd4WCEzR4rUifkaVa\nm434R7UDRibuytWOxdWDjlhpJn8xPKD7H52EC/jNbsKfu9VqP5qu+5h6BA2w\nsTvNqVk9SjHEsaItLu+32cAqg804BodHI8fNMzmhpjX03BK/wKrcdyUBwwPS\nmjP45gGpu0JwAXDrokiZjsN7doCHuOtXTeC+jsblHbyu8b67wcwfEDdmcuL/\nf7b5J6IOw7vp77Y+MMffEXGApl93w3viDf8IpCYng0a8kRFXIsn1TRSmBdr7\nf6kdzdvb3Zes3ttJbh18n/HSz14IkKcEqk9wDH34qmvuzZcu4vD9uPh+TS0C\ntZxFCBpYFumktwhZiYltIPTYrCVFameTio+0znSd4IUWxim0GIdKBdyk29Y8\n40D2wzhNWyI2VULLI74eggYjNl9F4wzbm3GFtYx4tj8U/V+hdsfLw16lWvyy\nCRfCQRWHsv+u0ZE3ZyEK4jiZQvJINRkhyMJeWLpZdo3bRn+Wq7it4gFs5dBA\nwSftTahpanJ5+WHppFqHWHi+uSmFec6X60IGwjSU6QQWjzD3El2D7JjCZGIC\nI8hWHvMXTHKU1iD1UKkoKanK19BbjVrOgaRM5dsf5pLzOmO53VmWWnTLoejj\nRWpn\r\n=/FEY\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.1.4_1589646431125_0.22753338093060704" }, "_hasShrinkwrap": false }, "11.2.0": { "name": "got", "version": "11.2.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.1", "@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", "get-stream": "^5.1.0", "http2-wrapper": "^1.0.0-beta.4.5", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/node": "^13.13.4", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.1.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "e00dbbcde260efb1c32c33474b1c5781ce34721e", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.2.0", "_nodeVersion": "10.20.1", "_npmVersion": "6.14.5", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-68pBow9XXXSdVRV5wSx0kWMCZsag4xE3Ru0URVe0PWsSYmU4SJrUmEO6EVYFlFHc9rq/6Yqn6o1GxIb9torQxg==", "shasum": "20f76c421378b28db773d6381a450fa1bea92d2b", "tarball": "https://registry.npmjs.org/got/-/got-11.2.0.tgz", "fileCount": 41, "unpackedSize": 192115, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1K/kCRA9TVsSAnZWagAAVN4P/Ah8AMe5IesX35n9wn5R\nHk5xOsRTra/2wy3pvFT44y4q0GYGDldz0KGWDGDgO4/NEQqC4KBVlnWzIyKK\ntllcujOYN6m6cOMS7hU0vuZUWvXd4e11Y0s8IrusFi7qqJJHNkv6i9SrI2iF\nIhJC7f1E0uIn1PU47qFNJgnZ4we3p+pDI6O0KFs/bYCMLISRmllQ9L6cH3gy\nylrLTlCsRt0hmn1OAbuCyNc0XNcZ27gxBqm0VsWy5SuM09EYsx/xhqBucG/+\nFKSNdFC5FOF64+xpm6rU41lHx3+HQmeUCXp/sfmpiCyZ2OVlrhdbQYnPGH6k\n9Fxndss9fMkBGZ9MCrJEZBZ691j0eLYyrnsZCar1rNXnEEuEChGnAk20k91X\noh1AgHFHu2uT1b+8k7bhBrhDGSwdI3Yn9gHVWwSUZIH4rZ9lHuMkFUlyL/7R\nsl3l/zfnloF4og7UKkALPoS5ojMz44nv6wFS1bzUtvz8vbPuSRWMaIFBcQb0\nUb8ypGl2QBC0NFJ5wQrZXZR5I3S4kttYAftKs6ftE/GSgsqrQYaGhENtR8fz\n1BpXH0FIx4TqlU95Eup4rvT9Ys7oZM/G4GVPJjj7elS7SVuNSdYSQNhASysS\nEqfVc+pnd6OlHaxczaV+Nqj8QQyEeXrzjAbwJ6UnVhEXjnaJUy4RqqH4DJBT\noEi5\r\n=XpRR\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.2.0_1590996963573_0.2921897607237689" }, "_hasShrinkwrap": false }, "11.3.0": { "name": "got", "version": "11.3.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.1", "@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", "get-stream": "^5.1.0", "http2-wrapper": "^1.0.0-beta.4.5", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/node": "^13.13.4", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.1.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "47239e3f29a6ade38e9353d26eaffa3f79466103", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.3.0", "_nodeVersion": "14.4.0", "_npmVersion": "6.14.5", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-yi/kiZY2tNMtt5IfbfX8UL3hAZWb2gZruxYZ72AY28pU5p0TZjZdl0uRsuaFbnC0JopdUi3I+Mh1F3dPQ9Dh0Q==", "shasum": "25e8da8b0125b3b984613a6b719e678dd2e20406", "tarball": "https://registry.npmjs.org/got/-/got-11.3.0.tgz", "fileCount": 43, "unpackedSize": 196623, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2nNJCRA9TVsSAnZWagAAJw8P/jcUGOusRT+uEB92LKxG\nS33cK57ANg+lH9CHcNMIEsxbnDR5Y8sbqxfrzGtzIy3RbuZ4DSkLxN+0yPXE\nu78oQ+jmrb6afUVMhdemVs8pTqydaF/w2m6Fnns0wnr14KjLGQ+G+pDeXYm1\nWaPB2TCDH8fWa8WAK4E9k3IwPD2LG2yh/bE6vXqti5k8Xz8G11vcc64J0m7P\nUix4Dr6qAK7rAEYVEhfQklnGhb/VrBRmLMRkxwSYus3x+7KsSfo1tQoMZvUY\nU6X1UMgrG78H8dbLf7F63/w7hM92Yk4QVGcf+EbbUcTGfBLYCObd3Q1msVPR\nw6XS6rln7k4+mUzYHLTaboZryAy/1OC8iGmyq7tDC4GwF9Gnsx1QYpE5QXGC\nkhPtZO0jp3E3Tuagnjusfi2MBk77nee/2G1MDUzhXGeMoCmFyE4BX8qldZhB\nHtDIzgHQ559hvYSOsoZ/ATSHU8ilEx6X6lfSmDAkbBW23hmZd3K4IDlaUk8T\nA7ryURqJzC5jBvyEfILM/kETA7bDhpc6Mz68YUNjxts4oW8Wn0wPrt8WaojG\nOBlL1IeBqgmchkEo7XCpD7xWT9hDQH9f5TtVvyQIO0RIMPWjJ0xGbDWSDnh4\n8aKfDIIc6T1JIAzFIjPJOsh/TSHU33X+OaIS7YDiwz8W1WBGj0d4+fj9HkBX\nSoUQ\r\n=MpJx\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.3.0_1591374664041_0.9621646377182622" }, "_hasShrinkwrap": false }, "11.4.0": { "name": "got", "version": "11.4.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && tsc --noEmit && nyc --reporter=html --reporter=text 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": "^2.1.1", "@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-beta.4.5", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.31", "@types/express": "^4.17.6", "@types/node": "^13.13.4", "@types/node-fetch": "^2.5.5", "@types/request": "^2.48.4", "@types/sinon": "^9.0.0", "@types/tough-cookie": "^4.0.0", "ava": "^3.6.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.0.4", "create-test-server": "^3.0.1", "del-cli": "^3.0.0", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^5.1.0", "nock": "^12.0.0", "node-fetch": "^2.6.0", "np": "^6.0.0", "nyc": "^15.0.1", "p-event": "^4.1.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.8.3", "xo": "^0.30.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-base-to-string": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "@typescript-eslint/prefer-readonly-parameter-types": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/method-signature-style": "off", "unicorn/no-fn-reference-in-iterator": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "4845ffd828219ce1d8a894a86451916dcb590c7b", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.4.0", "_nodeVersion": "14.2.0", "_npmVersion": "6.14.4", "dist": { "integrity": "sha512-XysJZuZNVpaQ37Oo2LV90MIkPeYITehyy1A0QzO1JwOXm8EWuEf9eeGk2XuHePvLEGnm9AVOI37bHwD6KYyBtg==", "shasum": "1f0910310572af4efcc6890e1dacd7affb710b39", "tarball": "https://registry.npmjs.org/got/-/got-11.4.0.tgz", "fileCount": 45, "unpackedSize": 199516, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAG0YCRA9TVsSAnZWagAAOT0P/Aj7Z8xqgwHmr8p/oDNx\nviMKwPK1kkgOxzQiwR8lWW7fFrWdGEyL9+U7CInz/CG8zAllOsoXjW8+lkCa\n8edMjQIgfW9Qp72GX/ly/Wz/po/8G9U9QF1NjrnstcG7DpgHc9qdnRMCR2a+\nVezRGKCt2SPIDu/J4KpxVCfg9CLAAC2NS+0x7LIs8ZakK7fQ8rxIQGbu+wyO\n09318FzGfkdNNJvy0bwymbX+Y8j2KRVIq014JR78+jVuN6qU84b4ijpCESks\ndizprtOx0hRs5+Gdgr11YgUwbCLXXWlypUD5xhtqEqcHyMDnI4J4LeHZfiiV\nLNfIejB/Bh1sgUeV/AsFETbQDmrUW70+T2v7+iKBpx3XFxSbsicG2dJtj4+t\nmaiq5n1RuG1EeWQjTDKNEThUDrasr0yBoxq+q9Dl4Nbo7cvmuGZhJ7Eoz+Jl\ndM6Vv6e+qGw4nZev6KVGEqzr4RHIwZ0dQV2p/d8+v5YYfmMsG18GATVuvZol\nz5uKiByArmJGNum4gzDxFPRxa7nTx6CytLgiimeUba4I4Gn+fwSnmShddDm/\nV05ke2M19cGF0MLkxzfZnNl/QFprwKASqkH3SMLHkqqYZkTt7qkTYZrtupLs\nYK4iHEx78vPf66swJWCafKjaWbKWgyQOgIkDTV1p3dHY/lAR6pY0oDN6/e/q\nOc3m\r\n=+ad7\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.4.0_1593863447532_0.7195967078269287" }, "_hasShrinkwrap": false }, "11.5.0": { "name": "got", "version": "11.5.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && npm run build && nyc --reporter=html --reporter=text 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": "^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-beta.4.8", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.33", "@types/express": "^4.17.6", "@types/node": "^14.0.14", "@types/node-fetch": "^2.5.7", "@types/request": "^2.48.5", "@types/sinon": "^9.0.4", "@types/tough-cookie": "^4.0.0", "ava": "^3.10.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.1.0", "create-test-server": "^3.0.1", "del-cli": "^3.0.1", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^5.1.0", "nock": "^13.0.2", "node-fetch": "^2.6.0", "np": "^6.3.0", "nyc": "^15.1.0", "p-event": "^4.2.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.9.6", "xo": "^0.32.1" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "import/no-anonymous-default-export": "off", "@typescript-eslint/no-invalid-void-type": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "9834433e3f6d2d42e7f12f64e56e4084249b4b53", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.5.0", "_nodeVersion": "14.5.0", "_npmVersion": "6.14.5", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-vOZEcEaK0b6x11uniY0HcblZObKPRO75Jvz53VKuqGSaKCM/zEt0sj2LGYVdqDYJzO3wYdG+FPQQ1hsgoXy7vQ==", "shasum": "55dd61050f666679f46c49c877e1b2e064a7a523", "tarball": "https://registry.npmjs.org/got/-/got-11.5.0.tgz", "fileCount": 45, "unpackedSize": 205621, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBMWECRA9TVsSAnZWagAAPu0P/RUfhg00roiAkrGXiroe\nCgnhXDnxW7DTXm7zAB75ULwS0qF9xh9BRpD1POcL42Uv18S6FThNSbqjJp5u\nA1z5RnZiGFw6AdyYlc65elVYrfdA96SPIsohgxn38mrhVtI0gFpELr3hiz28\njKD5P03mXa/9FyXTaCsUiBbSOD2XBEVTGbncr1Uk5mTRA2PCNfloSU+d6pxA\nkuq9RCvb4/NA7gpj8kzVV+MKTohGEqYIH2Eyionavb8t6XdDokHy2KtbWKMx\n2Oujm9tWJU6MwMsMUWWQBH70/P4mrrFmtKeKB8X4SbX4PJoOOBTczt+BSIBj\ns3R/qCQrzC/pPeaSg4B5UhZ2LGdX/Wii/D7r6Kpni3qiwbEm2MGjFeVu5CIm\nDJ9INzHmvs3d+u5PVRv15Pg3Tgile4P19j6sp/a3tUgrboimpKSKWXwyF9Gv\nPcdSdgXqDkKoZjZMjImwK4uRofsRZ6NLL2NZWu7vCIJXbuP4ghBDjRfpr7Ps\nCaWhvt+3RPvZzaNGXcMq599AUm2K1kStFwoYFf1gyFnXaQxrpkViLTVfPwvV\nlq2T6Vd4Y1rqa5y/hKWcin5AtFW3bt1/WdhNnnDL955eHLKXTjybRAVg09y+\nOZ10KBJ8tUz1WcqUCYqfwefIBd1Ew7EMOQVoSf0AS/vm9ef37vu26MJYiIeV\nC4f4\r\n=xZbB\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.5.0_1594148228343_0.9541068589974018" }, "_hasShrinkwrap": false }, "11.5.1": { "name": "got", "version": "11.5.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && npm run build && nyc --reporter=html --reporter=text 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": "^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-beta.5.0", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.33", "@types/express": "^4.17.6", "@types/node": "^14.0.14", "@types/node-fetch": "^2.5.7", "@types/request": "^2.48.5", "@types/sinon": "^9.0.4", "@types/tough-cookie": "^4.0.0", "ava": "^3.10.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.1.0", "create-test-server": "^3.0.1", "del-cli": "^3.0.1", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^5.1.0", "nock": "^13.0.2", "node-fetch": "^2.6.0", "np": "^6.3.0", "nyc": "^15.1.0", "p-event": "^4.2.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.9.6", "xo": "^0.32.1" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "import/no-anonymous-default-export": "off", "@typescript-eslint/no-invalid-void-type": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "b38e39a47f44de126f5a9f069cf6ee8a90f8f0f2", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.5.1", "_nodeVersion": "12.10.0", "_npmVersion": "6.14.6", "dist": { "integrity": "sha512-reQEZcEBMTGnujmQ+Wm97mJs/OK6INtO6HmLI+xt3+9CvnRwWjXutUvb2mqr+Ao4Lu05Rx6+udx9sOQAmExMxA==", "shasum": "bf098a270fe80b3fb88ffd5a043a59ebb0a391db", "tarball": "https://registry.npmjs.org/got/-/got-11.5.1.tgz", "fileCount": 45, "unpackedSize": 209080, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEEQkCRA9TVsSAnZWagAAF30QAI7IxOuw7xChgmv+f4kX\nJWxjdjnRTiMDePl2YxsiKXBQnG8fvJQcmhl1amjkwQdqheddpOiFhIkAfqXa\nHdCpeMZ2TBz1Kyg20n018jc1Th6sAs06dWPz1y6Loqmkk49W4COlV41/cNlD\nf9/FCqcd3369i5YvVrDj+//kj6KUQ/efNoSY+EzUli1xtkkhp5jDQR3xl2Sd\nJLLLZFNVtv0VRaDEUrdJDsbbo1o8PLSANsZymwSYjtePP02VCUMNskFE+32q\nNYUhei0Ax2T3Heq2vRZv7ec/LbaTkLxh2Evw8G+IKDxH8jZQVfUS7V5+31T+\n6j5XEKnmdA9FEdt1v0Wxy5BIazWEWUNrB05BrxEX5I+QX+p7XkhVVJXYAdSk\n2PoDzVs4XN3A5QTDMsH1cj47qBpTA99tUl1tWG3nsdiDzCe79JqM4pzt1Jkd\nK7yCoJGV2PZ+kPMuv/nnplOn/Lx/wXIuS8DmbRnT4+HBX1MIh/gQ/5v7fxMv\nOGWGO/KEpiJaq3nEXTbGRqBSXf0spE5diOXfRohH/53pITNplZ7ozR7LlikY\ns3brqXN8DUkDek3OrMRi51suv0p3x8DADCWLDKu27MsHn47bJRglnYK2hPpo\nSDDu44scn7eAQH+nd7N8HqGSeUBdUPXqpVxJx4Eky0sOL1wCaH0BE+dW4rjB\nJ6Dd\r\n=WLiS\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.5.1_1594901538072_0.2144647845267349" }, "_hasShrinkwrap": false }, "11.5.2": { "name": "got", "version": "11.5.2", "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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && npm run build && nyc --reporter=html --reporter=text 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": "^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-beta.5.0", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.33", "@types/express": "^4.17.6", "@types/node": "^14.0.14", "@types/node-fetch": "^2.5.7", "@types/request": "^2.48.5", "@types/sinon": "^9.0.4", "@types/tough-cookie": "^4.0.0", "ava": "^3.10.0", "axios": "^0.19.2", "benchmark": "^2.1.4", "coveralls": "^3.1.0", "create-test-server": "^3.0.1", "del-cli": "^3.0.1", "delay": "^4.3.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^5.1.0", "nock": "^13.0.2", "node-fetch": "^2.6.0", "np": "^6.3.0", "nyc": "^15.1.0", "p-event": "^4.2.0", "sinon": "^9.0.2", "slow-stream": "0.0.4", "tempy": "^0.5.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "3.9.6", "xo": "^0.32.1" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "import/no-anonymous-default-export": "off", "@typescript-eslint/no-invalid-void-type": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "b86d971aaed3c91a1e17b1f9d8bdf665ffda1b9d", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.5.2", "_nodeVersion": "14.5.0", "_npmVersion": "6.14.5", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-yUhpEDLeuGiGJjRSzEq3kvt4zJtAcjKmhIiwNp/eUs75tRlXfWcHo5tcBaMQtnjHWC7nQYT5HkY/l0QOQTkVww==", "shasum": "772e3f3a06d9c7589c7c94dc3c83cdb31ddbf742", "tarball": "https://registry.npmjs.org/got/-/got-11.5.2.tgz", "fileCount": 45, "unpackedSize": 210090, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLTDgCRA9TVsSAnZWagAAvsYP/iIeX58BAm+qgCT/9kN7\nPtIn+i40hgHQiHaquYUQpO4BnEGIUjAaJ3xKqjmu2qOyomewT+d1aFMkTfJY\n6OloIyN3ACPYWyW4lpzmwyIJhcgCV1W7/IvJ49Af3FNXkweuuF/4CZw3+ZLc\nAIa5a9zLVtyFvD2CETxSRijsCaxwiG0uCjpbo2QGK/yCy5dA2wpUH7BTI9Ri\n2W9/XidtHK/ze8yjlO8KFoN9YUiWiktVuuqVGyfZBXDfwl0pxY4XXvqHru5G\nGgpmTx4ALKA83IhNbm0/+8sYMzPTUg5ri/08OSeEpeR45tfIVJQL1OeLnBYN\nPDvd+tyGqFpeY9XV6drUxHDc7gVQkZ7AqswOWV6Z+mD8nobTD5iZ2jKjQKq3\n+7JCYBvi3lR6IiFnvrWywyIoi3dYAXkOZnHog9EnyBqhIt9ueUKR3ShjJhXx\ntNsyW+mVqHkMBvOvGKadSn6I9LKpnrcNLdmthY477M3NhI8ou3n61dybxrwK\ngnlFZushUWldUqJfhSggdozwmm6zJ/pHpNNFlJdRMw/bgkRxCmX6vx3/ioLq\n15eabzZaq/jB7VAQpBK3lpocmwxx8Eh3VoqBhsnN5MHlAuQ+RWtvy/IvnWfN\n7N26BnZms3DywCwAZ0Qiu2rDVCFum7TXXsS6dpvYObXbPEHXWpKznDL1TVJC\naQKx\r\n=n5N5\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.5.2_1596797152138_0.8261393039930522" }, "_hasShrinkwrap": false }, "11.6.0": { "name": "got", "version": "11.6.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && npm run build && nyc --reporter=html --reporter=text 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": "^3.1.1", "@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-beta.5.2", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.33", "@types/express": "^4.17.7", "@types/node": "^14.6.0", "@types/node-fetch": "^2.5.7", "@types/pem": "^1.9.5", "@types/pify": "^3.0.2", "@types/request": "^2.48.5", "@types/sinon": "^9.0.5", "@types/tough-cookie": "^4.0.0", "ava": "^3.11.1", "axios": "^0.20.0", "benchmark": "^2.1.4", "coveralls": "^3.1.0", "create-test-server": "^3.0.1", "del-cli": "^3.0.1", "delay": "^4.4.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^6.0.0", "nock": "^13.0.4", "node-fetch": "^2.6.0", "np": "^6.4.0", "nyc": "^15.1.0", "p-event": "^4.2.0", "pem": "^1.14.4", "pify": "^5.0.0", "sinon": "^9.0.3", "slow-stream": "0.0.4", "tempy": "^0.6.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "^4.0.2", "xo": "^0.33.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "import/no-anonymous-default-export": "off", "@typescript-eslint/no-invalid-void-type": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "07f7c4dd94973ddcd581c59dfbe1d8f081c14ae3", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.6.0", "_nodeVersion": "14.5.0", "_npmVersion": "6.14.5", "dist": { "integrity": "sha512-ErhWb4IUjQzJ3vGs3+RR12NWlBDDkRciFpAkQ1LPUxi6OnwhGj07gQxjPsyIk69s7qMihwKrKquV6VQq7JNYLA==", "shasum": "4978c78f3cbc3a45ee95381f8bb6efd1db1f4638", "tarball": "https://registry.npmjs.org/got/-/got-11.6.0.tgz", "fileCount": 49, "unpackedSize": 257460, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT6H4CRA9TVsSAnZWagAA0y4QAJz+szB8PP6RZS5hiffE\nk1tqNhVcR1xgw2FoI8bGkH4ybD/DwMG567FhIfqO/+rh5v3CVuk4Gacb/5oP\nq259nh61uZxmXO3zDZj31qxOwYpipmRdrdBM1ACDmNHgCewKJFyMVhQ9bftt\nEyyGytuWb7ajI07SW0G89B1UKbBbrr7EUBQpb0h+OjtdyQzf4N3lGhWEBLdp\nXzwvu9jYLNJg2BOBBGorPnnWLcnA6kk9m1+5JnktXCRgIKnmo2Bz00EOmXqN\nngDyUgVO/eZuUXFtB1lUUYN491G1Hmfff6cM6GyaJg5RQV/ZToj89o+GmQYo\nmuPw+AsZkzw3h3JDA4KP/zBmv+8K2cpf4RD8yTBaiXuM2Suzz7olvaDTCLiL\noeDfdnnaOkL1rCsQy2sZYpAcf+XduYGtd+JAPG1l6jThMSegxjq23h4bGzIJ\nuvdcvDV50gcDMAms4Ioy65H/aowWqjztNbxTJuFRv/XUbf86H67+oqjBJiMA\nB5LZIVRsFUReijktYk+BfPdYVMi7I0MGabUistF2MvrqcZHwDQT9Ut+Uii+i\nE0cDyf9Uaxd0JYGnhW2Z2UmMixzHz9cn+ZhHfF3vx1mRAQjqZUqwY/Fa2Pt2\n4kI6rBmRl+9dOpu0RdAmtv504ycL80esS83SCOhsoR9YYzMy6FwGffCZuRkv\nTm6/\r\n=Sssz\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "sindresorhus@gmail.com", "name": "sindresorhus" }, { "email": "sz.marczak@gmail.com", "name": "szmarczak" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.6.0_1599054328142_0.17682675559305205" }, "_hasShrinkwrap": false }, "11.6.1": { "name": "got", "version": "11.6.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && npm run build && nyc --reporter=html --reporter=text 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": "^3.1.1", "@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-beta.5.2", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.33", "@types/express": "^4.17.7", "@types/node": "^14.6.0", "@types/node-fetch": "^2.5.7", "@types/pem": "^1.9.5", "@types/pify": "^3.0.2", "@types/request": "^2.48.5", "@types/sinon": "^9.0.5", "@types/tough-cookie": "^4.0.0", "ava": "^3.11.1", "axios": "^0.20.0", "benchmark": "^2.1.4", "coveralls": "^3.1.0", "create-test-server": "^3.0.1", "del-cli": "^3.0.1", "delay": "^4.4.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^6.0.0", "nock": "^13.0.4", "node-fetch": "^2.6.0", "np": "^6.4.0", "nyc": "^15.1.0", "p-event": "^4.2.0", "pem": "^1.14.4", "pify": "^5.0.0", "sinon": "^9.0.3", "slow-stream": "0.0.4", "tempy": "^0.6.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "^4.0.2", "xo": "^0.33.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "import/no-anonymous-default-export": "off", "@typescript-eslint/no-invalid-void-type": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "b94bf1fc9d6a6cd50ca15353a05feb45277a5763", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.6.1", "_nodeVersion": "10.22.0", "_npmVersion": "6.14.7", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-6izGvOsrd/4CsIdQMgweFOTCtS4sAwJTuCzIuVoTbCDzt3+wa3eGIHhSIMgEF6gfCDenslGlMUmAdPap5DkirQ==", "shasum": "a307122fc136c446f676f7b939d89dbc6ed6b909", "tarball": "https://registry.npmjs.org/got/-/got-11.6.1.tgz", "fileCount": 49, "unpackedSize": 262436, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfV8DUCRA9TVsSAnZWagAAWl8P+QF7T5mUB6WlJalCSdSe\nXrCJZ7AJJw3awLo/KtnrPF8VncC1HnMNfdX8nRrfWTADRh3L8T9A8t8qb3Mc\nUA3sepsG63xTFFZiEa/a18DC7ILeHyQR1OnX0tGYXrJGKPFyUrYA6dmOcqJF\nIYigg5GKKcJlXxzsu+dZfytqmmorr7DcyQcIcqhhoZxCj+6x6oHNn8iWTd4A\nZsy3SgEmdkCya2z/iOqMgevNqds9PZsA1OhKagU9uy8ZPvhhTDLwDMb6ZSsG\nNYSFy3Re5YlSGydmSLg6T5RfF9jYitxD42L5lOMoreld+D7TkB+SH363KR7N\nVAtM/bt4g7b3qvw448qK6kaJrJiVflCFcPZyEKP+a8MS991lWEwupdJSZgcT\nTThg8d3wN7V7K4hwP4YFDTIpbcldTFzwzTFLDDwx+PdbNaN6YmNYK82Y9RlK\nIKMYPxCApxN/H6FqLlMkiQQoSD10uY9wlf07mOzh0B8ZnL5G3hRybzkZ6krA\ncWY9pXb6IxoNoV09gnV/g9MMc+YFfplZvoZVaiFFuVY307XELbyoPAuKD84W\npbspEEubR8ZavkCRREqKLm9KGaVyjmdlwS4GN9Z/BkiikcyISMxvl7IFFrbT\nq0rmgdB1HpwamrpDnDqh5qhY44SRkZJF5+7NALN1K8pC9rSsRm4c10oHIU+1\n4ZES\r\n=eShF\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "szmarczak", "email": "sz.marczak@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.6.1_1599586515531_0.6114439537994905" }, "_hasShrinkwrap": false }, "11.6.2": { "name": "got", "version": "11.6.2", "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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && npm run build && nyc --reporter=html --reporter=text 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": "^3.1.1", "@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-beta.5.2", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.33", "@types/express": "^4.17.7", "@types/node": "^14.6.0", "@types/node-fetch": "^2.5.7", "@types/pem": "^1.9.5", "@types/pify": "^3.0.2", "@types/request": "^2.48.5", "@types/sinon": "^9.0.5", "@types/tough-cookie": "^4.0.0", "ava": "^3.11.1", "axios": "^0.20.0", "benchmark": "^2.1.4", "coveralls": "^3.1.0", "create-test-server": "^3.0.1", "del-cli": "^3.0.1", "delay": "^4.4.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^6.0.0", "nock": "^13.0.4", "node-fetch": "^2.6.0", "np": "^6.4.0", "nyc": "^15.1.0", "p-event": "^4.2.0", "pem": "^1.14.4", "pify": "^5.0.0", "sinon": "^9.0.3", "slow-stream": "0.0.4", "tempy": "^0.6.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "^4.0.2", "xo": "^0.33.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "import/no-anonymous-default-export": "off", "@typescript-eslint/no-invalid-void-type": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "876bff01c14968efefde13acd4234982d7091c13", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.6.2", "_nodeVersion": "15.0.0-pre", "_npmVersion": "6.14.8", "dist": { "integrity": "sha512-/21qgUePCeus29Jk7MEti8cgQUNXFSWfIevNIk4H7u1wmXNDrGPKPY6YsPY+o9CIT/a2DjCjRz0x1nM9FtS2/A==", "shasum": "79d7bb8c11df212b97f25565407a1f4ae73210ec", "tarball": "https://registry.npmjs.org/got/-/got-11.6.2.tgz", "fileCount": 49, "unpackedSize": 262953, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWjI+CRA9TVsSAnZWagAAppIQAJNdCecbP7DuAgg1kTGu\nfGMoMfjP/5ciHAL+rI8P4XEi9GcxrXCJXCRL0Ecm0ZQWYnrZIqUk9DSKHHO/\negz8U2XB4/sxFkpM3x9aJeZl7H+iuybY2KBQIhADEkJfQcXmQjSx+d7N9/ZK\nx0DPVz8Ldy2PAAIs4SEOfexAWoUIN8RhnwqhnuNX55mB6eeQi7BST67FXkjB\nNxQEOx483FQXiONctSDz5J3k7kLXEUj10dcQZ7FcVhkH7ynv+C8LGbDsruoc\nuQ5rDNPsO+A5g27tAUsNGqlRmOgQdUg/cBqeLL81vtqX6gb7OpE0a5xXxLaK\nGpwNuQqIqx3/fALOkgao0Dt+JxRrnDy27CLQLAdQkCIfnxdhF4XVVld1ZE2t\nH1eKTl47AiDvccSRCyZVtdZb7R4wyWQECrIUFzYf+zYcV+k53H8emnjLOJH4\nBsTmJvkFnJeV4nlYuF/fvSLQlWVH2uIBxwmPc3exqqZEAta5cZxpPILW0HQD\nNxila1xuCBzS886knyC3MSWoMGQbJaiYWEK2hUJTAnADO1oL50W9Lx0IgqLo\nW7gIXJBoDGK2IM9kQPhsdTSjoCqXLVEc2xmDLeIviDVAeF5z9ilgSvZ70AIk\nkQgtaFuEnpMlcR0Y/PuqPfJWFCYe5gJKVH2bZmWcsxe3FmppKMohgqtQw0HP\n8vsA\r\n=99Zc\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "szmarczak", "email": "sz.marczak@gmail.com" } ], "_npmUser": { "name": "szmarczak", "email": "sz.marczak@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.6.2_1599746621615_0.24702747101489253" }, "_hasShrinkwrap": false }, "11.7.0": { "name": "got", "version": "11.7.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", "main": "dist/source", "engines": { "node": ">=10.19.0" }, "scripts": { "test": "xo && npm run build && nyc --reporter=html --reporter=text 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": "^3.1.1", "@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-beta.5.2", "lowercase-keys": "^2.0.0", "p-cancelable": "^2.0.0", "responselike": "^2.0.0" }, "devDependencies": { "@ava/typescript": "^1.1.1", "@sindresorhus/tsconfig": "^0.7.0", "@sinonjs/fake-timers": "^6.0.1", "@types/benchmark": "^1.0.33", "@types/express": "^4.17.7", "@types/node": "^14.6.0", "@types/node-fetch": "^2.5.7", "@types/pem": "^1.9.5", "@types/pify": "^3.0.2", "@types/request": "^2.48.5", "@types/sinon": "^9.0.5", "@types/tough-cookie": "^4.0.0", "ava": "^3.11.1", "axios": "^0.20.0", "benchmark": "^2.1.4", "coveralls": "^3.1.0", "create-test-server": "^3.0.1", "del-cli": "^3.0.1", "delay": "^4.4.0", "express": "^4.17.1", "form-data": "^3.0.0", "get-stream": "^6.0.0", "nock": "^13.0.4", "node-fetch": "^2.6.0", "np": "^6.4.0", "nyc": "^15.1.0", "p-event": "^4.2.0", "pem": "^1.14.4", "pify": "^5.0.0", "sinon": "^9.0.3", "slow-stream": "0.0.4", "tempy": "^0.6.0", "to-readable-stream": "^2.1.0", "tough-cookie": "^4.0.0", "typescript": "^4.0.2", "xo": "^0.33.0" }, "types": "dist/source", "sideEffects": false, "ava": { "files": [ "test/*" ], "timeout": "1m", "typescript": { "rewritePaths": { "test/": "dist/test/" } } }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/test/**" ] }, "xo": { "ignores": [ "documentation/examples/*" ], "rules": { "@typescript-eslint/no-empty-function": "off", "node/prefer-global/url": "off", "node/prefer-global/url-search-params": "off", "import/no-anonymous-default-export": "off", "@typescript-eslint/no-invalid-void-type": "off" } }, "runkitExampleFilename": "./documentation/examples/runkit-example.js", "gitHead": "5d629587cfd7a1b8603376b3e814c02395be1204", "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "homepage": "https://github.com/sindresorhus/got#readme", "_id": "got@11.7.0", "_nodeVersion": "14.11.0", "_npmVersion": "6.14.8", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-7en2XwH2MEqOsrK0xaKhbWibBoZqy+f1RSUoIeF1BLcnf+pyQdDsljWMfmOh+QKJwuvDIiKx38GtPh5wFdGGjg==", "shasum": "a386360305571a74548872e674932b4ef70d3b24", "tarball": "https://registry.npmjs.org/got/-/got-11.7.0.tgz", "fileCount": 49, "unpackedSize": 266060, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZSc7CRA9TVsSAnZWagAA964P/Rzj/0hSNDxuBUOcZnt7\nhh68v5ONuChogb2vbsuUluWOb4aJDqK8UPpTiTMnsDVPPQPblqmSaGffNxgR\nyVCfxAgWXgFXILSDWdoEYxlUx3iR5caDNUxoN4EcATmyIb2c69B0TwOxQzcH\n3kttgO7fkzreRJucbLBlm4EAHLQK6aIEb0FXiQA8VY3YfFJLGot0dTGNLaHY\nVMpIGlLvYNCq5FLt2iiNDpRZeDDaJMPIPs1pyZPSFFwP1V8DSm7vb/qBh3/K\npifNr4i1APHXIlVeaikmgHzsRTqQWNng2bIx5borq+GQna+qrp0SX8sRgHGb\nh6eb4KWxik413bIdYNvwF1sgzXQ4fDL8GaluISXnn93g1fmZQChpnOovSQoY\nM3ONT6hcTs6ZAjdwFreR2r5Oh5atgb8ss6MK3tIvbFTb/qSHAjLQD1prIzzf\nOxcofAFNPtR8Y3RPNWnMpFKNHFqqC37hYfMKTrq2PtBMUtny7osUQEGvcf+E\nsYo9B2+ukPl6Wq31pG6+Lt6j7tjbheGouLs6s/CNrhi9ZjfAvj6XrX+mGWyT\nmD6RfouuexWTj6CzTKLHhwH31R7Xll/9tSXOKQ56MbOAMKZFbRIM0FhyHxzh\nmkeb64By1r7aXsGgpLYmd4+iNyUFBPYH2TF7oNbzDIYiHQAEx3CjPxzaNfQm\nq/hq\r\n=NzBQ\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "szmarczak", "email": "sz.marczak@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/got_11.7.0_1600464699075_0.42043928479729487" }, "_hasShrinkwrap": false } }, "readme": "
\n\t
\n\t
\n\t\"Got\"\n\t
\n\t
\n\t
\n\t

Huge thanks to for sponsoring Sindre Sorhus!\n\t

\n\t

(they love Got too!)

\n\t
\n\t
\n
\n\n> Human-friendly and powerful HTTP request library for Node.js\n\n[![Build Status: Linux](https://travis-ci.com/sindresorhus/got.svg?branch=master)](https://travis-ci.com/github/sindresorhus/got)\n[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)\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## 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\nconst got = require('got');\n\n(async () => {\n\ttry {\n\t\tconst response = await got('https://sindresorhus.com');\n\t\tconsole.log(response.body);\n\t\t//=> ' ...'\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error ...'\n\t}\n})();\n```\n\n###### JSON\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> {hello: 'world'}\n})();\n```\n\nSee [JSON mode](#json-mode) for more details.\n\n###### Streams\n\n```js\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst fs = require('fs');\nconst got = require('got');\n\nconst pipeline = promisify(stream.pipeline);\n\n(async () => {\n await pipeline(\n got.stream('https://sindresorhus.com'),\n fs.createWriteStream('index.html')\n );\n\n // For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable`\n await pipeline(\n fs.createReadStream('index.html'),\n got.stream.post('https://sindresorhus.com')\n );\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\ngot('https://example.com/?query=a b'); //=> https://example.com/?query=a%20b\ngot('https://example.com/', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b\n\n// The query string is overridden by `searchParams`\ngot('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\nconst got = require('got');\n\n(async () => {\n\tawait got('unicorn', {prefixUrl: 'https://cats.com'});\n\t//=> 'https://cats.com/unicorn'\n\n\tconst instance = got.extend({\n\t\tprefixUrl: 'https://google.com'\n\t});\n\n\tawait instance('unicorn', {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\toptions => {\n\t\t\t\t\toptions.prefixUrl = 'https://cats.com';\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\t//=> 'https://cats.com/unicorn'\n})();\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` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.\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. In contrast to other options, `context` is not enumerable.\n\n**Note:** The object is never merged, it's just passed through. Got will not modify the object in any way.\n\nIt's very useful for storing auth tokens:\n\n```js\nconst got = require('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\n(async () => {\n\tconst context = {\n\t\ttoken: 'secret'\n\t};\n\n\tconst response = await instance('https://httpbin.org/headers', {context});\n\n\t// Let's see the headers\n\tconsole.log(response.body);\n})();\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\n(async () => {\n\tconst responsePromise = got(url);\n\tconst bufferPromise = responsePromise.buffer();\n\tconst jsonPromise = responsePromise.json();\n\n\tconst [response, buffer, json] = Promise.all([responsePromise, bufferPromise, jsonPromise]);\n\t// `response` is an instance of Got Response\n\t// `buffer` is an instance of Buffer\n\t// `json` is an object\n})();\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 overwritting 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
\nExample\n\nUsing [`bourne`](https://github.com/hapijs/bourne) to prevent prototype pollution:\n\n```js\nconst got = require('got');\nconst Bourne = require('@hapi/bourne');\n\n(async () => {\n\tconst parsed = await got('https://example.com', {\n\t\tparseJson: text => Bourne.parse(text)\n\t}).json();\n\n\tconsole.log(parsed);\n})();\n```\n
\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
\nExamples\n\nIgnore properties starting with `_`:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got.post('https://example.com', {\n\t\tstringifyJson: object => JSON.stringify(object, (key, value) => {\n\t\t\tif (key.startsWith('_')) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treturn value;\n\t\t}),\n\t\tjson: {\n\t\t\tsome: 'payload',\n\t\t\t_ignoreMe: 1234\n\t\t}\n\t});\n})();\n```\n\nAll numbers as strings:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tawait got.post('https://example.com', {\n\t\tstringifyJson: object => JSON.stringify(object, (key, value) => {\n\t\t\tif (typeof value === 'number') {\n\t\t\t\treturn value.toString();\n\t\t\t}\n\n\t\t\treturn value;\n\t\t}),\n\t\tjson: {\n\t\t\tsome: 'payload',\n\t\t\tnumber: 1\n\t\t}\n\t});\n})();\n```\n
\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`\n\nThe function takes two arguments: `rawCookie` (`string`) and `url` (`string`).\n\n###### cookieJar.getCookieString\n\nType: `Function`\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 | 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\nconst got = require('got');\n\nconst searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);\n\ngot('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\n###### retry\n\nType: `number | object`\\\nDefault:\n- limit: `2`\n- calculateDelay: `({attemptCount, retryOptions, error, computedValue}) => computedValue | Promise`\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:** The `calculateDelay` function is responsible for the entire cache mechanism, including the `limit` property. To support it, 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\n\nYou can retry Got streams too. The implementation looks like this:\n\n```js\nconst got = require('got');\nconst fs = require('fs');\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\nBy default, redirects will use [method rewriting](https://tools.ietf.org/html/rfc7231#section-6.4). For example, 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. This will set the `accept-encoding` header to `gzip, deflate, br` on Node.js 11.7.0+ or `gzip, deflate` for older Node.js versions, unless you set it yourself.\n\nBrotli (`br`) support requires Node.js 11.7.0 or later.\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###### 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.\\\nIt will choose either HTTP/1.1 or HTTP/2 depending on the ALPN protocol.\n\n**Note:** Overriding `options.request` will disable HTTP2 support.\n\n**Note:** This option will default to `true` in the next upcoming major release.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst {headers} = await got('https://nghttp2.org/httpbin/anything', {http2: true});\n\tconsole.log(headers.via);\n\t//=> '2 nghttpx'\n})();\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\nconst got = require('got');\nconst HttpAgent = require('agentkeepalive');\nconst {HttpsAgent} = HttpAgent;\n\ngot('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`\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\nconst got = require('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\nconst got = require('got');\n\ngot('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\nconst got = require('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\nconst got = require('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\nconst got = require('got');\n\ngot('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 three arguments:\n- `response` - The current response object.\n- `allItems` - An array of the emitted items.\n- `currentItems` - Items from the current response.\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\nconst got = require('got');\n\n(async () => {\n\tconst limit = 10;\n\n\tconst items = got.paginate('https://example.com/items', {\n\t\tsearchParams: {\n\t\t\tlimit,\n\t\t\toffset: 0\n\t\t},\n\t\tpagination: {\n\t\t\tpaginate: (response, allItems, currentItems) => {\n\t\t\t\tconst previousSearchParams = response.request.options.searchParams;\n\t\t\t\tconst previousOffset = previousSearchParams.get('offset');\n\n\t\t\t\tif (currentItems.length < limit) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tsearchParams: {\n\t\t\t\t\t\t...previousSearchParams,\n\t\t\t\t\t\toffset: Number(previousOffset) + limit,\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n\n\tconsole.log('Items from all pages:', items);\n})();\n```\n\n###### pagination.filter\n\nType: `Function`\\\nDefault: `(item, allItems, currentItems) => true`\n\nChecks whether the item should be emitted or not.\n\n###### pagination.shouldContinue\n\nType: `Function`\\\nDefault: `(item, allItems, currentItems) => 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, allItems, currentItems) => !item.flag`. If you want to stop **after** emitting the entry, you should use `(item, allItems, currentItems) => allItems.some(entry => entry.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: `true`\n\nDefines how the parameter `allItems` in [pagination.paginate](#pagination.paginate), [pagination.filter](#pagination.filter) and [pagination.shouldContinue](#pagination.shouldContinue) is managed. When set to `false`, the parameter `allItems` is always an empty array.\n\nThis option can be helpful to save on memory usage when working with a large dataset.\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`\n\nOverride the default Certificate Authorities ([from Mozilla](https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReport))\n\n```js\n// Single Certificate Authority\ngot('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 | 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: , passphrase: }`\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`\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\ngot('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)\ngot('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\ngot('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\ngot('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\ngot('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\ngot('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\ngot('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\nconst got = require('got');\n\n(async () => {\n\t// Correct:\n\tawait got('https://example.com', {\n\t\thttps: {\n\t\t\trejectUnauthorized: true\n\t\t}\n\t});\n\n\t// You can disable it when developing an HTTPS app:\n\tawait got('https://localhost', {\n\t\thttps: {\n\t\t\trejectUnauthorized: false\n\t\t}\n\t});\n\n\t// Never do this:\n\tawait got('https://example.com', {\n\t\thttps: {\n\t\t\trejectUnauthorized: false\n\t\t}\n\t});\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\n(async () => {\n\tconst response = await got('https://sindresorhus.com')\n\t\t.on('downloadProgress', progress => {\n\t\t\t// Report download progress\n\t\t})\n\t\t.on('uploadProgress', progress => {\n\t\t\t// Report upload progress\n\t\t});\n\n\tconsole.log(response);\n})();\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\n(async () => {\n\tconst countLimit = 10;\n\n\tconst pagination = got.paginate('https://api.github.com/repos/sindresorhus/got/commits', {\n\t\tpagination: {countLimit}\n\t});\n\n\tconsole.log(`Printing latest ${countLimit} Got commits (newest to oldest):`);\n\n\tfor await (const commitData of pagination) {\n\t\tconsole.log(commitData.commit.message);\n\t}\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\n(async () => {\n\tconst countLimit = 10;\n\n\tconst results = await got.paginate.all('https://api.github.com/repos/sindresorhus/got/commits', {\n\t\tpagination: {countLimit}\n\t});\n\n\tconsole.log(`Printing latest ${countLimit} Got commits (newest to oldest):`);\n\tconsole.log(results);\n})();\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\n(async () => {\n\tconst client = got.extend({\n\t\tprefixUrl: 'httpbin.org',\n\t\theaders: {\n\t\t\t'x-foo': 'bar'\n\t\t}\n\t});\n\tconst {headers} = await client.get('headers').json();\n\t//=> headers['x-foo'] === 'bar'\n\n\tconst jsonClient = client.extend({\n\t\tresponseType: 'json',\n\t\tresolveBodyOnly: true,\n\t\theaders: {\n\t\t\t'x-baz': 'qux'\n\t\t}\n\t});\n\tconst {headers: headers2} = await jsonClient.get('headers');\n\t//=> headers2['x-foo'] === 'bar'\n\t//=> headers2['x-baz'] === 'qux'\n})();\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.\\\nAdditionaly, 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\n(async () => {\n\tconst request = got(url, options);\n\n\t// …\n\n\t// In another part of the code\n\tif (something) {\n\t\trequest.cancel();\n\t}\n\n\t// …\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\tif (request.isCanceled) { // Or `error instanceof got.CancelError`\n\t\t\t// Handle cancelation\n\t\t}\n\n\t\t// Handle other errors\n\t}\n})();\n```\n\nWhen using hooks, simply throw an error to abort the request.\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst request = got(url, {\n\t\thooks: {\n\t\t\tbeforeRequest: [\n\t\t\t\t() => {\n\t\t\t\t\tthrow new Error('Oops. Request canceled.');\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t});\n\n\ttry {\n\t\tawait request;\n\t} catch (error) {\n\t\t// …\n\t}\n})();\n```\n\nTo abort the Got Stream request, just call `stream.destroy()`.\n\n```js\nconst got = require('got');\n\nconst stream = got.stream(url);\nstream.destroy();\n```\n\n\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\nconst got = require('got');\n\nconst map = new Map();\n\n(async () => {\n\t\tlet response = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> false\n\n\t\tresponse = await got('https://sindresorhus.com', {cache: map});\n\t\tconsole.log(response.isFromCache);\n\t\t//=> true\n})();\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\nconst got = require('got');\nconst KeyvRedis = require('@keyv/redis');\n\nconst redis = new KeyvRedis('redis://user:pass@localhost:6379');\n\ngot('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// Or\nconst storageAdapter = require('./my-storage-adapter');\n// Or\nconst QuickLRU = require('quick-lru');\nconst storageAdapter = new QuickLRU({maxSize: 1000});\n\ngot('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\nconst got = require('got');\nconst tunnel = require('tunnel');\n\ngot('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\nconst got = require('got');\nconst {HttpsProxyAgent} = require('hpagent');\n\ngot('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\nconst {promisify} = require('util');\nconst got = require('got');\nconst {CookieJar} = require('tough-cookie');\n\n(async () => {\n\tconst cookieJar = new CookieJar();\n\tconst setCookie = promisify(cookieJar.setCookie.bind(cookieJar));\n\n\tawait setCookie('foo=bar', 'https://example.com');\n\tawait got('https://example.com', {cookieJar});\n})();\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\nconst fs = require('fs');\nconst got = require('got');\nconst FormData = require('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\nconst got = require('got');\nconst crypto = require('crypto');\nconst OAuth = require('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\ngot(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\nconst got = require('got');\n\ngot('http://unix:/var/run/docker.sock:/containers/json');\n\n// Or without protocol (HTTP by default)\ngot('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\nconst got4aws = require('got4aws');;\n\nconst awsClient = got4aws();\n\nconst response = await awsClient('https://.execute-api..amazonaws.com//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\nconst got = require('got');\nconst nock = require('nock');\n\nnock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(200, 'Hello world!');\n\n(async () => {\n\tconst response = await got('https://sindresorhus.com');\n\tconsole.log(response.body);\n\t//=> 'Hello world!'\n})();\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\nconst got = require('got');\nconst nock = require('nock');\n\nconst scope = nock('https://sindresorhus.com')\n\t.get('/')\n\t.reply(500, 'Internal server error')\n\t.persist();\n\n(async () => {\n\ttry {\n\t\tawait got('https://sindresorhus.com')\n\t} catch (error) {\n\t\tconsole.log(error.response.body);\n\t\t//=> 'Internal server error'\n\n\t\tconsole.log(error.response.retryCount);\n\t\t//=> 2\n\t}\n\n\tscope.persist(false);\n})();\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\nconst got = require('got');\n\n(async () => {\n\tconst {body} = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t},\n\t\tresponseType: 'json'\n\t});\n\n\tconsole.log(body.data);\n\t//=> '{\"hello\":\"world\"}'\n})();\n```\n\nTo receive a JSON body you can either set `responseType` option to `json` or use `promise.json()`. Example:\n\n```js\nconst got = require('got');\n\n(async () => {\n\tconst body = await got.post('https://httpbin.org/anything', {\n\t\tjson: {\n\t\t\thello: 'world'\n\t\t}\n\t}).json();\n\n\tconsole.log(body);\n\t//=> {…}\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\nconst got = require('got');\nconst pkg = require('./package.json');\n\ngot('https://sindresorhus.com', {\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\ngot('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\nconst got = require('got');\nconst pkg = require('./package.json');\n\nconst custom = got.extend({\n\tprefixUrl: 'example.com',\n\tresponseType: 'json',\n\theaders: {\n\t\t'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)`\n\t}\n});\n\n// Use `custom` exactly how you use `got`\n(async () => {\n\tconst list = await custom('v1/users/list');\n})();\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 | :sparkle: | :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: ", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "szmarczak", "email": "sz.marczak@gmail.com" } ], "time": { "modified": "2020-10-07T23:05:02.514Z", "created": "2014-03-27T22:43:12.196Z", "0.1.0": "2014-03-27T22:43:12.196Z", "0.1.1": "2014-04-12T13:47:38.755Z", "0.2.0": "2014-04-13T18:14:49.110Z", "0.3.0": "2014-05-10T23:39:27.862Z", "1.0.0": "2014-08-05T09:43:06.091Z", "1.0.1": "2014-08-12T08:21:25.243Z", "1.1.0": "2014-08-17T12:43:15.105Z", "1.2.0": "2014-08-20T22:37:57.307Z", "1.2.1": "2014-09-23T14:14:34.374Z", "1.2.2": "2014-10-03T14:11:25.869Z", "2.0.0": "2014-11-23T09:01:36.404Z", "2.1.0": "2014-12-02T10:31:12.398Z", "2.2.0": "2014-12-07T17:49:45.912Z", "2.3.0": "2015-01-05T09:15:38.995Z", "2.3.1": "2015-01-19T13:02:19.029Z", "2.3.2": "2015-01-24T08:03:00.841Z", "2.4.0": "2015-02-06T09:25:12.987Z", "2.5.0": "2015-03-24T18:47:14.096Z", "2.6.0": "2015-04-03T14:49:18.932Z", "2.7.0": "2015-04-06T11:30:17.357Z", "2.7.1": "2015-04-08T11:03:27.381Z", "2.7.2": "2015-04-08T18:59:36.007Z", "2.8.0": "2015-04-21T05:48:05.902Z", "2.8.1": "2015-04-21T14:08:22.947Z", "2.9.0": "2015-04-26T15:55:52.739Z", "2.9.1": "2015-04-26T18:29:10.206Z", "2.9.2": "2015-04-27T06:30:24.516Z", "3.0.0": "2015-05-06T06:30:58.538Z", "3.1.0": "2015-05-08T11:12:05.123Z", "3.2.0": "2015-05-08T16:48:58.710Z", "3.3.0": "2015-06-30T13:05:28.712Z", "3.3.1": "2015-07-15T10:16:53.806Z", "4.0.0": "2015-07-25T06:31:20.863Z", "4.1.0": "2015-07-27T11:12:35.402Z", "4.1.1": "2015-07-28T15:01:59.215Z", "4.2.0": "2015-09-09T08:58:13.223Z", "5.0.0": "2015-10-18T09:28:57.901Z", "5.1.0": "2015-11-04T06:14:56.435Z", "5.2.0": "2015-12-02T07:54:48.847Z", "6.0.0-rc1": "2015-12-07T05:37:56.742Z", "5.2.1": "2015-12-15T15:05:48.697Z", "5.3.0": "2015-12-20T17:26:48.800Z", "6.0.0": "2016-01-07T16:32:11.588Z", "6.0.1": "2016-01-11T12:48:36.344Z", "5.3.1": "2016-01-12T10:42:52.883Z", "5.3.2": "2016-01-13T08:59:14.318Z", "6.0.2": "2016-01-13T08:59:36.251Z", "5.4.0": "2016-01-16T11:25:19.190Z", "6.1.0": "2016-01-16T11:25:45.613Z", "5.4.1": "2016-01-25T10:06:31.058Z", "6.1.1": "2016-01-25T10:11:30.894Z", "6.1.2": "2016-02-28T18:11:22.062Z", "5.4.2": "2016-02-28T18:11:46.401Z", "6.2.0": "2016-03-03T07:54:01.845Z", "5.5.0": "2016-03-03T08:00:46.060Z", "5.5.1": "2016-04-05T07:29:12.088Z", "5.6.0": "2016-04-06T18:32:20.306Z", "6.3.0": "2016-04-06T18:33:09.807Z", "6.5.0": "2016-09-14T09:02:20.690Z", "5.7.0": "2016-11-01T08:43:39.778Z", "6.6.0": "2016-11-01T08:51:18.521Z", "6.6.1": "2016-11-02T06:11:37.653Z", "5.7.1": "2016-11-02T19:03:21.382Z", "6.6.2": "2016-11-06T10:15:33.357Z", "6.6.3": "2016-11-06T10:25:25.129Z", "6.7.0": "2016-12-29T10:18:05.884Z", "6.7.1": "2016-12-29T14:42:52.311Z", "7.0.0": "2017-05-29T08:02:02.304Z", "7.1.0": "2017-06-30T15:50:27.227Z", "8.0.0": "2017-11-16T10:06:21.021Z", "8.0.1": "2017-12-01T12:50:25.797Z", "8.0.2": "2018-01-13T13:56:59.785Z", "8.0.3": "2018-01-20T20:56:16.440Z", "8.1.0": "2018-02-11T15:21:29.820Z", "8.2.0": "2018-02-19T06:23:09.405Z", "8.3.0": "2018-03-09T16:57:36.401Z", "8.3.1": "2018-05-01T07:32:27.487Z", "8.3.2": "2018-07-03T09:01:13.131Z", "9.0.0": "2018-08-04T06:43:48.207Z", "9.1.0": "2018-08-23T11:56:19.886Z", "9.2.0": "2018-08-31T11:16:38.952Z", "9.2.1": "2018-09-06T10:34:16.424Z", "9.2.2": "2018-09-17T05:21:39.232Z", "9.3.0": "2018-10-30T09:01:56.256Z", "9.3.1": "2018-11-03T12:21:06.327Z", "9.3.2": "2018-11-08T16:18:35.578Z", "9.4.0": "2018-12-10T21:05:56.581Z", "9.5.0": "2018-12-18T15:08:39.990Z", "9.5.1": "2019-01-13T06:06:26.208Z", "9.6.0": "2019-01-17T05:04:06.497Z", "10.0.0-alpha.1": "2019-09-17T09:06:47.040Z", "10.0.0-alpha.1.1": "2019-09-17T10:42:44.167Z", "10.0.0-alpha.2": "2019-09-23T11:49:56.346Z", "10.0.0-alpha.2.1": "2019-09-23T14:44:35.047Z", "10.0.0-alpha.2.2": "2019-09-24T07:15:28.947Z", "10.0.0-alpha.3": "2019-11-01T19:56:07.423Z", "10.0.0-alpha.3.1": "2019-11-01T20:03:07.607Z", "10.0.0-alpha.3.2": "2019-11-01T20:06:17.252Z", "10.0.0-beta.1": "2019-11-18T07:58:21.165Z", "10.0.0-beta.2": "2019-11-25T04:53:12.387Z", "10.0.0-beta.3": "2019-12-01T07:00:03.073Z", "10.0.0": "2019-12-01T08:06:29.987Z", "10.0.1": "2019-12-01T16:50:02.067Z", "10.0.2": "2019-12-07T18:49:53.640Z", "10.0.3": "2019-12-09T18:46:37.644Z", "10.0.4": "2019-12-12T13:12:54.567Z", "10.1.0": "2019-12-19T12:30:33.044Z", "10.2.0": "2019-12-23T21:05:53.490Z", "10.2.1": "2020-01-01T18:31:23.114Z", "10.2.2": "2020-01-11T15:36:08.219Z", "10.3.0": "2020-01-24T14:53:51.009Z", "10.4.0": "2020-01-31T07:37:09.940Z", "10.5.0": "2020-02-06T20:07:46.721Z", "10.5.1": "2020-02-07T06:32:24.234Z", "10.5.2": "2020-02-07T06:54:27.640Z", "10.5.3": "2020-02-08T16:15:08.686Z", "10.5.4": "2020-02-08T17:50:24.004Z", "10.5.5": "2020-02-08T20:06:28.346Z", "10.5.6": "2020-02-16T19:54:03.379Z", "10.5.7": "2020-02-16T20:09:45.943Z", "10.6.0": "2020-02-20T07:39:39.758Z", "10.7.0": "2020-03-24T18:38:54.544Z", "11.0.0-beta.1": "2020-04-12T12:48:47.414Z", "11.0.0": "2020-04-20T11:54:01.538Z", "11.0.1": "2020-04-20T17:39:56.270Z", "11.0.2": "2020-04-22T09:20:28.708Z", "11.0.3": "2020-04-30T14:38:10.590Z", "11.1.0": "2020-05-02T11:48:15.922Z", "11.1.1": "2020-05-06T09:43:38.074Z", "11.1.2": "2020-05-08T11:07:09.547Z", "11.1.3": "2020-05-10T12:59:28.551Z", "11.1.4": "2020-05-16T16:27:11.293Z", "11.2.0": "2020-06-01T07:36:03.726Z", "11.3.0": "2020-06-05T16:31:04.164Z", "11.4.0": "2020-07-04T11:50:47.718Z", "11.5.0": "2020-07-07T18:57:08.490Z", "11.5.1": "2020-07-16T12:12:19.747Z", "11.5.2": "2020-08-07T10:45:52.284Z", "11.6.0": "2020-09-02T13:45:28.328Z", "11.6.1": "2020-09-08T17:35:15.690Z", "11.6.2": "2020-09-10T14:03:41.957Z", "11.7.0": "2020-09-18T21:31:39.227Z" }, "homepage": "https://github.com/sindresorhus/got#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/sindresorhus/got.git" }, "bugs": { "url": "https://github.com/sindresorhus/got/issues" }, "license": "MIT", "readmeFilename": "readme.md", "users": { "floatdrop": true, "zhangyaochun": true, "pid": true, "nickleefly": true, "davidchubbs": true, "amio": true, "vlkosinov": true, "cilindrox": true, "rsp": true, "btd": true, "moimikey": true, "ciceropablo": true, "kbakba": true, "rwhogg": true, "goliatone": true, "filipecarmona": true, "xieranmaya": true, "nichoth": true, "fdaciuk": true, "markthethomas": true, "xgheaven": true, "hengkiardo": true, "gvn": true, "carsy": true, "s4g6": true, "tobiasnickel": true, "knksmith57": true, "goblindegook": true, "allenmoore": true, "parkerproject": true, "starknode": true, "nickeltobias": true, "semencov": true, "vutran": true, "antixrist": true, "kevin-smets": true, "preco21": true, "jerrywu": true, "arttse": true, "slurm": true, "antanst": true, "pahud": true, "kissyid": true, "lousando": true, "programmer.severson": true, "lorenazohar": true, "mccoyjordan": true, "roccomuso": true, "gurunate": true, "eerne": true, "swapnil_mishra": true, "nxc": true, "evocateur": true, "azevedo": true, "sealthedeal": true, "floriannagel": true, "langri-sha": true, "xumx": true, "soenkekluth": true, "quanru": true, "internoma": true, "vinbhatt": true, "seangenabe": true, "tommytroylin": true, "restmount": true, "matthiasg": true, "quocnguyen": true, "archcorsair": true, "rocket0191": true, "tvtamas": true, "bigp": true, "panlw": true, "ishman": true, "omegga": true, "bphanikumar": true, "abuelwafa": true, "nerdybeast": true, "ahme-t": true, "3dprintingsystems": true, "netoperatorwibby": true, "ganesh.bhat": true, "andygreenegrass": true, "stevenvachon": true, "zousandian": true, "matthewh": true, "mlcdf": true, "wvlvik": true, "gfilip": true, "pmcalabrese": true, "d-band": true, "drewigg": true, "kostya.fokin": true, "monjer": true, "shanewholloway": true, "reggiezhang": true, "xcatliu": true, "lassevolkmann": true, "gprasannah": true, "space_cat_lady": true, "dqisme": true, "jota": true, "firefoxnx": true, "buddh!ka": true, "edjroz": true, "lestad": true, "program247365": true, "yusef.ho.tw": true, "vboctor": true, "leonadler": true, "adeamos83": true, "axelrindle": true, "nraibaud": true, "avivharuzi": true, "tomgao365": true, "maleeb": true, "herve": true, "phris": true, "rikstam": true, "d3ck": true, "chrisbuttery": true, "pl0x": true, "jochemstoel": true, "hualei": true, "huiyifyj": true, "lovue": true, "drveresh": true, "sonhuytran": true, "peter.heesterman": true } }