import { type ParsedPath } from "https://deno.land/std@0.224.0/path/mod.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"