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

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