Skip to content

NodePath.ts

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.

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, never, never>

Source

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, never, never>

Source

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, never, never>

Source

Since v4.0.0