Skip to content

BunPath.ts

Bun-backed layers for Effect’s Path service.

This module provides the Path service for Bun programs by reusing the shared Node-compatible path implementation. Provide one of these layers when Bun code should receive path operations from the Effect environment instead of importing runtime path helpers directly.

Since v4.0.0



Layer that provides the default Path service for Bun using the shared Node path implementation.

Signature

declare const layer: Layer.Layer<Path, never, never>

Source

Since v4.0.0

Layer that provides the POSIX Path service for Bun using the shared Node path implementation.

Signature

declare const layerPosix: Layer.Layer<Path, never, never>

Source

Since v4.0.0

Layer that provides the Win32 Path service for Bun using the shared Node path implementation.

Signature

declare const layerWin32: Layer.Layer<Path, never, never>

Source

Since v4.0.0