yzx 014fe438c7 yzx 10 ماه پیش
..
LICENSE 014fe438c7 yzx 10 ماه پیش
README.md 014fe438c7 yzx 10 ماه پیش
all.js 014fe438c7 yzx 10 ماه پیش
allLimit.js 014fe438c7 yzx 10 ماه پیش
allSeries.js 014fe438c7 yzx 10 ماه پیش
angelFall.js 014fe438c7 yzx 10 ماه پیش
any.js 014fe438c7 yzx 10 ماه پیش
anyLimit.js 014fe438c7 yzx 10 ماه پیش
anySeries.js 014fe438c7 yzx 10 ماه پیش
apply.js 014fe438c7 yzx 10 ماه پیش
applyEach.js 014fe438c7 yzx 10 ماه پیش
applyEachSeries.js 014fe438c7 yzx 10 ماه پیش
async.js 014fe438c7 yzx 10 ماه پیش
async.min.js 014fe438c7 yzx 10 ماه پیش
asyncify.js 014fe438c7 yzx 10 ماه پیش
auto.js 014fe438c7 yzx 10 ماه پیش
autoInject.js 014fe438c7 yzx 10 ماه پیش
cargo.js 014fe438c7 yzx 10 ماه پیش
compose.js 014fe438c7 yzx 10 ماه پیش
concat.js 014fe438c7 yzx 10 ماه پیش
concatLimit.js 014fe438c7 yzx 10 ماه پیش
concatSeries.js 014fe438c7 yzx 10 ماه پیش
constant.js 014fe438c7 yzx 10 ماه پیش
createLogger.js 014fe438c7 yzx 10 ماه پیش
detect.js 014fe438c7 yzx 10 ماه پیش
detectLimit.js 014fe438c7 yzx 10 ماه پیش
detectSeries.js 014fe438c7 yzx 10 ماه پیش
dir.js 014fe438c7 yzx 10 ماه پیش
doDuring.js 014fe438c7 yzx 10 ماه پیش
doUntil.js 014fe438c7 yzx 10 ماه پیش
doWhilst.js 014fe438c7 yzx 10 ماه پیش
during.js 014fe438c7 yzx 10 ماه پیش
each.js 014fe438c7 yzx 10 ماه پیش
eachLimit.js 014fe438c7 yzx 10 ماه پیش
eachOf.js 014fe438c7 yzx 10 ماه پیش
eachOfLimit.js 014fe438c7 yzx 10 ماه پیش
eachOfSeries.js 014fe438c7 yzx 10 ماه پیش
eachSeries.js 014fe438c7 yzx 10 ماه پیش
ensureAsync.js 014fe438c7 yzx 10 ماه پیش
every.js 014fe438c7 yzx 10 ماه پیش
everyLimit.js 014fe438c7 yzx 10 ماه پیش
everySeries.js 014fe438c7 yzx 10 ماه پیش
fast.js 014fe438c7 yzx 10 ماه پیش
filter.js 014fe438c7 yzx 10 ماه پیش
filterLimit.js 014fe438c7 yzx 10 ماه پیش
filterSeries.js 014fe438c7 yzx 10 ماه پیش
find.js 014fe438c7 yzx 10 ماه پیش
findLimit.js 014fe438c7 yzx 10 ماه پیش
findSeries.js 014fe438c7 yzx 10 ماه پیش
foldl.js 014fe438c7 yzx 10 ماه پیش
foldr.js 014fe438c7 yzx 10 ماه پیش
forEach.js 014fe438c7 yzx 10 ماه پیش
forEachLimit.js 014fe438c7 yzx 10 ماه پیش
forEachOf.js 014fe438c7 yzx 10 ماه پیش
forEachOfLimit.js 014fe438c7 yzx 10 ماه پیش
forEachOfSeries.js 014fe438c7 yzx 10 ماه پیش
forEachSeries.js 014fe438c7 yzx 10 ماه پیش
forever.js 014fe438c7 yzx 10 ماه پیش
groupBy.js 014fe438c7 yzx 10 ماه پیش
groupByLimit.js 014fe438c7 yzx 10 ماه پیش
groupBySeries.js 014fe438c7 yzx 10 ماه پیش
inject.js 014fe438c7 yzx 10 ماه پیش
iterator.js 014fe438c7 yzx 10 ماه پیش
log.js 014fe438c7 yzx 10 ماه پیش
map.js 014fe438c7 yzx 10 ماه پیش
mapLimit.js 014fe438c7 yzx 10 ماه پیش
mapSeries.js 014fe438c7 yzx 10 ماه پیش
mapValues.js 014fe438c7 yzx 10 ماه پیش
mapValuesLimit.js 014fe438c7 yzx 10 ماه پیش
mapValuesSeries.js 014fe438c7 yzx 10 ماه پیش
memoize.js 014fe438c7 yzx 10 ماه پیش
nextTick.js 014fe438c7 yzx 10 ماه پیش
omit.js 014fe438c7 yzx 10 ماه پیش
omitLimit.js 014fe438c7 yzx 10 ماه پیش
omitSeries.js 014fe438c7 yzx 10 ماه پیش
package.json 014fe438c7 yzx 10 ماه پیش
parallel.js 014fe438c7 yzx 10 ماه پیش
parallelLimit.js 014fe438c7 yzx 10 ماه پیش
pick.js 014fe438c7 yzx 10 ماه پیش
pickLimit.js 014fe438c7 yzx 10 ماه پیش
pickSeries.js 014fe438c7 yzx 10 ماه پیش
priorityQueue.js 014fe438c7 yzx 10 ماه پیش
queue.js 014fe438c7 yzx 10 ماه پیش
race.js 014fe438c7 yzx 10 ماه پیش
reduce.js 014fe438c7 yzx 10 ماه پیش
reduceRight.js 014fe438c7 yzx 10 ماه پیش
reflect.js 014fe438c7 yzx 10 ماه پیش
reflectAll.js 014fe438c7 yzx 10 ماه پیش
reject.js 014fe438c7 yzx 10 ماه پیش
rejectLimit.js 014fe438c7 yzx 10 ماه پیش
rejectSeries.js 014fe438c7 yzx 10 ماه پیش
retry.js 014fe438c7 yzx 10 ماه پیش
retryable.js 014fe438c7 yzx 10 ماه پیش
safe.js 014fe438c7 yzx 10 ماه پیش
select.js 014fe438c7 yzx 10 ماه پیش
selectLimit.js 014fe438c7 yzx 10 ماه پیش
selectSeries.js 014fe438c7 yzx 10 ماه پیش
seq.js 014fe438c7 yzx 10 ماه پیش
series.js 014fe438c7 yzx 10 ماه پیش
setImmediate.js 014fe438c7 yzx 10 ماه پیش
some.js 014fe438c7 yzx 10 ماه پیش
someLimit.js 014fe438c7 yzx 10 ماه پیش
someSeries.js 014fe438c7 yzx 10 ماه پیش
sortBy.js 014fe438c7 yzx 10 ماه پیش
sortByLimit.js 014fe438c7 yzx 10 ماه پیش
sortBySeries.js 014fe438c7 yzx 10 ماه پیش
timeout.js 014fe438c7 yzx 10 ماه پیش
times.js 014fe438c7 yzx 10 ماه پیش
timesLimit.js 014fe438c7 yzx 10 ماه پیش
timesSeries.js 014fe438c7 yzx 10 ماه پیش
transform.js 014fe438c7 yzx 10 ماه پیش
transformLimit.js 014fe438c7 yzx 10 ماه پیش
transformSeries.js 014fe438c7 yzx 10 ماه پیش
tryEach.js 014fe438c7 yzx 10 ماه پیش
unmemoize.js 014fe438c7 yzx 10 ماه پیش
until.js 014fe438c7 yzx 10 ماه پیش
waterfall.js 014fe438c7 yzx 10 ماه پیش
whilst.js 014fe438c7 yzx 10 ماه پیش
wrapSync.js 014fe438c7 yzx 10 ماه پیش

