pathToFileURLString
uses node:path
import path from "node:path"; export function pathToFileURLString(p: string): string { return "file://" + p.split(path.sep).map(encodeURIComponent).join("/"); }
uses node:path
import path from "node:path"; export function pathToFileURLString(p: string): string { return "file://" + p.split(path.sep).map(encodeURIComponent).join("/"); }