Socket
Book a DemoInstallSign in
Socket

express-spawner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-spawner

Spawns Express apps on multiple ports as different processes.

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Synopsis

  • Spawn Express apps or middleware on multiple ports as seperate processes.
  • Use with NGINX or your favorite load balancer.
  • Master process restarts a child process if it's terminated.

Code Example

npm install express-spawner
var es = require('express-spawner')(process.cwd()+'/');

es.spawnServerForever({
    ports: [9001, 9002, 9003],
    appPath: 'sampleApp.js',
});

TODO

  • Return Promise when servers are up
  • Pretty debug logs
  • Tests

FAQs

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