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