@product-live/promise.util
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

simple es6 promise util.

Install

npm install --save git+https://git@github.com/Product-Live/promise.util.git

Example

const promise = require('@product-live/promise.util');
const data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

promise.measure(() => {
	return promise.each(data, () => promise.delay(1000), 5);
}).then((res) => {
	console.log(Math.round(res / 1e9)) // 2
});

Readme

Keywords

none

Package Sidebar

Install

npm i @product-live/promise.util

Weekly Downloads

239

Version

1.0.4

License

MIT

Unpacked Size

6.07 kB

Total Files

8

Last publish

Collaborators

  • loic.cadenat
  • mt_pl
  • sb566115
  • clementaubert