Displaying 1 to 14 from 14 results




p-each-series - Iterate over promises serially

  •    Javascript

Useful as a side-effect iterator. Prefer p-map if you don't need side-effects, as it's concurrent.Returns a Promise that is fulfilled when all promises in input and ones returned from iterator are fulfilled, or rejects if any of the promises reject. The fulfillment value is the original input.

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-lazy - Create a lazy promise that defers execution until `.then()` or `.catch()` is called

  •    Javascript

Useful if you're doing some heavy operations and would like to only do it when the promise is actually used.Same as the Promise constructor. PLazy is a subclass of Promise.


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-map-series - Map over promises serially

  •    Javascript

Useful as a side-effect mapper. Use p-map if you don't need side-effects, as it's concurrent.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 mapper created promises fulfillment values.

p-reflect - Make a promise always fulfill with its actual fulfillment value or rejection reason

  •    Javascript

Useful when you want a promise to fulfill no matter what and would rather handle the actual state afterwards.Here, Promise.all would normally fail early because one of the promises rejects, but by using p-reflect, we can ignore the rejection and handle it later on.

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.

Promise.allSettled - ES Proposal spec-compliant shim for Promise.allSettled

  •    Javascript

ES Proposal spec-compliant shim for Promise.allSettled. Invoke its "shim" method to shim Promise.allSettled if it is unavailable or noncompliant. Note: a global Promise must already exist: the es6-shim is recommended. This package implements the es-shim API interface. It works in an ES3-supported environment that has Promise available globally, and complies with the proposed spec.

Promise.any - ES Proposal spec-compliant shim for Promise.any

  •    Javascript

ES Proposal spec-compliant shim for Promise.any. Invoke its "shim" method to shim Promise.any if it is unavailable or noncompliant. Note: a global Promise must already exist: the es6-shim is recommended. This package implements the es-shim API interface. It works in an ES3-supported environment that has Promise available globally, and complies with the proposed spec.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.