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

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