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

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