Module Node.ChildProcess

module Options : sig ... end
type return = {
  1. exitCode : int;
  2. stdout : string;
  3. stderr : string;
}
type event =
  1. | Spawned
  2. | Stdout of string
  3. | Stderr of string
  4. | Closed
  5. | ProcessError of JsError.t
val exec : ?logger:(event -> unit) -> ?stdin:string -> ?options:Options.t -> string -> return Promise.t
val spawn : ?logger:(event -> unit) -> ?stdin:string -> ?options:Options.t -> string -> string array -> return Promise.t