Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8691

Node.jsのHTTPクライアントまとめ2020

$
0
0

概要

2020/2にNode.jsのrequestモジュールがDeprecated(非推奨)になってしまいました。
https://qiita.com/kE-sakai/items/1a64462ad41c36813c92

そこで複数の代替モジュールについて各種比較サイトを調べてまとめました。

モジュール名優位性[参照サイトNo]
node-fetchバンドルサイズが小さい[1]
ダウンロード数が多い[2]
axiosGitHub starsが多い[3]
bentAPIスタイルが多い[1]
アップデートが頻繁[5]
superagentメンテナーが多い[5]
kyインストールサイズが小さい[3]
got
make-fetch-happen
unfetch
tiny-json-http
needle
urllib

参照サイト

1. Alternative libraries to request

https://github.com/request/request/issues/3143
スレッド形式。モジュール数が多い。

2. npm trends

https://www.npmtrends.com/node-fetch-vs-bent-vs-got-vs-make-fetch-happen-vs-axios-vs-superagent-vs-fetch-vs-unfetch-vs-tiny-json-http-vs-needle
グラフ形式。ダウンロード数が時系列で見れる。

3. got#comparison

https://github.com/sindresorhus/got#comparison
表形式。各種特徴について細かく比較されている。

4. Request is going into maintenance mode, this is what you need to know

https://nodesource.com/blog/express-going-into-maintenance-mode
文章形式。使い方や特徴が書いてある。

5. NPMCompare

https://npmcompare.com/compare/axios,bent,got,node-fetch,superagent
表形式。総合的に評価して全体ポイントを出している。

まとめ

総合的には参照サイト5のように、node-fetchが一番優位性があるように感じました。


Viewing all articles
Browse latest Browse all 8691

Trending Articles