native-promise-util
v0.5.0
Published
Utility for working with native Promise
Downloads
25
Maintainers
Readme
native-promise-util (npu)
A utility for working with native JavaScript Promise. Aims to provide compatible bluebird API but on native Promise.
Install
npm install native-promise-util
API
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
License
This module is licensed under the MIT License.
Acknowledge
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.
Alternatives
Some alternatives and similar implementations which can be considered:
- async
- modern-async
- @vendredix/promise
- promise-fun, which is a collection of separated modules including p-map, p-filter and more