Skip to content

Function: relative()

relative(from, to): string | undefined

Relative POSIX path from from to to, both absolute. Returns undefined when to is outside from.

string

string

string | undefined