UNPKG
compare-path
Version:
latest (1.3.0)
1.3.0
1.2.0
1.1.3
1.1.1
1.1.0
1.0.0
An easy-to-use package to detect if two URLs match each other by comparing their abstract paths
compare-path
/
dist
/
utils
/
clean-path.d.ts
6 lines
•
229 B
TypeScript
View Raw
1
2
3
4
5
6
/** * Remove any leading/trailing whitespace and slashes adn remove multiple consecutive slashes (/) * anywhere in the path. */
export
declare
const
cleanPath
:
(
path
:
string
) =>
string
;
//# sourceMappingURL=clean-path.d.ts.map