function pathToFileURLimport { pathToFileURL } from "https://dotland.deno.dev/std@0.177.0/node/url.ts"; pathToFileURL(filepath: string): URLThis function ensures that filepath is resolved absolutely, and that the URL control characters are correctly encoded when converting into a File URL. Parametersfilepath: stringThe file path string to convert to a file URL. ReturnsURLThe file URL object.