8.6 Released with 🥽 visionOS support and more!
Check it out
Enables path-specific operations like join, extension, etc.

Summary

Variables

separator

Functions

join
normalize

Variables

separator

separator: string
Gets the string used to separate file paths.

Functions

join

join(...paths: string[]): string
Joins all the provided string components, forming a valid and normalized path.
Parameter Default Description
paths
string[]

An array of string components to be joined.

Returns string

normalize

normalize(path: string): string
Normalizes a path, taking care of occurrances like ".." and "//".
Parameter Default Description
path
string

The path to be normalized.

Returns string
Previous
knownFolders