Skip to content

A platform for community discussion. Free, open, simple.

158 B
Raw Blame
export function pathToFileURL(path) {
  return new URL(path, "file://").toString();
}

export function fileURLToPath(url) {
  return new URL(url).pathname;
}