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

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