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

README.md

Async Logo

Build Status via Travis CI NPM version Coverage Status libhive - Open source examples 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 install --save async, it can also be used directly in the browser.

This version of the package is optimized for the Node.js environment. If you use Async with webpack, install async-es instead.

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