A utility for working with native JavaScript Promise. Aims to provide compatible bluebird API but on native Promise.
npm install native-promise-util
The follow API are currently provided:
- npu.delay
- npu.each, with additional
inflight
options - npu.filter
- npu.map
- npu.mapSeries, with additional
inflight
options - npu.timeout
This module is licensed under the MIT License.
This module was built by referencing the following materials:
- Most API design and a lot of test cases are ported from bluebird.
map
andfilter
API implementation are inspired by a Gist from yongjun21.
Some alternatives and similar implementations which can be considered:
- modern-async
- @vendredix/promise
- promise-fun, which is a collection of separated modules including p-map, p-filter and more