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

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