温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/SyncSubprocess
点击访问原文链接

Bun.SyncSubprocess TypeScript interface | API Reference | Bun

Bun.SyncSubprocess TypeScript interface | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/Bun/SyncSubprocessPexitCodePexitedDueToMaxBufferPexitedDueToTimeoutPpidPresourceUsagePsignalCodePstderrPstdoutPsuccess

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/SyncSubprocessPexitCodePexitedDueToMaxBufferPexitedDueToTimeoutPpidPresourceUsagePsignalCodePstderrPstdoutPsuccess

interface

SyncSubprocessinterface SyncSubprocessOut extends SpawnOptions.Readable = SpawnOptions.Readable, Err extends SpawnOptions.Readable = SpawnOptions.Readable>

A process created by Bun.spawnSync.

This type accepts 2 optional type parameters which correspond to the stdout and stderr options. Instead of specifying these, you should use one of the following utility types instead:

ReadableSyncSubprocess (pipe, pipe)NullSyncSubprocess (ignore, ignore)
exitCode: numberexitedDueToMaxBuffer?: booleanexitedDueToTimeout?: booleanpid: numberresourceUsage: ResourceUsage

Get the resource usage information of the process (max RSS, CPU time, etc)

signalCode?: stringstderr: ReadableToSyncIOErr>stdout: ReadableToSyncIOOut>success: boolean

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Bun.SyncSubprocess TypeScript interface | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    A process created by Bun.spawnSync. This type accepts 2 optional type parameters which correspond to the `stdout` and `stderr` options. Instead of specifying these, you should use one of the following utility types instead: - ReadableSyncSubprocess (pipe, pipe) - NullSyncSubprocess (ignore, ignore)