• Run the given module with the presented arguments, and wait for it to exit.

    Parameters

    • module: string

      The (flowR) module that you want to use for the fork. It is probably best to use __dirname so you can specify the module relative to your current one.

    • args: readonly string[]

      The arguments you want to start your process with.

    • Optionalio: StdioProcessor

      If you omit this argument, the in-, out- and error-channels of the script execution will be automatically forwarded to the respective in-, out- and error-channels of your process. However, by defining io you essentially gain full control on what should happen with these streams. For a simple capturing processor, for example if you want to collect the output of the script, see stdioCaptureProcessor.

    • exitOnError: boolean = false

      If set to true, the process will exit with the exit code of the script.

    Returns Promise<void>