Skip to content

Instantly share code, notes, and snippets.

@ndelangen
Created January 2, 2017 14:22
Show Gist options
  • Save ndelangen/5189ca677aab002107aecbad2f92e05e to your computer and use it in GitHub Desktop.
Save ndelangen/5189ca677aab002107aecbad2f92e05e to your computer and use it in GitHub Desktop.
A simple way to just create a silent child process is to pass a options object and set the `silent` property
const fork = require('child_process').fork;
const program = path.resolve('other.js');
const child = fork(program, [], {
silent: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment