parsePath
On this page

parsePath

Summary

Reference Documentation ↗

Parses a string URL path into its separate pathname, search, and hash components.

Signature

function parsePath(path: string): Partial<Path>

Params

path

The URL path to parse.

Returns

The parsed pathname, search, and hash components.

Docs and examples CC 4.0
Edit