# @iterable-iterator/next

> Iterator next function for JavaScript

Latest version **2.0.1** (published 2021-07-15) · AGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @iterable-iterator/next
pnpm add @iterable-iterator/next
yarn add @iterable-iterator/next
bun add @iterable-iterator/next
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2021-07-15 |
| First published | 2021-04-27 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 481.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | make-github-pseudonymous-again |
| Maintainers | aureooms |
| Keywords | iter, iterable, iterator, next |

## Links

- npm: https://www.npmjs.com/package/@iterable-iterator/next
- Repository: https://github.com/iterable-iterator/next
- Homepage: https://iterable-iterator.github.io/next
- Issues: https://github.com/iterable-iterator/next/issues
- npm.io page: https://npm.io/package/@iterable-iterator/next

## Dependencies (1)

- [@failure-abstraction/error](https://npm.io/package/@failure-abstraction/error.md) ^6.0.1

## Recent versions

- 2.0.1 (latest) — 2021-07-15
- 2.0.0 — 2021-06-01
- 1.0.1 — 2021-05-06
- 1.0.0 — 2021-04-30
- 0.0.1 — 2021-04-27
- 0.0.0 — 2021-04-27

## README

:next_track_button: [@iterable-iterator/next](https://iterable-iterator.github.io/next)
==

Iterator next function for JavaScript.
See [docs](https://iterable-iterator.github.io/next/index.html).

> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).

```js
import {iter} from '@iterable-iterator/iter';
import {next, StopIteration} from '@iterable-iterator/next';
next(iter('ABC')); // A
next(iter('')); // throws StopIteration
// With default parameter
next(iter(''), 'x'); // x
```

[![License](https://img.shields.io/github/license/iterable-iterator/next.svg)](https://raw.githubusercontent.com/iterable-iterator/next/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@iterable-iterator/next.svg)](https://www.npmjs.org/package/@iterable-iterator/next)
[![Tests](https://img.shields.io/github/workflow/status/iterable-iterator/next/ci:test?event=push&label=tests)](https://github.com/iterable-iterator/next/actions/workflows/ci:test.yml?query=branch:main)
[![Dependencies](https://img.shields.io/david/iterable-iterator/next.svg)](https://david-dm.org/iterable-iterator/next)
[![Dev dependencies](https://img.shields.io/david/dev/iterable-iterator/next.svg)](https://david-dm.org/iterable-iterator/next?type=dev)
[![GitHub issues](https://img.shields.io/github/issues/iterable-iterator/next.svg)](https://github.com/iterable-iterator/next/issues)
[![Downloads](https://img.shields.io/npm/dm/@iterable-iterator/next.svg)](https://www.npmjs.org/package/@iterable-iterator/next)

[![Code issues](https://img.shields.io/codeclimate/issues/iterable-iterator/next.svg)](https://codeclimate.com/github/iterable-iterator/next/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/iterable-iterator/next.svg)](https://codeclimate.com/github/iterable-iterator/next/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/iterable-iterator/next/main.svg)](https://codecov.io/gh/iterable-iterator/next)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/iterable-iterator/next.svg)](https://codeclimate.com/github/iterable-iterator/next/trends/technical_debt)
[![Documentation](https://iterable-iterator.github.io/next/badge.svg)](https://iterable-iterator.github.io/next/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@iterable-iterator/next)](https://bundlephobia.com/result?p=@iterable-iterator/next)

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