prc b6c02717e6 Upload complete no-internet building environment. 1 rok temu
..
dist b6c02717e6 Upload complete no-internet building environment. 1 rok temu
internal b6c02717e6 Upload complete no-internet building environment. 1 rok temu
CHANGELOG.md b6c02717e6 Upload complete no-internet building environment. 1 rok temu
LICENSE b6c02717e6 Upload complete no-internet building environment. 1 rok temu
README.md b6c02717e6 Upload complete no-internet building environment. 1 rok temu
all.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
allLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
allSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
any.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
anyLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
anySeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
apply.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
applyEach.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
applyEachSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
asyncify.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
auto.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
autoInject.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
bower.json b6c02717e6 Upload complete no-internet building environment. 1 rok temu
cargo.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
cargoQueue.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
compose.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
concat.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
concatLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
concatSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
constant.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
detect.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
detectLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
detectSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
dir.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
doDuring.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
doUntil.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
doWhilst.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
during.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
each.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
eachLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
eachOf.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
eachOfLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
eachOfSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
eachSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
ensureAsync.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
every.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
everyLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
everySeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
filter.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
filterLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
filterSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
find.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
findLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
findSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
flatMap.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
flatMapLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
flatMapSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
foldl.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
foldr.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
forEach.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
forEachLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
forEachOf.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
forEachOfLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
forEachOfSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
forEachSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
forever.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
groupBy.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
groupByLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
groupBySeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
index.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
inject.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
log.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
map.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
mapLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
mapSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
mapValues.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
mapValuesLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
mapValuesSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
memoize.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
nextTick.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
package.json b6c02717e6 Upload complete no-internet building environment. 1 rok temu
parallel.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
parallelLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
priorityQueue.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
queue.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
race.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
reduce.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
reduceRight.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
reflect.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
reflectAll.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
reject.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
rejectLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
rejectSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
retry.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
retryable.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
select.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
selectLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
selectSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
seq.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
series.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
setImmediate.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
some.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
someLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
someSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
sortBy.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
timeout.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
times.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
timesLimit.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
timesSeries.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
transform.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
tryEach.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
unmemoize.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
until.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
waterfall.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
whilst.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu
wrapSync.js b6c02717e6 Upload complete no-internet building environment. 1 rok temu

README.md

Async Logo

Github Actions CI status NPM version Coverage Status jsDelivr Hits

Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with Node.js and installable via npm i async, it can also be used directly in the browser. A ESM/MJS version is included in the main async package that should automatically be used with compatible bundlers such as Webpack and Rollup.

A pure ESM version of Async is available as async-es.

For Documentation, visit https://caolan.github.io/async/

For Async v1.5.x documentation, go HERE

// for use with Node-style callbacks...
var async = require("async");

var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"};
var configs = {};

async.forEachOf(obj, (value, key, callback) => {
    fs.readFile(__dirname + value, "utf8", (err, data) => {
        if (err) return callback(err);
        try {
            configs[key] = JSON.parse(data);
        } catch (e) {
            return callback(e);
        }
        callback();
    });
}, err => {
    if (err) console.error(err.message);
    // configs is now a map of JSON data
    doSomethingWith(configs);
});
var async = require("async");

// ...or ES2017 async functions
async.mapLimit(urls, 5, async function(url) {
    const response = await fetch(url)
    return response.body
}, (err, results) => {
    if (err) throw err
    // results is now an array of the response bodies
    console.log(results)
})