node-spawn-server

spawns a server

Usage no npm install needed!

<script type="module">
  import nodeSpawnServer from 'https://cdn.skypack.dev/node-spawn-server';
</script>

README

Spawn Server

Spawns a server using node child process spawn.

Usage

var spawnServer = require('node-spawn-server');

var server = spawnServer('node src/app.js', options);

Options

spawnServer supports the following options:

env: variables to add to the process's environment

verbose: true/false, if you want print outs of the process's standard stream info