New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

core-cluster

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-cluster

A small node.js library for creating cluster of node server based on no of cores system has.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

core-cluster v1.0.2

Requirements

  • file_path:path of main server applicaiton file

  • arguments:args to pass to workers

  • log_status:param to show log

  • restart:param to restart instance if stopped

Installation

$ npm install core-cluster

How to use


var cluster=require('core-cluster');

//path of main server applicaiton file
var file_path='/server.js';

//arguments 
var arguments=[];

//show log 
var log_status=true;

//restart instance if it get stopped
var restart=true;

cluster.makecluster(file_path,arguments,log_status,restart,function(response){

console.log(response);

});

license

MIT

Keywords

FAQs

Package last updated on 21 Feb 2016

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