Skip to main content
path.PlatformPath.parse - path - Node documentation
method path.PlatformPath.parse

Usage in Deno

import { type path } from "node:path";
PlatformPath.parse(path: string): ParsedPath

Returns an object from a path string - the opposite of format().

Parameters

path: string

path to evaluate.

Return Type

Throws

TypeError

if path is not a string.