# each-series

> Asynchronously iterate an array as a series

Latest version **1.0.0** (published 2014-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install each-series
pnpm add each-series
yarn add each-series
bun add each-series
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-08-21 |
| First published | 2014-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Eduardo Sorribas |
| Maintainers | sorribas |

## Links

- npm: https://www.npmjs.com/package/each-series
- Repository: git@github.com:sorribas/each-series
- Homepage: https://github.com/sorribas/each-series
- Issues: https://github.com/sorribas/each-series/issues
- npm.io page: https://npm.io/package/each-series

## Recent versions

- 1.0.0 (latest) — 2014-08-21
- 0.2.0 — 2014-03-14
- 0.1.0 — 2014-03-14

## README

# each-series

Asynchronously iterate an array as a series. Similar to  [async.eachSeries](https://github.com/caolan/async#eachseriesarr-iterator-callback), but as a small module.

## Installation

Install through npm

```
npm install each-series
```

## Example

```js
var each = require('each-series');

each([1,2,3,4,5,6,7], function(el, i, done) {
	setTimeout(function() {
		console.log(el);
		done();
	}, 100 - (el * 10));
}, function(err) {
	console.log('Done!');
});
```
The module is only one function

```
each(array, iterator, [callback])
```

The callback is optional.

## Error handling

If an error is passed to the `done` function passed to the iterator, iteration will be stopped and the callback
will be invoked with the error.

## License

MIT License

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