@vyriy/path

Part of Vyriy - 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:

npm install @vyriy/path

With Yarn:

yarn add @vyriy/path

Usage

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

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

API

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