The result of "LensStudio:Subprocess".spawnSync.
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()); Copy
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());
Protected
Snap Hidden
Readonly
Process exit code.
Standard error output from the process.
Standard output from the process.
The result of "LensStudio:Subprocess".spawnSync.
Example