@devtea2027/corporis-fugit-laboriosam-sint v2.1.18
@devtea2027/corporis-fugit-laboriosam-sint
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.
- Exclusively uses async/await, promises and async generators in its code, tests and documentation.
- Has low bundle size.
- Has 100% code coverage.
- Bundled for ESM modules, CommonJS and UMD.
- Works in node >= 8 and in the vast majority of browsers (very old browser compatibility can be achieved using Babel and shims).
- Has Typescript support.
Installation
npm install --save @devtea2027/corporis-fugit-laboriosam-sint
Or use jsDelivr to get the UMD version. The content of the library will be available under the modernAsync
global variable.
Usage
import { asyncMap, asyncSleep } from '@devtea2027/corporis-fugit-laboriosam-sint'
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.
Migrating from version 1.X to version 2.X
Changelog
Contribution Guide
License
14 days ago
16 days ago
15 days ago
18 days ago
17 days ago
19 days ago
20 days ago
21 days ago
22 days ago
23 days ago
24 days ago
25 days ago
26 days ago
27 days ago
28 days ago
29 days ago
30 days ago
1 month ago
1 month ago
1 month ago