# iterator-next-callback

> Calls async iterator next using a callback format

Latest version **3.0.4** (published 2026-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install iterator-next-callback
pnpm add iterator-next-callback
yarn add iterator-next-callback
bun add iterator-next-callback
```

## 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 | 3.0.4 |
| Published | 2026-10-12 |
| First published | 2020-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=0.8 |
| Dependencies | 1 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Malakoff |
| Maintainers | kmalakoff |
| Keywords | iterator, asyncIterator, Symbol.asyncIterator, next, callback |

## Links

- npm: https://www.npmjs.com/package/iterator-next-callback
- Repository: https://github.com/kmalakoff/iterator-next-callback
- Issues: https://github.com/kmalakoff/iterator-next-callback/issues
- npm.io page: https://npm.io/package/iterator-next-callback

## Dependencies (1)

- [is-promise](https://npm.io/package/is-promise.md) ^4.0.0

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 3.0.4 (latest) — 2026-10-12
- 3.0.3 — 2026-09-12
- 3.0.2 — 2026-05-26
- 3.0.1 — 2026-05-26
- 3.0.0 — 2025-12-18
- 2.1.0 — 2025-12-15
- 2.0.12 — 2025-12-12
- 2.0.11 — 2025-12-12
- 2.0.10 — 2025-12-04
- 2.0.9 — 2025-12-04
- 2.0.8 — 2025-12-02
- 2.0.7 — 2025-11-06
- 2.0.6 — 2025-10-21
- 2.0.5 — 2025-10-21
- 2.0.4 — 2025-07-08
- … 24 more at https://npm.io/package/iterator-next-callback/versions

## README

## iterator-next-callback

Calls async iterator next using a callback format.

```sh
npm install iterator-next-callback
```

```js
var nextCallback = require('iterator-next-callback');
var assert = require('assert');

async function* createAsyncIterable(iterable) {
  for (const elem of iterable) {
    yield elem;
  }
}

var iterator = createAsyncIterable([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
var next = nextCallback(iterator);

next(function (err, result) {
  if (err) throw err;
  assert.equal(result.value, 1);
});

```

---
_Source: https://npm.io/package/iterator-next-callback · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
