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

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