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

node-parallelizer

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-parallelizer

A Nodejs package for running code in parallel.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
53
increased by488.89%
Maintainers
1
Weekly downloads
 
Created
Source

node-parallelizer

A Nodejs package for running code in parallel.

Installation

To add this package to your dependency list, run:

npm i node-parallelizer --save

Supported parallelizers

  • Child Process
  • Worker threads [Coming soon]

Usage

Child process parallelizer

AWS Lambda examples:

const { ChildProcess } = require("node-parallelizer");

// Creates a new child process instance.
const childProcess = new ChildProcess();
// Creates child processes based on your code.
childProcess.createChildProcessFromFile({ filePath: "/var/task/my-child-code.js", processBatchFunctionName: 'myFunction' });

module.exports.handler = async(event) => {
  // Run batch in parallel
  const responses = await childProcess.runBatch(event.Records);
  
  console.log(responses);
};

Contribution

We welcome contributions to this project. If you are interested in contributing, please feel free to submit a pull request.

Keywords

FAQs

Package last updated on 14 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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