Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/cli/deps.ts>pathPosix.relative

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function pathPosix.relative
import { pathPosix } from "https://deno.land/x/hex@0.5.15/src/cli/deps.ts";
const { relative } = pathPosix;

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