Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parray

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parray - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

3

CHANGELOG.md
# Changelog
- 0.1.0 (2012/06/16)
- Document is improved.
- 0.0.0 (2012/03/19)
- first release.

7

package.json
{
"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' }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc