Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
Created January 16, 2026 18:33
Show Gist options
  • Select an option

  • Save prof3ssorSt3v3/073339018ec1807dd408676886e91975 to your computer and use it in GitHub Desktop.

Select an option

Save prof3ssorSt3v3/073339018ec1807dd408676886e91975 to your computer and use it in GitHub Desktop.
Top level NodeJS objects

NodeJS Global Objects

NodeJS has a number of global objects that we can use without import.

Node-specific

  • global, globalThis
  • process
  • console
  • Buffer
  • setTimeout, clearTimeout, setInterval, clearInterval, setImmediate, clearImmediate, queueMicrotask
  • structuredClone
  • WebAssembly

Web platform globals (Node 18+)

  • fetch, Headers, Request, Response
  • URL, URLSearchParams
  • FormData, Blob, File
  • TextEncoder, TextDecoder
  • AbortController, AbortSignal, EventTarget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment