GitHub

platform

API reference for platform.

The host's platform services in one layer (Effect's NodeServices)::

fx.run_main(program.pipe(fx.provide(platform.layer)))

provides the live FileSystem, Path, Stdio, Terminal and ChildProcessSpawner. Cryptography is provided explicitly, with crypto.native.layer or a family's own layer.

Values

AttributeTypeDescription
layerLayer[PlatformServices]

The live FileSystem, Path, Stdio, Terminal and ChildProcessSpawner.

Types

TypeDefinitionDescription
PlatformServicestype PlatformServices = ChildProcessSpawner | FileSystem | Path | Stdio | Terminal