Skip to main content
Module

std/path/posix/mod.ts>relative

The Deno Standard Library
Go to Latest
function relative
import { relative } from "https://deno.land/std@0.222.1/path/posix/mod.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