Comparing version 0.0.0 to 0.1.0
# Changelog | ||
- 0.1.0 (2012/06/16) | ||
- Document is improved. | ||
- 0.0.0 (2012/03/19) | ||
- first release. |
{ | ||
"name" : "parray", | ||
"description" : "An utility to handle array elements in parallel", | ||
"homepage" : "https://github.com/nakamura-to/parray", | ||
"description" : "An utility to handle large array elements in parallel in Node environment", | ||
"keywords" : ["control-flow", "async", "wait", "await", "forEach", "parallel", "array"], | ||
"author" : "Toshihiro Nakamura <toshihiro.nakamura@gmail.com>", | ||
"contributors" : [], | ||
"repository" : {"type": "git", "url": "git@github.com:nakamura-to/parray.git"}, | ||
"repository" : {"type": "git", "url": "git://github.com/nakamura-to/parray.git"}, | ||
"main" : "./lib/parray.js", | ||
@@ -13,3 +12,3 @@ "devDependencies": { | ||
}, | ||
"version" : "0.0.0" | ||
"version" : "0.1.0" | ||
} |
@@ -1,5 +0,5 @@ | ||
Parray — An utility to handle array elements in parallel | ||
======================================================== | ||
Parray — An utility to handle large array elements in parallel | ||
============================================================== | ||
Parray is an utility to handle array elements in parallel in Node environment. | ||
Parray is an utility to handle large array elements in parallel in Node environment. | ||
@@ -77,7 +77,7 @@ ## Installing | ||
var files = ['file1', 'file2']; | ||
var latch = gate.latch(); | ||
var g = gate.create(); | ||
parray.forEach(files, function (file) { | ||
fs.readFile(file, 'utf8', latch({name: file, data: 1})); | ||
fs.readFile(file, 'utf8', g.latch({name: file, data: 1})); | ||
}, function () { | ||
latch.await(function (err, results) { | ||
g.await(function (err, results) { | ||
if (err) throw err; | ||
@@ -84,0 +84,0 @@ console.log(results[0]); // { name: 'file1', data: 'FILE1' } |
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
No website
QualityPackage does not have a website.
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
5548
8
2