# spurt

> A function to iterate over items with asynchronous calls synchronously.

Latest version **0.0.1** (published 2013-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install spurt
pnpm add spurt
yarn add spurt
bun add spurt
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-12-01 |
| First published | 2013-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Arnor Heidar Sigurdsson |
| Maintainers | arnorhs |
| Keywords | iterate, iterator, async, sync, asynchronous, calls, runner, run, queue |

## Links

- npm: https://www.npmjs.com/package/spurt
- Repository: https://github.com/arnorhs/spurt
- Issues: https://github.com/arnorhs/spurt/issues
- npm.io page: https://npm.io/package/spurt

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-12-01
- 0.0.0 — 2013-12-01

## README

# spurt

A function to iterate over items with asynchronous calls synchronously.

### Usage:

Install with npm:
```
npm install spurt
```

Example usage:

```javascript
var spurt = require('spurt');
var items = [1, 2, 3];

spurt(items, function(item, next) {
    // do something async, such as insert into db:
    db.insert(item, function(err, res) { // each entry
        if (!err) {
            next();
        }
    }, function() { // all rows done
        console.log("Inserted all the rows");
    });
```

*Pull requests welcome*

### TODO:
- maybe more flexible error handling
- optional success callback

### Licnse:
MIT license

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