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

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