# conserial

> Run promises concurrently in a serial manner

Latest version **0.1.1** (published 2022-10-31) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2022-10-31 |
| First published | 2022-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rizki Romadhoni |
| Maintainers | rromadhoni |

## Links

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

## Recent versions

- 0.1.1 (latest) — 2022-10-31
- 0.1.0 — 2022-10-15

## README

# Conserial

Run promises concurrently in a serial manner. Dependencies are resolved automatically.

## Installation

```bash
npm install conserial
```

## Usage

```js
const Conserial = require("conserial");

const run = new Conserial();

const one = run.async(async () => 1);
const two = run.async(async () => 2);
// 1 and 2 are run concurrently
// 3 is run after 1 and 2 are resolved
const three = run.async(
  async (one, two) => one.result + two.result,
  [one, two] // register dependencies
);

// don't forget to resolve these promises
await run.batch();

console.log(three.result); // 3
```

## Disclaimer

This is a proof of concept. API may change in the future. Use at your own risk.

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