Skip to content

NodeFileSystem

Shared Node-compatible implementation of Effect's FileSystem service.

This module adapts Node's node:fs, node:os, and node:path APIs into a FileSystem layer for Effect programs running on Node-compatible runtimes. Platform packages use it to provide file and directory I/O, permissions, links, metadata, temporary files and directories, and file watching through the shared FileSystem service.

1 exports Added in v4.0.0 Source

Layers

layer

Added in v4.0.0 Source

Provides the FileSystem service backed by Node filesystem APIs, including file operations, directory operations, links, metadata, and file watching.

Signature

declare const layer: Layer.Layer<FileSystem.FileSystem>;