Module Node.Child_process
Node Child Process API
ocaml
type optionreasonml
type option;ocaml
val option : ?cwd:string -> ?encoding:string -> unit -> optionreasonml
let option: ?cwd:string => ?encoding:string => unit => option;ocaml
val execSync : string -> option -> stringreasonml
let execSync: string => option => string;ocaml
type spawnResultreasonml
type spawnResult;ocaml
val spawnSync : string -> spawnResultreasonml
let spawnSync: string => spawnResult;ocaml
val readAs :
spawnResult ->
< pid : int
; status : int Js.null
; signal : string Js.null
; stdout : Node.string_buffer Js.null
; stderr : Node.string_buffer Js.null >
Js.treasonml
let readAs:
spawnResult =>
Js.t({. pid: int
, status: Js.null(int)
, signal: Js.null(string)
, stdout: Js.null(Node.string_buffer)
, stderr: Js.null(Node.string_buffer)});