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