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

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