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

legend

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

legend

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

legend

A redis backed node.js load balancer. Uses round-robin to load balance servers. It listens for changes in your redis database and updates the server list.

Getting Started

var Legend = require('legend');
var redis  = require('redis');
var client = redis.createClient();

var legend = new Legend({
  client: client,
  subscribe: 'servers' // <---- Tells redis to subscribe here
});

// Add the first server
legend.addNode('192.168.1.1', '8080');

// Add the second server
legend.addNode('192.168.1.2', '8080');

// Finally run the server
legend.run(8080);

FAQs

Package last updated on 13 Apr 2012

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