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

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