effect-path

Community

Portably manipulate paths and file URLs.

Authormpsuesser
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents platform-specific path bugs by giving you a single, consistent way to join, resolve, normalize, and convert file paths and file URLs across Node.js, Bun, and browser-like environments.

Core Features & Use Cases

  • Cross-platform path operations: join, resolve, normalize, dirname, basename, extname, parse, and format.
  • Absolute/relative handling: detect absolute paths and compute relative paths.
  • File URL conversions (effectful): convert between file: URLs and filesystem paths using fromFileUrl and toFileUrl, with proper BadArgument failure behavior.
  • Windows long-path support: use toNamespacedPath to produce \\?\ namespaced paths on Windows.

Quick Start

Use the effect-path skill when you need to reliably join and resolve project files without hardcoding path separators, and convert between URL objects and filesystem paths.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: effect-path
Download link: https://github.com/mpsuesser/pi-effect-harness/archive/main.zip#effect-path

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.