/ student-intifada / node_modules / async /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/a year ago -  
[DIR]internal/a year ago -  
[TXT]CHANGELOG.mda year ago 33K 
[   ]LICENSEa year ago1.0K 
[TXT]README.mda year ago3.1K595aea1 more query options + view options [كارل مبارك]
[   ]all.jsa year ago3.5K 
[   ]allLimit.jsa year ago1.7K 
[   ]allSeries.jsa year ago1.6K 
[   ]any.jsa year ago3.7K 
[   ]anyLimit.jsa year ago1.7K 
[   ]anySeries.jsa year ago1.6K 
[   ]apply.jsa year ago217  
[   ]applyEach.jsa year ago1.9K 
[   ]applyEachSeries.jsa year ago1.3K 
[   ]asyncify.jsa year ago3.7K 
[   ]auto.jsa year ago 12K 
[   ]autoInject.jsa year ago6.9K 
[   ]bower.jsona year ago239  
[   ]cargo.jsa year ago2.7K 
[   ]cargoQueue.jsa year ago3.3K 
[   ]compose.jsa year ago1.5K 
[   ]concat.jsa year ago3.6K 
[   ]concatLimit.jsa year ago2.0K 
[   ]concatSeries.jsa year ago1.4K 
[   ]constant.jsa year ago302  
[   ]detect.jsa year ago3.2K 
[   ]detectLimit.jsa year ago1.8K 
[   ]detectSeries.jsa year ago1.7K 
[   ]dir.jsa year ago1.3K 
[   ]doDuring.jsa year ago2.2K 
[   ]doUntil.jsa year ago1.7K 
[   ]doWhilst.jsa year ago2.2K 
[   ]during.jsa year ago2.3K 
[   ]each.jsa year ago3.9K 
[   ]eachLimit.jsa year ago1.7K 
[   ]eachOf.jsa year ago5.6K 
[   ]eachOfLimit.jsa year ago1.6K 
[   ]eachOfSeries.jsa year ago1.3K 
[   ]eachSeries.jsa year ago1.5K 
[   ]ensureAsync.jsa year ago2.3K 
[   ]every.jsa year ago3.5K 
[   ]everyLimit.jsa year ago1.7K 
[   ]everySeries.jsa year ago1.6K 
[   ]filter.jsa year ago2.8K 
[   ]filterLimit.jsa year ago1.6K 
[   ]filterSeries.jsa year ago1.5K 
[   ]find.jsa year ago3.2K 
[   ]findLimit.jsa year ago1.8K 
[   ]findSeries.jsa year ago1.7K 
[   ]flatMap.jsa year ago3.6K 
[   ]flatMapLimit.jsa year ago2.0K 
[   ]flatMapSeries.jsa year ago1.4K 
[   ]foldl.jsa year ago4.8K 
[   ]foldr.jsa year ago1.5K 
[   ]forEach.jsa year ago3.9K 
[   ]forEachLimit.jsa year ago1.7K 
[   ]forEachOf.jsa year ago5.6K 
[   ]forEachOfLimit.jsa year ago1.6K 
[   ]forEachOfSeries.jsa year ago1.3K 
[   ]forEachSeries.jsa year ago1.5K 
[   ]forever.jsa year ago2.1K 
[   ]groupBy.jsa year ago3.5K 
[   ]groupByLimit.jsa year ago2.4K 
[   ]groupBySeries.jsa year ago1.3K 
[   ]index.jsa year ago 19K 
[   ]inject.jsa year ago4.8K 
[   ]log.jsa year ago1.2K 
[   ]map.jsa year ago4.5K 
[   ]mapLimit.jsa year ago1.6K 
[   ]mapSeries.jsa year ago1.5K 
[   ]mapValues.jsa year ago4.5K 
[   ]mapValuesLimit.jsa year ago2.1K 
[   ]mapValuesSeries.jsa year ago1.3K 
[   ]memoize.jsa year ago3.0K 
[   ]nextTick.jsa year ago1.4K 
[   ]package.jsona year ago2.2Kafd0ccc remove unused [كارل مبارك]
[   ]parallel.jsa year ago5.4K 
[   ]parallelLimit.jsa year ago1.5K 
[   ]priorityQueue.jsa year ago1.4K 
[   ]queue.jsa year ago626  
[   ]race.jsa year ago2.1K 
[   ]reduce.jsa year ago4.8K 
[   ]reduceRight.jsa year ago1.5K 
[   ]reflect.jsa year ago2.2K 
[   ]reflectAll.jsa year ago2.4K 
[   ]reject.jsa year ago2.6K 
[   ]rejectLimit.jsa year ago1.5K 
[   ]rejectSeries.jsa year ago1.4K 
[   ]retry.jsa year ago5.4K 
[   ]retryable.jsa year ago2.5K 
[   ]select.jsa year ago2.8K 
[   ]selectLimit.jsa year ago1.6K 
[   ]selectSeries.jsa year ago1.5K 
[   ]seq.jsa year ago2.6K 
[   ]series.jsa year ago5.7K 
[   ]setImmediate.jsa year ago1.4K 
[   ]some.jsa year ago3.7K 
[   ]someLimit.jsa year ago1.7K 
[   ]someSeries.jsa year ago1.6K 
[   ]sortBy.jsa year ago6.1K 
[   ]timeout.jsa year ago2.7K 
[   ]times.jsa year ago1.5K 
[   ]timesLimit.jsa year ago1.4K 
[   ]timesSeries.jsa year ago1.0K 
[   ]transform.jsa year ago5.4K 
[   ]tryEach.jsa year ago2.5K 
[   ]unmemoize.jsa year ago665  
[   ]until.jsa year ago2.0K 
[   ]waterfall.jsa year ago3.1K 
[   ]whilst.jsa year ago2.3K 
[   ]wrapSync.jsa year ago3.7K 
README.md

Async Logo

Github Actions CI status NPM version Coverage Status Join the chat at https://gitter.im/caolan/async 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)
})
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80