Enforces rules in Gabe's discord server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Geometer1729 7e6807c787
make count more interesting
3 years ago
..
dist Add thicc node modules 3 years ago
internal Add thicc node modules 3 years ago
CHANGELOG.md Add thicc node modules 3 years ago
LICENSE Add thicc node modules 3 years ago
README.md Add thicc node modules 3 years ago
all.js Add thicc node modules 3 years ago
allLimit.js Add thicc node modules 3 years ago
allSeries.js Add thicc node modules 3 years ago
any.js Add thicc node modules 3 years ago
anyLimit.js Add thicc node modules 3 years ago
anySeries.js Add thicc node modules 3 years ago
apply.js Add thicc node modules 3 years ago
applyEach.js Add thicc node modules 3 years ago
applyEachSeries.js Add thicc node modules 3 years ago
asyncify.js Add thicc node modules 3 years ago
auto.js Add thicc node modules 3 years ago
autoInject.js Add thicc node modules 3 years ago
bower.json Add thicc node modules 3 years ago
cargo.js Add thicc node modules 3 years ago
compose.js Add thicc node modules 3 years ago
concat.js Add thicc node modules 3 years ago
concatLimit.js Add thicc node modules 3 years ago
concatSeries.js Add thicc node modules 3 years ago
constant.js Add thicc node modules 3 years ago
detect.js Add thicc node modules 3 years ago
detectLimit.js Add thicc node modules 3 years ago
detectSeries.js Add thicc node modules 3 years ago
dir.js Add thicc node modules 3 years ago
doDuring.js Add thicc node modules 3 years ago
doUntil.js Add thicc node modules 3 years ago
doWhilst.js Add thicc node modules 3 years ago
during.js Add thicc node modules 3 years ago
each.js Add thicc node modules 3 years ago
eachLimit.js Add thicc node modules 3 years ago
eachOf.js Add thicc node modules 3 years ago
eachOfLimit.js Add thicc node modules 3 years ago
eachOfSeries.js Add thicc node modules 3 years ago
eachSeries.js Add thicc node modules 3 years ago
ensureAsync.js Add thicc node modules 3 years ago
every.js Add thicc node modules 3 years ago
everyLimit.js Add thicc node modules 3 years ago
everySeries.js Add thicc node modules 3 years ago
filter.js Add thicc node modules 3 years ago
filterLimit.js Add thicc node modules 3 years ago
filterSeries.js Add thicc node modules 3 years ago
find.js Add thicc node modules 3 years ago
findLimit.js Add thicc node modules 3 years ago
findSeries.js Add thicc node modules 3 years ago
foldl.js Add thicc node modules 3 years ago
foldr.js Add thicc node modules 3 years ago
forEach.js Add thicc node modules 3 years ago
forEachLimit.js Add thicc node modules 3 years ago
forEachOf.js Add thicc node modules 3 years ago
forEachOfLimit.js Add thicc node modules 3 years ago
forEachOfSeries.js Add thicc node modules 3 years ago
forEachSeries.js Add thicc node modules 3 years ago
forever.js Add thicc node modules 3 years ago
groupBy.js Add thicc node modules 3 years ago
groupByLimit.js Add thicc node modules 3 years ago
groupBySeries.js Add thicc node modules 3 years ago
index.js Add thicc node modules 3 years ago
inject.js Add thicc node modules 3 years ago
log.js Add thicc node modules 3 years ago
map.js Add thicc node modules 3 years ago
mapLimit.js Add thicc node modules 3 years ago
mapSeries.js Add thicc node modules 3 years ago
mapValues.js Add thicc node modules 3 years ago
mapValuesLimit.js Add thicc node modules 3 years ago
mapValuesSeries.js Add thicc node modules 3 years ago
memoize.js Add thicc node modules 3 years ago
nextTick.js Add thicc node modules 3 years ago
package.json Add thicc node modules 3 years ago
parallel.js Add thicc node modules 3 years ago
parallelLimit.js Add thicc node modules 3 years ago
priorityQueue.js Add thicc node modules 3 years ago
queue.js Add thicc node modules 3 years ago
race.js Add thicc node modules 3 years ago
reduce.js Add thicc node modules 3 years ago
reduceRight.js Add thicc node modules 3 years ago
reflect.js Add thicc node modules 3 years ago
reflectAll.js Add thicc node modules 3 years ago
reject.js Add thicc node modules 3 years ago
rejectLimit.js Add thicc node modules 3 years ago
rejectSeries.js Add thicc node modules 3 years ago
retry.js Add thicc node modules 3 years ago
retryable.js Add thicc node modules 3 years ago
select.js Add thicc node modules 3 years ago
selectLimit.js Add thicc node modules 3 years ago
selectSeries.js Add thicc node modules 3 years ago
seq.js Add thicc node modules 3 years ago
series.js Add thicc node modules 3 years ago
setImmediate.js Add thicc node modules 3 years ago
some.js Add thicc node modules 3 years ago
someLimit.js Add thicc node modules 3 years ago
someSeries.js Add thicc node modules 3 years ago
sortBy.js Add thicc node modules 3 years ago
timeout.js Add thicc node modules 3 years ago
times.js Add thicc node modules 3 years ago
timesLimit.js Add thicc node modules 3 years ago
timesSeries.js Add thicc node modules 3 years ago
transform.js Add thicc node modules 3 years ago
tryEach.js Add thicc node modules 3 years ago
unmemoize.js Add thicc node modules 3 years ago
until.js Add thicc node modules 3 years ago
waterfall.js Add thicc node modules 3 years ago
whilst.js Add thicc node modules 3 years ago
wrapSync.js Add thicc node modules 3 years ago

README.md

Async Logo

Build Status via Travis CI NPM version Coverage Status Join the chat at https://gitter.im/caolan/async 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)
})