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

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)
})