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

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