Displaying 1 to 10 from 10 results

concurrently - Run commands concurrently. Like `npm run watch-js & npm run watch-less` but better.

  •    Javascript

Run multiple commands concurrently. Like npm run watch-js & npm run watch-less but better. I like task automation with npm but the usual way to run multiple commands concurrently is npm run watch-js & npm run watch-css. That's fine but it's hard to keep on track of different outputs. Also if one process fails, others still keep running and you won't even notice the difference.

p-times - Run promise-returning & async functions a specific number of times concurrently

  •    Javascript

Returns a Promise that is fulfilled when all promises returned from mapper are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from mapper in order.Number of times to call mapper.




p-filter - Filter promises concurrently

  •    Javascript

Useful when you need to run promise-returning & async functions multiple times with different inputs concurrently and get a filtered down result.Returns a Promise that is fulfilled when all promises in input and ones returned from filterer are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from filterer in input order.

p-map - Map over promises concurrently

  •    Javascript

Useful when you need to run promise-returning & async functions multiple times with different inputs concurrently.Returns a Promise that is fulfilled when all promises in input and ones returned from mapper are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from mapper in input order.

p-props - Like `Promise.all()` but for `Map` and `Object`

  •    Javascript

Useful when you need to run multiple promises concurrently and keep track of the fulfilled values by name.Returns a Promise that is fulfilled when all promises in input are fulfilled, or rejects if any of the promises reject. The fulfilled value is the same as input, but with a fulfilled version of each entry value.

p-retry - Retry a promise-returning or async function

  •    Javascript

It does exponential backoff and supports custom retry strategies for failed operations.Returns a Promise that is fulfilled when calling input returns a fulfilled promise. If calling input returns a rejected promise, input is called again until the max retries are reached, it then rejects with the last rejection reason.


p-one - Test whether some promise passes a testing function

  •    Javascript

Like Array.some for promises. Returns a Promise that is fulfilled when any promise in input and ones returned from testFn are fulfilled, or rejects if any of the promises reject. The fulfilled value is a boolean that is true if any promise passed the test and false otherwise.

each-promise - :cyclone: Asynchronous control flow library for now and then

  •    Javascript

You may think why this exists, what is this for, why not Sindre's microlibs like p-map, p-map-series, p-settle, p-each-series or p-reduce. They do their jobs okey, but in some cases they don't. And that's the my case. I need control over "fast fail" behavior, also known as "settle" or "bail". I need serial and parallel iteration, but parallel with concurrency too. They requires node v4, and uses native Promise constructor. I believe in that we should not use modern things if we don't need them, it is just syntax sugar. This package is written in way that works in node versions below v4 and also you can pass custom Promise constructor through options.Promise if you want.