path.FormatInputPathObject - Node documentation
interface path.FormatInputPathObject

Usage in Deno

import { type path } from "node:path";
type { FormatInputPathObject } = path;

Properties

optional
root: string | undefined

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

optional
dir: string | undefined

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

optional
base: string | undefined

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

optional
ext: string | undefined

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

optional
name: string | undefined

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