Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/path.ts>posix.relative

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function posix.relative
import { posix } from "https://deno.land/x/lume@v2.1.1/deps/path.ts";
const { relative } = posix;

Return the relative path from from to to based on current working directory.

Parameters

from: string

path in current working directory

to: string

path in current working directory

Returns

string