Skip to content

NodePath

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 Added in v4.0.0 Source

Layers

layer

Added in v4.0.0 Source

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

Added in v4.0.0 Source

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

Signature

declare const layerPosix: Layer.Layer<Path>;

layerWin32

Added in v4.0.0 Source

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

Signature

declare const layerWin32: Layer.Layer<Path>;