resolvePath
On this page

resolvePath

Summary

Reference Documentation ↗

Returns a resolved Path object relative to the given pathname.

Signature

function resolvePath(to: To, fromPathname = "/"): Path

Params

to

The path to resolve, either a string or a partial Path object.

fromPathname

The pathname to resolve the path from. Defaults to /.

Returns

A Path object with the resolved pathname, search, and hash.

Docs and examples CC 4.0
Edit