README.md

Neo-Async

npm Travis Status Coverage Status download Total Alerts FOSSA

Neo-Async is thought to be used as a drop-in replacement for Async, it almost fully covers its functionality and runs faster.

Benchmark is here!

Bluebird's benchmark is here!

Code Coverage

coverage

Installation

In a browser

<script src="async.min.js"></script>

In an AMD loader

require(['async'], function(async) {});

Promise and async/await

I recommend to use Aigle.

It is optimized for Promise handling and has almost the same functionality as neo-async.

Node.js

standard

$ npm install neo-async
var async = require('neo-async');

replacement

$ npm install neo-async
$ ln -s ./node_modules/neo-async ./node_modules/async
var async = require('async');

Bower

bower install neo-async

Feature

JSDoc

* not in Async

Collections

Control Flow

Utils

Mode

Benchmark

Benchmark: Async vs Neo-Async

How to check

$ node perf

Environment

  • Darwin 17.3.0 x64
  • Node.js v8.9.4
  • async v2.6.0
  • neo-async v2.5.0
  • benchmark v2.1.4

Result

The value is the ratio (Neo-Async/Async) of the average speed.

Collections

function benchmark
each/forEach 2.43
eachSeries/forEachSeries 1.75
eachLimit/forEachLimit 1.68
eachOf 3.29
eachOfSeries 1.50
eachOfLimit 1.59
map 3.95
mapSeries 1.81
mapLimit 1.27
mapValues 2.73
mapValuesSeries 1.59
mapValuesLimit 1.23
filter 3.00
filterSeries 1.74
filterLimit 1.17
reject 4.59
rejectSeries 2.31
rejectLimit 1.58
detect 4.30
detectSeries 1.86
detectLimit 1.32
reduce 1.82
transform 2.46
sortBy 4.08
some 2.19
someSeries 1.83
someLimit 1.32
every 2.09
everySeries 1.84
everyLimit 1.35
concat 3.79
concatSeries 4.45

Control Flow

funciton benchmark
parallel 2.93
series 1.96
waterfall 1.29
whilst 1.00
doWhilst 1.12
until 1.12
doUntil 1.12
during 1.18
doDuring 2.42
times 4.25
auto 1.97

License

FOSSA Status