Skip to main content
Module

std/path/posix.ts>relative

Deno standard library
Go to Latest
function relative
import { relative } from "https://deno.land/std@0.89.0/path/posix.ts";

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