Globals - BunDocumentation Index Search...⌘KInstall Bun Search...Navigation Standards & Compatibility GlobalsRuntimePackage ManagerBundlerTest RunnerGuidesReferenceBlogFeedback:first-child]:!hidden peer-[.is-custom]:[&>:first-child]:sm:!hidden peer-[.is-custom]:[&>:first-child]:md:!hidden peer-[.is-custom]:[&>:first-child]:lg:!hidden peer-[.is-custom]:[&>:first-child]:xl:!hidden">Get StartedWelcome to BunInstallationQuickstartTypeScriptTypeScript 6 and 7bun initbun createCore RuntimeBun RuntimeWatch ModeDebuggingREPLbunfig.tomlFile & Module SystemFile TypesModule ResolutionJSXAuto-installPluginsFile System RouterHTTP serverServerRoutingCookiesTLSError HandlingMetricsNetworkingFetchWebSocketsTCPUDPDNSData & StorageCookiesFile I/OStreamsBinary DataArchiveSQLSQLiteS3RedisConcurrencyWorkersProcess & SystemEnvironment VariablesShellSpawnWebViewCronInterop & ToolingNode-APIFFIC CompilerTranspilerUtilitiesCSRF ProtectionSecretsConsoleTOMLYAMLMarkdownJSON5JSONLHTMLRewriterImageHashingGlobSemverColorUtilsStandards & CompatibilityGlobalsBun APIsWeb APIsNode.js CompatibilityContributingRoadmapBenchmarkingContributingBuilding WindowsBindgenLicenseStandards & CompatibilityGlobals Copy pagespan]:line-clamp-1 overflow-hidden group flex items-center py-0.5 gap-1 text-sm text-gray-950/50 dark:text-white/50 group-hover:text-gray-950/70 dark:group-hover:text-white/70 rounded-none rounded-r-xl border px-3 border-gray-200 aspect-square dark:border-white/[0.07] bg-background-light dark:bg-background-dark hover:bg-gray-600/5 dark:hover:bg-gray-200/5" aria-label="More actions" type="button" id="radix-_R_n4ctdbsnlht5lebsnpfdb_" aria-haspopup="menu" aria-expanded="false" data-state="closed"> *]:[overflow-wrap:anywhere]"> Copy pagespan]:line-clamp-1 overflow-hidden group flex items-center py-0.5 gap-1 text-sm text-gray-950/50 dark:text-white/50 group-hover:text-gray-950/70 dark:group-hover:text-white/70 rounded-none rounded-r-xl border px-3 border-gray-200 aspect-square dark:border-white/[0.07] bg-background-light dark:bg-background-dark hover:bg-gray-600/5 dark:hover:bg-gray-200/5" aria-label="More actions" type="button" id="radix-_R_1cctdbsnlht5lebsnpfdb_" aria-haspopup="menu" aria-expanded="false" data-state="closed"> Bun implements the following globals.
GlobalSourceNotesAbortControllerWebAbortSignalWebalertWebIntended for command-line toolsBlobWebBufferNode.jsSee Node.js > BufferBunBunSubject to change as additional APIs are addedByteLengthQueuingStrategyWebconfirmWebIntended for command-line tools__dirnameNode.js__filenameNode.jsatob()Webbtoa()WebBuildMessageBunclearImmediate()WebclearInterval()WebclearTimeout()WebconsoleWebCountQueuingStrategyWebCryptoWebcryptoWebCryptoKeyWebCustomEventWebEventWebAlso ErrorEvent CloseEvent MessageEvent.EventTargetWebexportsNode.jsfetchWebFormDataWebglobalNode.jsSee Node.js > global.globalThisCross-platformAliases to globalHeadersWebHTMLRewriterCloudflareJSONWebMessageEventWebmoduleNode.jsperformanceWebprocessNode.jsSee Node.js > processpromptWebIntended for command-line toolsqueueMicrotask()WebReadableByteStreamControllerWebReadableStreamWebReadableStreamDefaultControllerWebReadableStreamDefaultReaderWebreportErrorWebrequire()Node.jsResolveMessageBunResponseWebRequestWebsetImmediate()WebsetInterval()WebsetTimeout()WebShadowRealmWebStage 3 proposalSubtleCryptoWebDOMExceptionWebTextDecoderWebTextEncoderWebTransformStreamWebTransformStreamDefaultControllerWebURLWebURLSearchParamsWebWebAssemblyWebWritableStreamWebWritableStreamDefaultControllerWebWritableStreamDefaultWriterWeb Yes NoSuggest editsRaise issueUtilsPreviousBun APIsNext⌘I xgithubdiscordyoutubePowered byThis documentation is built and hosted on Mintlify, a developer documentation platform
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Skip to main contentBun home pageUse Bun’s global objects
Was this page helpful?
Globals - Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Use Bun