0.5.0 • Published 4 years ago
native-promise-util v0.5.0
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-utilAPI
The follow API are currently provided:
- npu.delay
 - npu.each, with additional 
inflightoptions - npu.filter
 - npu.map
 - npu.mapSeries, with additional 
inflightoptions - 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.
 mapandfilterAPI 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