Skip to main content
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.4/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