function spawnSync
Usage in Deno
```typescript import { spawnSync } from "node:node__child_process.d.ts"; ```
spawnSync(command: string): SpawnSyncReturns<Buffer>
The `child_process.spawnSync()` method is generally identical to [spawn](../.././node__child_process.d.ts/~/spawn) with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and `killSignal` is sent, the method won't return until the process has
completely exited. If the process intercepts and handles the `SIGTERM` signal
and doesn't exit, the parent process will wait until the child process has
exited.
**If the `shell` option is enabled, do not pass unsanitized user input to this**
**function. Any input containing shell metacharacters may be used to trigger**
**arbitrary command execution.**
SpawnSyncReturns<Buffer>
spawnSync(command: string,options: SpawnSyncOptionsWithStringEncoding,): SpawnSyncReturns<string>
options: SpawnSyncOptionsWithStringEncoding
SpawnSyncReturns<string>
spawnSync(command: string,options: SpawnSyncOptionsWithBufferEncoding,): SpawnSyncReturns<Buffer>
options: SpawnSyncOptionsWithBufferEncoding
SpawnSyncReturns<Buffer>
spawnSync(command: string,options?: SpawnSyncOptions,): SpawnSyncReturns<string | Buffer>
optional
options: SpawnSyncOptions
SpawnSyncReturns<string | Buffer>
spawnSync(command: string,args: readonly string[],): SpawnSyncReturns<Buffer>
SpawnSyncReturns<Buffer>
spawnSync(): SpawnSyncReturns<string>
SpawnSyncReturns<string>
spawnSync(): SpawnSyncReturns<Buffer>
SpawnSyncReturns<Buffer>
spawnSync(): SpawnSyncReturns<string | Buffer>
SpawnSyncReturns<string | Buffer>