import { dirname } from "https://dotland.deno.dev/std@0.224.0/url/mod.ts";
Returns the directory path of a URL or URL string.
The directory path is the portion of a URL up to but excluding the final path segment.
The final path segment, along with any query or hash values are removed. If there is no path segment then the URL origin is returned.