@@ -1033,76 +1033,84 @@ const h2got = got.extend({request});
1033
1033
1034
1034
## Comparison
1035
1035
1036
- | | ` got ` | [ ` request ` ] [ r0 ] | [ ` node-fetch ` ] [ n0 ] | [ ` axios ` ] [ a0 ] |
1037
- | -----------------------| :--------------:| :---------------:| :------------------:| :---------------:|
1038
- | HTTP/2 support | ❔ | ✖ | ✖ | ✖ |
1039
- | Browser support | ✖ | ✖ | ✔\* | ✔ |
1040
- | Electron support | ✔ | ✖ | ✖ | ✖ |
1041
- | Promise API | ✔ | ✔ | ✔ | ✔ |
1042
- | Stream API | ✔ | ✔ | Node.js only | ✖ |
1043
- | Request cancelation | ✔ | ✖ | ✔ | ✔ |
1044
- | RFC compliant caching | ✔ | ✖ | ✖ | ✖ |
1045
- | Cookies (out-of-box) | ✔ | ✔ | ✖ | ✖ |
1046
- | Follows redirects | ✔ | ✔ | ✔ | ✔ |
1047
- | Retries on failure | ✔ | ✖ | ✖ | ✖ |
1048
- | Progress events | ✔ | ✖ | ✖ | Browser only |
1049
- | Handles gzip/deflate | ✔ | ✔ | ✔ | ✔ |
1050
- | Advanced timeouts | ✔ | ✖ | ✖ | ✖ |
1051
- | Timings | ✔ | ✔ | ✖ | ✖ |
1052
- | Errors with metadata | ✔ | ✖ | ✖ | ✔ |
1053
- | JSON mode | ✔ | ✔ | ✖ | ✔ |
1054
- | Custom defaults | ✔ | ✔ | ✖ | ✔ |
1055
- | Composable | ✔ | ✖ | ✖ | ✖ |
1056
- | Hooks | ✔ | ✖ | ✖ | ✔ |
1057
- | Issues open | [ ![ ] [ gio ]] [ g1 ] | [ ![ ] [ rio ]] [ r1 ] | [ ![ ] [ nio ]] [ n1 ] | [ ![ ] [ aio ]] [ a1 ] |
1058
- | Issues closed | [ ![ ] [ gic ]] [ g2 ] | [ ![ ] [ ric ]] [ r2 ] | [ ![ ] [ nic ]] [ n2 ] | [ ![ ] [ aic ]] [ a2 ] |
1059
- | Downloads | [ ![ ] [ gd ]] [ g3 ] | [ ![ ] [ rd ]] [ r3 ] | [ ![ ] [ nd ]] [ n3 ] | [ ![ ] [ ad ]] [ a3 ] |
1060
- | Coverage | [ ![ ] [ gc ]] [ g4 ] | [ ![ ] [ rc ]] [ r4 ] | [ ![ ] [ nc ]] [ n4 ] | [ ![ ] [ ac ]] [ a4 ] |
1061
- | Build | [ ![ ] [ gb ]] [ g5 ] | [ ![ ] [ rb ]] [ r5 ] | [ ![ ] [ nb ]] [ n5 ] | [ ![ ] [ ab ]] [ a5 ] |
1062
- | Bugs | [ ![ ] [ gbg ]] [ g6 ] | [ ![ ] [ rbg ]] [ r6 ] | [ ![ ] [ nbg ]] [ n6 ] | [ ![ ] [ abg ]] [ a6 ] |
1063
- | Dependents | [ ![ ] [ gdp ]] [ g7 ] | [ ![ ] [ rdp ]] [ r7 ] | [ ![ ] [ ndp ]] [ n7 ] | [ ![ ] [ adp ]] [ a7 ] |
1064
- | Install size | [ ![ ] [ gis ]] [ g8 ] | [ ![ ] [ ris ]] [ r8 ] | [ ![ ] [ nis ]] [ n8 ] | [ ![ ] [ ais ]] [ a8 ] |
1036
+ | | ` got ` | [ ` request ` ] [ r0 ] | [ ` node-fetch ` ] [ n0 ] | [ ` axios ` ] [ a0 ] | [ ` superagent ` ] [ s0 ] |
1037
+ | -----------------------| :--------------:| :---------------:| :------------------:| :---------------:| :--------------------: |
1038
+ | HTTP/2 support | ❔ | ✖ | ✖ | ✖ | ✔ \*\* |
1039
+ | Browser support | ✖ | ✖ | ✔\* | ✔ | ✔ |
1040
+ | Electron support | ✔ | ✖ | ✖ | ✖ | ✖ |
1041
+ | Promise API | ✔ | ✔ | ✔ | ✔ | ✔ |
1042
+ | Stream API | ✔ | ✔ | Node.js only | ✖ | ✔ |
1043
+ | Request cancelation | ✔ | ✖ | ✔ | ✔ | ✔ |
1044
+ | RFC compliant caching | ✔ | ✖ | ✖ | ✖ | ✖ |
1045
+ | Cookies (out-of-box) | ✔ | ✔ | ✖ | ✖ | ✖ |
1046
+ | Follows redirects | ✔ | ✔ | ✔ | ✔ | ✔ |
1047
+ | Retries on failure | ✔ | ✖ | ✖ | ✖ | ✔ |
1048
+ | Progress events | ✔ | ✖ | ✖ | Browser only | ✔ |
1049
+ | Handles gzip/deflate | ✔ | ✔ | ✔ | ✔ | ✔ |
1050
+ | Advanced timeouts | ✔ | ✖ | ✖ | ✖ | ✖ |
1051
+ | Timings | ✔ | ✔ | ✖ | ✖ | ✖ |
1052
+ | Errors with metadata | ✔ | ✖ | ✖ | ✔ | ✖ |
1053
+ | JSON mode | ✔ | ✔ | ✖ | ✔ | ✔ |
1054
+ | Custom defaults | ✔ | ✔ | ✖ | ✔ | ✖ |
1055
+ | Composable | ✔ | ✖ | ✖ | ✖ | ✔ |
1056
+ | Hooks | ✔ | ✖ | ✖ | ✔ | ✖ |
1057
+ | Issues open | [ ![ ] [ gio ]] [ g1 ] | [ ![ ] [ rio ]] [ r1 ] | [ ![ ] [ nio ]] [ n1 ] | [ ![ ] [ aio ]] [ a1 ] | [ ![ ] [ sio ]] [ s1 ] |
1058
+ | Issues closed | [ ![ ] [ gic ]] [ g2 ] | [ ![ ] [ ric ]] [ r2 ] | [ ![ ] [ nic ]] [ n2 ] | [ ![ ] [ aic ]] [ a2 ] | [ ![ ] [ sic ]] [ s2 ] |
1059
+ | Downloads | [ ![ ] [ gd ]] [ g3 ] | [ ![ ] [ rd ]] [ r3 ] | [ ![ ] [ nd ]] [ n3 ] | [ ![ ] [ ad ]] [ a3 ] | [ ![ ] [ sd ]] [ s3 ] |
1060
+ | Coverage | [ ![ ] [ gc ]] [ g4 ] | [ ![ ] [ rc ]] [ r4 ] | [ ![ ] [ nc ]] [ n4 ] | [ ![ ] [ ac ]] [ a4 ] | unknown |
1061
+ | Build | [ ![ ] [ gb ]] [ g5 ] | [ ![ ] [ rb ]] [ r5 ] | [ ![ ] [ nb ]] [ n5 ] | [ ![ ] [ ab ]] [ a5 ] | [ ![ ] [ sb ]] [ s5 ] |
1062
+ | Bugs | [ ![ ] [ gbg ]] [ g6 ] | [ ![ ] [ rbg ]] [ r6 ] | [ ![ ] [ nbg ]] [ n6 ] | [ ![ ] [ abg ]] [ a6 ] | [ ![ ] [ sbg ]] [ s6 ] |
1063
+ | Dependents | [ ![ ] [ gdp ]] [ g7 ] | [ ![ ] [ rdp ]] [ r7 ] | [ ![ ] [ ndp ]] [ n7 ] | [ ![ ] [ adp ]] [ a7 ] | [ ![ ] [ sdp ]] [ s7 ] |
1064
+ | Install size | [ ![ ] [ gis ]] [ g8 ] | [ ![ ] [ ris ]] [ r8 ] | [ ![ ] [ nis ]] [ n8 ] | [ ![ ] [ ais ]] [ a8 ] | [ ![ ] [ sis ]] [ s8 ] |
1065
1065
1066
1066
\* It's almost API compatible with the browser ` fetch ` API.<br >
1067
+ \*\* Need to switch the protocol manually.<br >
1067
1068
❔ Experimental support.
1068
1069
1069
1070
<!-- GITHUB -->
1070
1071
[ r0 ] : https://github.com/request/request
1071
1072
[ n0 ] : https://github.com/bitinn/node-fetch
1072
1073
[ a0 ] : https://github.com/axios/axios
1074
+ [ s0 ] : https://github.com/visionmedia/superagent
1073
1075
1074
1076
<!-- ISSUES OPEN -->
1075
1077
[ gio ] : https://badgen.net/github/open-issues/sindresorhus/got?label
1076
1078
[ rio ] : https://badgen.net/github/open-issues/request/request?label
1077
1079
[ nio ] : https://badgen.net/github/open-issues/bitinn/node-fetch?label
1078
1080
[ aio ] : https://badgen.net/github/open-issues/axios/axios?label
1081
+ [ sio ] : https://badgen.net/github/open-issues/visionmedia/superagent?label
1079
1082
1080
1083
[ g1 ] : https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
1081
1084
[ r1 ] : https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
1082
1085
[ n1 ] : https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
1083
1086
[ a1 ] : https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
1087
+ [ s1 ] : https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
1084
1088
1085
1089
<!-- ISSUES CLOSED -->
1086
1090
[ gic ] : https://badgen.net/github/closed-issues/sindresorhus/got?label
1087
1091
[ ric ] : https://badgen.net/github/closed-issues/request/request?label
1088
1092
[ nic ] : https://badgen.net/github/closed-issues/bitinn/node-fetch?label
1089
1093
[ aic ] : https://badgen.net/github/closed-issues/axios/axios?label
1094
+ [ sic ] : https://badgen.net/github/closed-issues/visionmedia/superagent?label
1090
1095
1091
1096
[ g2 ] : https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc
1092
1097
[ r2 ] : https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc
1093
1098
[ n2 ] : https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc
1094
1099
[ a2 ] : https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc
1100
+ [ s2 ] : https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc
1095
1101
1096
1102
<!-- DOWNLOADS -->
1097
1103
[ gd ] : https://badgen.net/npm/dm/got?label
1098
1104
[ rd ] : https://badgen.net/npm/dm/request?label
1099
1105
[ nd ] : https://badgen.net/npm/dm/node-fetch?label
1100
1106
[ ad ] : https://badgen.net/npm/dm/axios?label
1107
+ [ sd ] : https://badgen.net/npm/dm/superagent?label
1101
1108
1102
1109
[ g3 ] : https://www.npmjs.com/package/got
1103
1110
[ r3 ] : https://www.npmjs.com/package/request
1104
1111
[ n3 ] : https://www.npmjs.com/package/node-fetch
1105
1112
[ a3 ] : https://www.npmjs.com/package/axios
1113
+ [ s3 ] : https://www.npmjs.com/package/superagent
1106
1114
1107
1115
<!-- COVERAGE -->
1108
1116
[ gc ] : https://badgen.net/coveralls/c/github/sindresorhus/got?label
@@ -1120,44 +1128,52 @@ const h2got = got.extend({request});
1120
1128
[ rb ] : https://badgen.net/travis/request/request?label
1121
1129
[ nb ] : https://badgen.net/travis/bitinn/node-fetch?label
1122
1130
[ ab ] : https://badgen.net/travis/axios/axios?label
1131
+ [ sb ] : https://badgen.net/travis/visionmedia/superagent?label
1123
1132
1124
1133
[ g5 ] : https://travis-ci.org/sindresorhus/got
1125
1134
[ r5 ] : https://travis-ci.org/request/request
1126
1135
[ n5 ] : https://travis-ci.org/bitinn/node-fetch
1127
1136
[ a5 ] : https://travis-ci.org/axios/axios
1137
+ [ s5 ] : https://travis-ci.org/visionmedia/superagent
1128
1138
1129
1139
<!-- BUGS -->
1130
1140
[ gbg ] : https://badgen.net/github/label-issues/sindresorhus/got/bug/open?label
1131
1141
[ rbg ] : https://badgen.net/github/label-issues/request/request/Needs%20investigation/open?label
1132
1142
[ nbg ] : https://badgen.net/github/label-issues/bitinn/node-fetch/bug/open?label
1133
1143
[ abg ] : https://badgen.net/github/label-issues/axios/axios/bug/open?label
1144
+ [ sbg ] : https://badgen.net/github/label-issues/visionmedia/superagent/Bug/open?label
1134
1145
1135
1146
[ g6 ] : https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug
1136
1147
[ r6 ] : https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A"Needs+investigation"
1137
1148
[ n6 ] : https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug
1138
1149
[ a6 ] : https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug
1150
+ [ s6 ] : https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug
1139
1151
1140
1152
<!-- DEPENDENTS -->
1141
1153
[ gdp ] : https://badgen.net/npm/dependents/got?label
1142
1154
[ rdp ] : https://badgen.net/npm/dependents/request?label
1143
1155
[ ndp ] : https://badgen.net/npm/dependents/node-fetch?label
1144
1156
[ adp ] : https://badgen.net/npm/dependents/axios?label
1157
+ [ sdp ] : https://badgen.net/npm/dependents/superagent?label
1145
1158
1146
1159
[ g7 ] : https://www.npmjs.com/package/got?activeTab=dependents
1147
1160
[ r7 ] : https://www.npmjs.com/package/request?activeTab=dependents
1148
1161
[ n7 ] : https://www.npmjs.com/package/node-fetch?activeTab=dependents
1149
1162
[ a7 ] : https://www.npmjs.com/package/axios?activeTab=dependents
1163
+ [ s7 ] : https://www.npmjs.com/package/visionmedia?activeTab=dependents
1150
1164
1151
1165
<!-- INSTALL SIZE -->
1152
1166
[ gis ] : https://badgen.net/packagephobia/install/got?label
1153
1167
[ ris ] : https://badgen.net/packagephobia/install/request?label
1154
1168
[ nis ] : https://badgen.net/packagephobia/install/node-fetch?label
1155
1169
[ ais ] : https://badgen.net/packagephobia/install/axios?label
1170
+ [ sis ] : https://badgen.net/packagephobia/install/superagent?label
1156
1171
1157
1172
[ g8 ] : https://packagephobia.now.sh/result?p=got
1158
1173
[ r8 ] : https://packagephobia.now.sh/result?p=request
1159
1174
[ n8 ] : https://packagephobia.now.sh/result?p=node-fetch
1160
1175
[ a8 ] : https://packagephobia.now.sh/result?p=axios
1176
+ [ s8 ] : https://packagephobia.now.sh/result?p=superagent
1161
1177
1162
1178
1163
1179
## Related
0 commit comments