1.0.7 • Published 11 months ago

@jswork/next-promise-compose v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

next-promise-compose

Promise compose for next.

version license size download

installation

npm install -S @jswork/next-promise-compose

usage

import '@jswork/next-promise-compose';

const double = x => x * 2;
const square = x => x * x;
const plus3 = x => new Promise(resolve => setTimeout(() => resolve(x + 3), 100));

nx.promiseCompose(plus3, square, double)(2)
  .then(result => {
    console.log(result);  // 50
  })
  .catch(console.error);

license

Code released under the MIT license.

1.0.7

11 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago