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

x/dax/src/common.ts>rustJoin

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
function rustJoin
import { rustJoin } from "https://deno.land/x/dax@0.22.0/src/common.ts";

Follow rust std::path::Path::join The advantage is it can handle joining 2 absolute paths with common part

Rust: join("/a/b","/a/c") => "/a/b/c" Deno. join("/a/b","/a/c") => "/a/b/a/c"

Parameters

path1: string
path2: string