ExecFileOptions interface
execFile 的選項。
- Extends
繼承的屬性
| allow |
是否 批次檔案僅支援受限參數,且預設是被停用的。 |
| cwd | 用於解析明確相對路徑的工作目錄。 |
| env | 被搜尋的 |
| gid | 程序的數值群身份。 |
| kill |
用來終止該過程的訊號。 |
| shell | 不支援 shell 執行。 |
| timeout | 最大執行時間以毫秒計。 |
| uid | 程序的數值使用者身份。 |
| windows |
是否要在 Windows 上隱藏子程序主控台視窗。 |
| windows |
Windows 命令列編碼由此套件控制。 |
屬性詳細資料
encoding
用於緩衝輸出的字元編碼。
encoding?: null | BufferEncoding | "buffer"
屬性值
null | BufferEncoding | "buffer"
maxBuffer
標準或標準允許的最大位元組數。
maxBuffer?: number
屬性值
number
signal
程序取消的中止信號。
signal?: AbortSignal
屬性值
AbortSignal
繼承的屬性詳細資料
allowWindowsBatchFiles
是否.cmd可以在 Windows 上選擇與.bat檔案。
批次檔案僅支援受限參數,且預設是被停用的。
allowWindowsBatchFiles?: boolean
屬性值
boolean
cwd
env
gid
killSignal
shell
timeout
uid
windowsHide
windowsVerbatimArguments
Windows 命令列編碼由此套件控制。
windowsVerbatimArguments?: undefined
屬性值
undefined