@vyriy/path
v0.8.9
Published
Shared path utilities for Vyriy projects
Readme
@vyriy/path
Part of Vyriy - a calm architecture toolkit for TypeScript, React, SSR, SSG, APIs, and cloud-ready apps.
Full documentation: https://vyriy.dev/docs/path/
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/pathWith Yarn:
yarn add @vyriy/pathUsage
import { path } from '@vyriy/path';
const packageRoot = path('packages', 'path');API
path(...segments)resolves an absolute path fromPROJECT_CWDorprocess.cwd().
