Module

x/wmill/deps.ts>path.relative

Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool.
Go to Latest
function path.relative
import { path } from "https://dotland.deno.dev/x/wmill@v1.323.6/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