![logo](https://github.com/firanorg/voluptatem-odit-et/raw/master/img/facebook_cover_photo_2_680.png)
MIT License
A modern JavaScript tooling library for asynchronous operations using async/await, promises and async generators.
This library is a modernized alternative to a lot of libraries like Async.js that were created using the legacy callback style to handle asynchronous operations. Its goal is to be as complete as any of those libraries while being built from the very beginning with async/await and promises in mind.
npm install --save @firanorg/voluptatem-odit-et
Or use jsDelivr to get the UMD version. The content of the library will be available under the modernAsync
global variable.
import { asyncMap, asyncSleep } from '@firanorg/voluptatem-odit-et'
const array = [1, 2, 3]
const result = await asyncMap(array, async (v) => {
await asyncSleep(10)
return v * 2
})
console.log(result)
See the documentation for the rest.