# sequentialize

> Make sure asynchronous functions are called one after another.

Latest version **1.0.1** (published 2018-11-02) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2018-11-02 |
| First published | 2018-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Piotr Czajkowski |
| Maintainers | czajkowski |
| Keywords | sequence, promise, synchronize |

## Links

- npm: https://www.npmjs.com/package/sequentialize
- Repository: https://github.com/czajkowski/sequentialize
- Homepage: https://github.com/czajkowski/sequentialize#readme
- Issues: https://github.com/czajkowski/sequentialize/issues
- npm.io page: https://npm.io/package/sequentialize

## Alternatives

- [@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
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-11-02

## README

# Sequentialize &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/czajkowski/sequentialize/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/sequentialize.svg?style=flat)](https://www.npmjs.com/package/sequentialize) [![Build Status](https://travis-ci.org/czajkowski/sequentialize.svg?branch=master)](https://travis-ci.org/czajkowski/sequentialize.svg?branch=master)

Make sure asynchronous functions are called one after another.

## Usage

### Call sequence

```javascript
const createCallSequence = require("sequentialize");

const callSequence = createCallSequence();

const asyncFunction = (value, interval = 10) =>
    new Promise(resolve => setTimeout(() => resolve(value), interval));

callSequence(asyncFunction, 1, 20).then(console.log);
callSequence(asyncFunction, 2, 10).then(console.log);
```

### Bound call sequence

```javascript
const createCallSequence = require("sequentialize");

const asyncFunction = (value, interval = 10) =>
    new Promise(resolve => setTimeout(() => resolve(value), interval));

const boundCallSequence = createCallSequence(asyncFunction);

boundCallSequence(1, 20).then(console.log);
boundCallSequence(2, 10).then(console.log);
```

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