Promizr provides more than 60 functions including the usual collections operations (
each…) as well as some common patterns for asynchronous control flow (
waterfall…). It also include Queues to manage the maximum number of tasks to run concurrently.
$ npm install promizr
You could use
promizr in different context.
const promizr = ;await promizr;
// require.config.jsrequirejs;// module.js;
// contents will be an array containing the content of each fileconst contents = await promizr;// entities will be an array containing an array of ids of public entitiesconst entities = await promizr;// operations will run in parallelconst result1 result2 result3 = await promizr
You can find the package documentation here.
This project is under MIT License. See the LICENSE file for the full license text.