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

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