import { type ParsedPath } from "https://deno.land/x/proc@0.22.1/site/scripts/deps/path.ts";
A parsed path object generated by path.parse() or consumed by path.format().
Examples
Example 1
Example 1
import { parse } from "https://deno.land/std@0.224.0/path/mod.ts";
const parsedPathObj = parse("c:\\path\\dir\\index.html");
parsedPathObj.root; // "c:\\"
parsedPathObj.dir; // "c:\\path\\dir"
parsedPathObj.base; // "index.html"
parsedPathObj.ext; // ".html"
parsedPathObj.name; // "index"