Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@apimatic/pagination

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apimatic/pagination

provides the async utilities for handling paginated API responses.

Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
230
666.67%
Maintainers
5
Weekly downloads
 
Created
Source

APIMatic pagination Libary for JavaScript

This library is currently in preview.

Provides utility interfaces and an async iterator class to simplify handling paginated API responses.

The exported interfaces and classes include:

  • CursorPagedResponse: Represents a paginated API response using cursor-based pagination.
  • LinkPagedResponse: PRepresents a paginated API response using link-based pagination.
  • NumberPagedResponse: Represents a paginated API response using explicit page numbers.
  • OffsetPagedResponse: Represents a paginated API response using offset-based pagination.
  • PagedData: An AsyncIterable class that supports both item-wise and page-wise iteration over paginated API responses. It dynamically determines and applies the most suitable pagination strategy from the provided options, ensuring compatibility with various pagination formats.

This library is used by JavaScript SDKs generated by the APIMatic Code Generator.

Builds

The following environments are supported:

  • Node.js v14+ and v16+
  • Bundlers like Rollup or Webpack
  • Web browsers

To support multiple environments, we export various builds:

EnvironmentUsage
Common.jsImport like this: require('@apimatic/pagination').
ES ModuleImport like this: import { /* your imports */ } from '@apimatic/pagination'.
Browsers*Use script: https://unpkg.com/@apimatic/pagination@VERSION/umd/schema.js
Modern Browsers (supports ESM and uses modern JS)*Use script: https://unpkg.com/@apimatic/pagination@VERSION/umd/schema.esm.js

* Don't forget to replace VERSION with the version number.

Note: We discourage importing files or modules directly from the package. These are likely to change in the future and should not be considered stable.

FAQs

Package last updated on 28 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts