Home > Engineering > Third Party Software > Bare Runtime > Global API

Bare Global API

The Bare global is available without import. Buffer, console, URL, the timers, queueMicrotask and structuredClone are global too; there is no process global (it comes from bare-process).


Properties

Methods

From 1.36, a linger or deadline above 2147483647 throws a RangeError.

Events

Sub-namespaces

Bare.Thread

Lightweight threads with synchronous joins and SharedArrayBuffer support.

A thread cannot read its file from disk: its code is passed as source, or as a bundle for a module graph, which bare-thread builds.

Bare.Addon

Native addon loading.

Bare.IPC

Optional streaming communication with embedder. Returns a Duplex stream or null if not embedded.


Source: github.com/holepunchto/bare (src/bare.d.ts, where the API documentation lives since 1.35) and docs.pears.com/bare/reference/bare/runtime