
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
general-cluster
Advanced tools
General Cluster is a utility for running an Express application on a Node Cluster.
To learn about using Clusters with Node, please explore the appendix.
Created by Clark Feusier
General Cluster is available as an npm package, which you can install from the command-line:
npm install general-cluster
Then, require the General Cluster module for use in a desired file:
var GeneralCluster = require('general-cluster');
General Cluster is simple to use.
listen()
to start your Express server, pass your application to General Cluster, along with the options that you would normally pass to .listen
var GeneralCluster = require('general-cluster'),
express = require('express'),
app = express();
// setup express application configuration and routes, e.g.,
app.get('/*', function(req, res) {
res.send('Hello World');
});
var optionalPort = 3000;
var optionalListeningCb = function() {
console.log("The General is listening on port: " + optionalPort);
};
var optionalHostName = '127.0.0.1';
var optionalBacklog = 511;
// pass configured express app to GeneralCluster to start server
var clusterAppDefaultListenArgs = GeneralCluster(app);
// optionally: pass along a port, hostname, backlog, or callback (see https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback)
// NOTE: the callback will be triggered for each process that binds to the given port
var clusterAppCustomListenArgs = GeneralCluster(app, optionalPort, optionalHostName, optionalBacklog, optionalListeningCb);
We welcome contributions, but please read our contribution guidelines before submitting your work. The development requirements and instructions are below.
Install Node (bundled with npm) using Homebrew:
brew install node
Install project and development dependencies using npm:
npm install
To build src/general-cluster.js
into dist/general-cluster.min.js
, use the following grunt task:
grunt build
General Cluster - express running on node clusters
Copyright (C) 2015 Clark Feusier cfeusier@gmail.com - All Rights Reserved
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
From the Node Cluster documentation:
A single instance of Node runs in a single thread. To take advantage of multi-core systems, one can launch a cluster of Node processes to handle the load. Using Node's cluster allows one to easily create child processes that all share server ports.
© 2015 Clark Feusier. All rights reserved.
FAQs
express running on node clusters
The npm package general-cluster receives a total of 0 weekly downloads. As such, general-cluster popularity was classified as not popular.
We found that general-cluster demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.