Comparing version 0.1.12 to 0.1.13
@@ -5,3 +5,3 @@ { "name": "async" | ||
, "author": "Caolan McMahon" | ||
, "version": "0.1.12" | ||
, "version": "0.1.13" | ||
, "repository" : | ||
@@ -11,3 +11,3 @@ { "type" : "git" | ||
} | ||
, "bugs" : { "web" : "http://github.com/caolan/async/issues" } | ||
, "bugs" : { "url" : "http://github.com/caolan/async/issues" } | ||
, "licenses" : | ||
@@ -14,0 +14,0 @@ [ { "type" : "MIT" |
@@ -147,2 +147,28 @@ # Async.js | ||
<a name="forEachLimit" /> | ||
### forEachLimit(arr, limit, iterator, callback) | ||
The same as forEach only the iterator is applied to batches of items in the | ||
array, in series. The next batch of iterators is only called once the current | ||
one has completed processing. | ||
__Arguments__ | ||
* arr - An array to iterate over. | ||
* limit - How many items should be in each batch. | ||
* iterator(item, callback) - A function to apply to each item in the array. | ||
The iterator is passed a callback which must be called once it has completed. | ||
* callback(err) - A callback which is called after all the iterator functions | ||
have finished, or an error has occurred. | ||
__Example__ | ||
// Assume documents is an array of JSON objects and requestApi is a | ||
// function that interacts with a rate-limited REST api. | ||
async.forEachLimit(documents, 20, requestApi, function(err){ | ||
// if any of the saves produced an error, err would equal that error | ||
}); | ||
--------------------------------------- | ||
<a name="map" /> | ||
@@ -149,0 +175,0 @@ ### map(arr, iterator, callback) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
164811
0
1007
0
1