Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/path/posix.ts>relative

Deno standard library
Go to Latest
function relative
import { relative } from "https://deno.land/std@0.82.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