url-join
- Version 5.0.0
- Published
- 4.74 kB
- No dependencies
- MIT license
Install
npm i url-join
yarn add url-join
pnpm add url-join
Overview
Join urls and normalize as in path.join.
Index
Functions
Functions
function urlJoin
urlJoin: { (...parts: string[]): string; (parts: string[]): string };
Join all arguments together and normalize the resulting url. This works similar to
path.join
but you shouldn't usepath.join
for urls since it works differently depending on the operating system and also doesn't work for some cases.
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (3)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/url-join
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/url-join)
- HTML<a href="https://www.jsdocs.io/package/url-join"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 716 ms. - Missing or incorrect documentation? Open an issue for this package.