BunServices.ts
BunServices.ts overview
Section titled “BunServices.ts overview”Aggregate Bun platform services layer.
This module defines the BunServices union and a single layer that
provides Bun-backed child process spawning, crypto, filesystem, path, stdio,
and terminal services. Use the layer when a Bun program wants the standard
platform services from one place.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”layers
Section titled “layers”Provides the default Bun implementations for child process spawning, filesystem, path, stdio, and terminal services.
Signature
declare const layer: Layer.Layer<BunServices, never, never>Since v4.0.0
models
Section titled “models”BunServices (type alias)
Section titled “BunServices (type alias)”The union of core services provided by the Bun platform layer, including child process spawning, filesystem, path, stdio, and terminal services.
Signature
type BunServices = ChildProcessSpawner | Crypto | FileSystem | Path | Terminal | StdioSince v4.0.0