url-join

Join urls and normalize as in path.join.

url-join downloads url-join version url-join license

url-join类似的npm包:

npm下载趋势

3 年
🌟 在 url-join 的 README.md 中显示实时使用量图表,只需复制下面的代码。
## Usage Trend
[![Usage Trend of url-join](https://npm-compare.com/img/npm-trend/THREE_YEARS/url-join.png)](https://npm-compare.com/url-join#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 在 url-join 的 README.md 中显示 GitHub stars 趋势图表,只需复制下面的代码。
## GitHub Stars Trend
[![GitHub Stars Trend of url-join](https://npm-compare.com/img/github-trend/url-join.png)](https://npm-compare.com/url-join)

统计详情

npm包名称
下载量
Stars
大小
Issues
发布时间
License
url-join13,944,0473654.74 kB5-MIT

url-join的README

Join all arguments together and normalize the resulting URL.

Install

npm install url-join

If you want to use it directly in a browser use a CDN like Skypack.

Usage

import urlJoin from 'url-join';

const fullUrl = urlJoin('http://www.google.com', 'a', '/b/cd', '?foo=123');

console.log(fullUrl);

Prints:

'http://www.google.com/a/b/cd?foo=123'

License

MIT