SpawnSyncOptions interface

SpawnSync 的選項。

Extends

屬性

argv0

子程序中使用的 argv[0] 值。

encoding

用於捕捉輸出的編碼。

input

內容是依照子程序標準輸入撰寫的。

maxBuffer

標準或標準允許的最大位元組數。

stdio

標準輸入、輸出與錯誤映射。

繼承的屬性

allowWindowsBatchFiles

是否.cmd可以在 Windows 上選擇與.bat檔案。

批次檔案僅支援受限參數,且預設是被停用的。

cwd

用於解析明確相對路徑的工作目錄。

env

被搜尋的 PATH 環境。

gid

程序的數值群身份。

killSignal

用來終止該過程的訊號。

shell

不支援 shell 執行。

timeout

最大執行時間以毫秒計。

uid

程序的數值使用者身份。

windowsHide

是否要在 Windows 上隱藏子程序主控台視窗。

windowsVerbatimArguments

Windows 命令列編碼由此套件控制。

屬性詳細資料

argv0

子程序中使用的 argv[0] 值。

argv0?: string

屬性值

string

encoding

用於捕捉輸出的編碼。

encoding?: null | BufferEncoding | "buffer"

屬性值

null | BufferEncoding | "buffer"

input

內容是依照子程序標準輸入撰寫的。

input?: string | ArrayBufferView

屬性值

string | ArrayBufferView

maxBuffer

標準或標準允許的最大位元組數。

maxBuffer?: number

屬性值

number

stdio

標準輸入、輸出與錯誤映射。

stdio?: StdioOptions

屬性值

StdioOptions

繼承的屬性詳細資料

allowWindowsBatchFiles

是否.cmd可以在 Windows 上選擇與.bat檔案。

批次檔案僅支援受限參數,且預設是被停用的。

allowWindowsBatchFiles?: boolean

屬性值

boolean

繼承自ProcessOptions.allowWindowsBatchFiles

cwd

用於解析明確相對路徑的工作目錄。

cwd?: string | URL

屬性值

string | URL

繼承自ProcessOptions.cwd

env

被搜尋的 PATH 環境。

env?: ProcessEnv

屬性值

ProcessEnv

繼承自ProcessOptions.env

gid

程序的數值群身份。

gid?: number

屬性值

number

繼承自ProcessOptions.gid

killSignal

用來終止該過程的訊號。

killSignal?: number | Signals

屬性值

number | Signals

繼承自ProcessOptions.killSignal

shell

不支援 shell 執行。

shell?: undefined

屬性值

undefined

繼承自ProcessOptions.shell

timeout

最大執行時間以毫秒計。

timeout?: number

屬性值

number

承襲自ProcessOptions.timeout

uid

程序的數值使用者身份。

uid?: number

屬性值

number

承自ProcessOptions.uid

windowsHide

是否要在 Windows 上隱藏子程序主控台視窗。

windowsHide?: boolean

屬性值

boolean

繼承自ProcessOptions.windowsHide

windowsVerbatimArguments

Windows 命令列編碼由此套件控制。

windowsVerbatimArguments?: undefined

屬性值

undefined

繼承自ProcessOptions.windowsVerbatimArguments