0.0.2 • Published 1 year ago

all-each v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

all-each

Utility to run promise parallel.

To install package:

npm install all-each

Usage

import allEach from 'all-each';

allEach(
  [1, 2, 3]
  0,
  async (item, idx) => console.log(idx, item),
)

Docs

  • limiter - count of concurrency
  • arr - list of items to iterate
  • callback - async callback (item, idx) => Promise;
  • getDelay - fn with dynamic delaying execution of promises

Deploy

To install dependencies:

npm install

To build:

npm build

This project was created using bun init in bun v1.1.0. Bun is a fast all-in-one JavaScript runtime.

0.0.2

1 year ago

0.0.1

1 year ago