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

x/hex/src/generator/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/generator/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