Skip to main content
default.FormatInputPathObject - path - Node documentation
interface default.FormatInputPathObject

Usage in Deno

import mod from "node: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'

Back to top