TopGit theo dõi sindresorhus/got trên GitHub trong nhóm Backend, đã đạt 15.0k sao. 🌐 Human-friendly and powerful HTTP request library for Node.js
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Sindre's open source work is supported by the community. Special thanks to:
Fast remote container builds and GitHub Actions runners.
Human-friendly and powerful HTTP request library for Node.js
See how Got compares to other HTTP libraries
You probably want Ky instead, by the same people. It's smaller, works in the browser too, and is more stable since it's built on Fetch. Or fetch-extras for simple needs.
Support questions should be asked here.
Install
npm install got
Warning: This package is native ESM and no longer provides a CommonJS export. If your project uses CommonJS, you will have to convert to ESM. Please don't open issues for questions regarding CommonJS / ESM.
Got v11 is no longer maintained and we will not accept any backport requests.
Take a peek
A quick start guide is available.
JSON mode
Got has a dedicated option for handling JSON payload.
Furthermore, the promise exposes a .json<T>() function that returns Promise<T>.
For advanced JSON usage, check out the parseJson and stringifyJson options.
For more useful tips like this, visit the Tips page.
Highlights
Used by 10K+ packages and 5M+ repos
Actively maintained
Documentation
By default, Got will retry on failure. To disable this option, set options.retry.limit to 0.
Main API
Promise API
Options
Stream API
Pagination API
Advanced HTTPS API
HTTP/2 support
Response class
Timeouts and retries
Advanced timeout handling
Retries on failure
Errors with metadata
Advanced creation
Hooks
Instances
Progress events & other events
Plugins
Compose
Cache, Proxy and UNIX sockets
RFC 7234 compliant caching
Proxy support
Unix Domain Sockets
Integration
Diagnostics Channel
TypeScript support
AWS
Testing
Migration guides
Request migration guide
(Note that Request is unmaintained)
Axios
Node.js
Got plugins
got4aws - Got convenience wrapper to interact with AWS v4 signed APIs
gh-got - Got convenience wrapper to interact with the GitHub API
gl-got - Got convenience wrapper to interact with the GitLab API
gotql - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings
got-fetch - Got with a fetch interface
got-scraping - Got wrapper specifically designed for web scraping purposes
got-ssrf - Got wrapper to protect server-side requests against SSRF attacks
Comparison
got
node-fetch
ky
axios
superagent
HTTP/2 support
:heavy_check_mark:
:x:
:heavy_check_mark:
:x:
:heavy_check_mark:**
Browser support
:x:
:heavy_check_mark:*
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
Promise API
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
Stream API
:heavy_check_mark:
Node.js only
:x:
:x:
:heavy_check_mark:
Pagination API
:heavy_check_mark:
:x:
:x:
:x:
:x:
Request aborting
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
RFC 7234 caching
:heavy_check_mark:
:x:
:x:
:x:
:x:
Cookies (out-of-the-box)
:heavy_check_mark:
:x:
:x:
:x:
:x:
Follows redirects
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
Retries on failure
:heavy_check_mark:
:x:
:heavy_check_mark:
:x:
:heavy_check_mark:
Progress events
:heavy_check_mark:
:x:
:heavy_check_mark:
Browser only
:heavy_check_mark:
Handles gzip/deflate
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
Advanced timeouts
:heavy_check_mark:
:x:
:x:
:x:
:x:
Timings
:heavy_check_mark:
:x:
:x:
:x:
:x:
Errors with metadata
:heavy_check_mark:
:x:
:heavy_check_mark:
:heavy_check_mark:
:x:
JSON mode
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
:heavy_check_mark:
Custom defaults
:heavy_check_mark:
:x:
:heavy_check_mark:
:heavy_check_mark:
:x:
Composable
:heavy_check_mark:
:x:
:x:
:x:
:heavy_check_mark:
Hooks
:heavy_check_mark:
:x:
:heavy_check_mark:
:heavy_check_mark:
:x:
Issues open
Issues closed
Downloads
Coverage
TBD
Build
Bugs
Dependents
Install size
GitHub stars
TypeScript support
Last commit
* It's almost API compatible with the browser fetch API.
** Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.
:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!
:grey_question: Feature in early stage of development. Very experimental.
Click here to see the install size of the Got dependencies.
sindresorhus/got thuộc nhóm Backend trên TopGit, cùng 6 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về sindresorhus/got ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/sindresorhus/got là nguồn chính thức.
sindresorhus/got có phải mã nguồn mở không?
Có — sindresorhus/got phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/sindresorhus/got.
sindresorhus/got là gì?
sindresorhus/got (sindresorhus/got) là dự án TypeScript trên GitHub. Theo mô tả gốc: 🌐 Human-friendly and powerful HTTP request library for Node.js
sindresorhus/got so với các dự án Backend khác thế nào?
sindresorhus/got được TopGit xếp vào nhóm Backend, với 15.0k sao GitHub và viết bằng TypeScript. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao sindresorhus/got được xếp vào nhóm Backend?
TopGit xếp sindresorhus/got vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "http", "http-client", "http-request"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc got có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về got.