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

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