Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/utils/path.ts>normalizePath

🔥 Static site generator for Deno 🦕
Very Popular
Latest
function normalizePath
import { normalizePath } from "https://deno.land/x/lume@v2.4.2/core/utils/path.ts";

Convert the Windows paths (that use the separator "") to Posix paths (with the separator "/") and ensure it starts with "/".

Parameters

path: string
optional
rootToRemove: string