Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

NodePath unstable

Node-backed provider for Effect's Path service.

This module turns Node's node:path and node:url APIs into Path layers. layer uses the host platform path implementation, while layerPosix and layerWin32 provide fixed POSIX and Windows variants. All three layers also include helpers for converting between file paths and file URLs.

3 exports Since v4.0.0 Source

Layers

layer

unstable
Since v4.0.0

Provides the default Path service using the host platform's Node path implementation plus file URL conversion helpers.

Signature

declare const layer: Layer.Layer<Path>

layerPosix

unstable
Since v4.0.0

Provides the Path service using Node's POSIX path implementation plus file URL conversion helpers.

Signature

declare const layerPosix: Layer.Layer<Path>

layerWin32

unstable
Since v4.0.0

Provides the Path service using Node's Windows path implementation plus file URL conversion helpers.

Signature

declare const layerWin32: Layer.Layer<Path>