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