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

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