LensStudio:Subprocess.SpawnSyncResult
ClassThe result of "LensStudio:Subprocess".spawnSync.
Index
Example
const { spawnSync } = await import('LensStudio:Subprocess');
// SpawnSyncResult: exitCode, stdout (Buffer), stderr (Buffer)
const result = spawnSync('echo', ['hello from subprocess'], {} as any);
console.log('exitCode:', result.exitCode);
console.log('stdout:', result.stdout.toString());
console.log('stderr:', result.stderr.toString());
Properties
exitCode
readonlyexitCode:number
Process exit code.
stderr
readonlystderr:Buffer
Standard error output from the process.
stdout
readonlystdout:Buffer
Standard output from the process.