New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nfork

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

nfork

extensible clustering module based on node.js' cluster

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

nfork

extensible clustering module based on node.js' cluster. nfork provides a clean interface to apply node.js' cluster module and broadcast messages between forks.

I've implemented needed parts only which required for my own case. It might get better features in future if I need more but can't promise anything. On the other hand, you are free to apply anything you want.

install

$ npm install nfork

usage


var inherits = require('util').inherits;
var nfork = require('nfork'); // after installing via npm

function Test() {
    nfork.Cluster.call(this);
}
inherits(Test, nfork.Cluster);

Test.prototype.run = function () {
    if (nfork.is('master')) {
        this.__master(); // main process
    } else {
        // child processes
    }
};

Keywords

cluster

FAQs

Package last updated on 28 Jan 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