code: function fork(mod, args, options) {
    if (!mod) throw new Error('Please specify a module to fork')
    const proc = /** @type {!_spawncommand.ChildProcessWithPromise} */ (forkCp(mod, args, options))
  
    const promise = getPromise(proc)
    proc.promise = promise
    /** @suppress {checkTypes} */
    proc.spawnCommand = proc['spawnargs'].join(' ')
    return proc
  }
docs: Forks a process and assign a `promise` property to it, resolved with `stderr`, `stdout` and `code` properties on exit.
  @param {string} mod The module to run in the child.
  @param {!Array<string>} [args] List of string arguments.
  @param {!child_process.ForkOptions} [options] Options to fork the process with.