std/path/mod.ts

Deno standard library
Go to Latest
interface ParsedPath
import { type ParsedPath } from "https://deno.land/std@0.139.0/path/mod.ts?s=ParsedPath";

A parsed path object generated by path.parse() or consumed by path.format().

Properties

root: string[src]

The root of the path such as '/' or 'c:'

dir: string[src]

The full directory path such as '/home/user/dir' or 'c:\path\dir'

base: string[src]

The file name including extension (if any) such as 'index.html'

ext: string[src]

The file extension (if any) such as '.html'

name: string[src]

The file name without extension (if any) such as 'index'