0.0.1 • Published 2 years ago

process-spawn v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Process Spawn

Start and monitor multiple instances of the same process.

Usage

Spawn 5 nodes from a single file.

const {Spawner} = require('process-spawn')

const spawner = new Spawner()
spawner.spawn_node("yourfile.js", 5)

Spawn a node for each file in a directory

const {Spawner} = require('process-spawn')

const spawner = new Spawner()
spawner.spawn_directory("./files", 5)

Todo

  • create a table for each node to dump it's log into
  • re-write tests
  • setup CI/CD