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

x/fathym_atomic_icons/src/src.deps.ts>path.relative

Fathym's Atomic Icons is a library that supports the optimized creation of customzied icon sets for delivery via Deno Fresh.
Go to Latest
function path.relative
import { path } from "https://deno.land/x/fathym_atomic_icons@v0.0.32/src/src.deps.ts";
const { relative } = path;

Return the relative path from from to to based on current working directory.

An example in windws, for instance: from = 'C:\orandea\test\aaa' to = 'C:\orandea\impl\bbb' The output of the function should be: '..\..\impl\bbb'

Parameters

from: string

path in current working directory

to: string

path in current working directory

Returns

string