# @vyriy/path

Shared path utility for Vyriy projects.

Tags: path, filesystem, workspaces, tooling
Source: https://vyriy.dev/docs/path/

---

# @vyriy/path

Part of [Vyriy](https://vyriy.dev) - a calm architecture toolkit for TypeScript, React, SSR, SSG, APIs, and cloud-ready apps.

Shared path utility for Vyriy projects.

## Purpose

This package provides a small path resolver rooted at the current project directory. It resolves paths relative to `PROJECT_CWD` when that environment variable is set, and otherwise falls back to `process.cwd()`.

## Install

With npm:

```bash
npm install @vyriy/path
```

With Yarn:

```bash
yarn add @vyriy/path
```

## Usage

```ts
import { path } from '@vyriy/path';

const packageRoot = path('packages', 'path');
```

## API

- `path(...segments)` resolves an absolute path from `PROJECT_CWD` or `process.cwd()`.
