import { type path } from "https://deno.land/x/mtkruto@0.2.30/0_deps.ts";
const { ParsedPath } = path;
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"
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"