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

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