neo-async

中文文档
2.6.2发布于 2020/07/10MITCommonJS零依赖近 30 天下载 2.6亿

Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster

原始使用文档
文档目录17 节
  1. Code Coverage
  2. Installation
  3. In a browser
  4. In an AMD loader
  5. Promise and async/await
  6. Node.js
  7. Bower
  8. Feature
  9. Collections
  10. Control Flow
  11. Utils
  12. Mode
  13. Benchmark
  14. How to check
  15. Environment
  16. Result
  17. License

Neo-Async

npm Travis Status Coverage Status download Code Quality: Javascript 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

functionbenchmark
each/forEach2.43
eachSeries/forEachSeries1.75
eachLimit/forEachLimit1.68
eachOf3.29
eachOfSeries1.50
eachOfLimit1.59
map3.95
mapSeries1.81
mapLimit1.27
mapValues2.73
mapValuesSeries1.59
mapValuesLimit1.23
filter3.00
filterSeries1.74
filterLimit1.17
reject4.59
rejectSeries2.31
rejectLimit1.58
detect4.30
detectSeries1.86
detectLimit1.32
reduce1.82
transform2.46
sortBy4.08
some2.19
someSeries1.83
someLimit1.32
every2.09
everySeries1.84
everyLimit1.35
concat3.79
concatSeries4.45

Control Flow

funcitonbenchmark
parallel2.93
series1.96
waterfall1.29
whilst1.00
doWhilst1.12
until1.12
doUntil1.12
during1.18
doDuring2.42
times4.25
auto1.97

License

FOSSA Status

版本与发布记录

neo-async 共发布 77 个版本,首次发布于 2014/11/24;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.6.2latest2020/07/106 年前
2.6.12019/05/137 年前
2.6.02018/10/158 年前
2.5.22018/08/148 年前
2.5.12018/04/118 年前
2.5.02017/10/099 年前

关于 neo-async 的常见问题

neo-async 是什么?

Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster

如何安装 neo-async?

在项目目录运行 npm install neo-async,或使用 pnpm add / yarn add / bun add。

neo-async 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/neo-async 是否存在。

neo-async 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

neo-async 可以商用吗?

neo-async 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

neo-async 的下载量有多少?

根据 npm 官方下载统计,neo-async 在 2026/10/05 – 2026/11/03 这 30 天内被下载 261,916,018 次,日均约 8,730,534 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

neo-async 还在维护吗?

最新版本 2.6.2 发布于 2020/07/10(6 年前);至今共发布 77 个版本,其中过去 12 个月发布了 0 个;首次发布于 2014/11/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。