effect-path

Installation
SKILL.md

path

Use effect Path abstraction for platform-abstract file path operations. Apply this skill when working with file paths, joining segments, resolving absolute paths, or converting between file URLs and paths. Path.layer supplies POSIX semantics from effect; Node.js and Bun platform layers provide host-specific path semantics. @effect/platform-browser does not provide a BrowserPath layer, so browser code should provide Path.layer or a custom layer explicitly.

Targets Effect 4.1.0 (effect@4.1.0 source tag). In browsers without process.cwd(), supply an absolute POSIX base to resolve/toFileUrl when using Path.layer; it does not invent a browser working directory.

Import Pattern

import { Path } from 'effect';

Service Injection

import { Path } from 'effect';
import { Effect } from 'effect';
Installs
3
GitHub Stars
11
First Seen
Aug 27, 2026