forked from 26medias/AIStock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
44 lines (44 loc) · 1.99 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"name": "forEachAsync",
"version": "2.2.0",
"description": "The forEachAsync module of FuturesJS (Ender.JS and Node.JS)",
"homepage": "https://github.com/coolaj86/futures",
"keywords": [
"flow-control",
"async",
"asynchronous",
"futures",
"forEachAsync",
"chain",
"step",
"util",
"browser"
],
"repository": {
"type": "git",
"url": "git://github.com/coolaj86/futures.git"
},
"author": {
"name": "AJ ONeal",
"email": "coolaj86@gmail.com",
"url": "http://coolaj86.info"
},
"main": "forEachAsync.js",
"directories": {
"lib": "."
},
"dependencies": {
"sequence": ">= 2.2.1"
},
"engines": {
"node": "*",
"ender": ">= 0.5.0"
},
"readme": "Array.forEachAsync()\n----\n\nAnother reincarnation of `sequence` that makes sense for the use case of arrays.\n\n**Example:**\n\n var forEachAsync = require('forEachAsync')\n , count = 0\n , timers = [\n 101,\n 502,\n 203,\n 604,\n 105\n ];\n\n function hello(next, time) {\n this[count] = time;\n\n if (count >= 4) {\n next(forEachAsync.BREAK);\n }\n\n console.log(count += 1, time);\n\n setTimeout(next, time);\n }\n\n function goodbye() {\n console.log(\"All Done\", this);\n }\n\n forEachAsync(timers, hello, {}).then(goodbye);\n\nAPI\n---\n\n * forEachAsync(array, callback*[, thisArg]*)\n * forEachAsync#then(finalCallback)\n * forEachAsync#BREAK\n\n**Warning:** [Poorly written code](https://gist.github.com/941362) may have really strange errors when `Array.prototype` is extended.\nIf you run into such problems please contact the author of the code (I'm also willing to help if they are unavailable).\nLibraries such as `jQuery` or `MooTools` will accept bug reports for such failures.\n\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/coolaj86/futures/issues"
},
"_id": "forEachAsync@2.2.0",
"_from": "forEachAsync@~2.2"
}