fetch-paginate
JSON →A lightweight library for fetching multiple pages from paginated REST APIs using `fetch`. Supports Link headers (e.g., GitHub), page/offset/limit query parameters, and custom pagination logic. Version 6.1.0 is the current stable release. Ships TypeScript types. Provides both promise-based (`fetchPaginate`) and async iterator (`fetchPaginateIterator`) APIs. Isomorphic (works in Node.js with a fetch polyfill and in the browser). Allows custom `fetch` wrappers for caching. Key differentiator: simple, unopinionated, and works with any fetch-compatible environment.
Resources
packagefetch-paginate ↗