# @azure/core-paging

> Core types for paging async iterable iterators

Latest version **1.7.0** (published 2026-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @azure/core-paging
pnpm add @azure/core-paging
yarn add @azure/core-paging
bun add @azure/core-paging
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.7.0 |
| Published | 2026-07-13 |
| First published | 2019-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 1 |
| Unpacked size | 59.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2296 |
| Author | Microsoft Corporation |
| Maintainers | azure-sdk, microsoft1es, microsoft-oss-releases |
| Keywords | microsoft, clientruntime, azure, cloud |

## Links

- npm: https://www.npmjs.com/package/@azure/core-paging
- Repository: https://github.com/Azure/azure-sdk-for-js
- Homepage: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-paging/README.md
- Issues: https://github.com/Azure/azure-sdk-for-js/issues
- npm.io page: https://npm.io/package/@azure/core-paging

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.6.2

## Recent versions

- 1.7.0 (latest) — 2026-07-13
- 1.6.3-alpha.20260311.2 (dev) — 2026-03-11
- 1.6.3-alpha.20260305.6 — 2026-03-05
- 1.6.3-alpha.20260227.2 — 2026-02-27
- 1.6.3-alpha.20260226.1 — 2026-02-26
- 1.6.3-alpha.20260223.3 — 2026-02-23
- 1.6.3-alpha.20260220.1 — 2026-02-20
- 1.6.3-alpha.20260219.1 — 2026-02-19
- 1.6.3-alpha.20260213.2 — 2026-02-13
- 1.6.3-alpha.20260212.2 — 2026-02-12
- 1.6.3-alpha.20260210.1 — 2026-02-10
- 1.6.3-alpha.20260204.2 — 2026-02-04
- 1.6.3-alpha.20260120.1 — 2026-01-20
- 1.6.3-alpha.20260119.1 — 2026-01-19
- 1.6.3-alpha.20260109.1 — 2026-01-09
- … 429 more at https://npm.io/package/@azure/core-paging/versions

## README

# Azure Core Paging client library for JavaScript

This library provides core types for paging async iterable iterators.

## Getting started

### Installation

This package is primarily used in generated code and not meant to be consumed directly by end users.

## Key concepts

You can find an explanation of how this repository's code works by going to our [architecture overview](https://github.com/Azure/ms-rest-js/blob/master/docs/architectureOverview.md).

## Examples

Example of building with the types:

```typescript snippet:ReadmePagingSample
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";

function listSecrets(
  options: ListSecretsOptions = {},
): PagedAsyncIterableIterator<SecretAttributes> {
  const iter = listSecretsAll(options);
  return {
    async next() {
      return iter.next();
    },
    [Symbol.asyncIterator]() {
      return this;
    },
    byPage: (settings: PageSettings = {}) => listSecretsPage(settings, options),
  };
}

for await (const page of listSecrets().byPage({ maxPageSize: 2 })) {
  for (const secret of page) {
    console.log("secret: ", secret);
  }
}
```

And using the types:

```
  for await (let page of client.listSecrets().byPage({ maxPageSize: 2 })) {
    for (const secret of page) {
      console.log("secret: ", secret);
    }
  }
```

## Next steps

Try out this package in your application when dealing with async iterable iterators and provide feedback!

## Troubleshooting

Log an issue at https://github.com/Azure/azure-sdk-for-js/issues

## Contributing

If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.

---
_Source: https://npm.io/package/@azure/core-paging · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
