url-join
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.0.0
    1,189,923
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.0.0
    1,189,923
  • 4.0.1
    9,445,505
  • 4.0.0
    1,171,954
  • 3.0.0
    23,942
  • 2.0.5
    3,580,204
  • 2.0.4
    14
  • 2.0.3
    91
  • 2.0.2
    23,063
  • 2.0.1
    2,919
  • 2.0.0
    288
  • 1.1.0
    690,148
  • 1.0.0
    24
  • 0.0.1
    1,852,346

Package Sidebar

Install

npm i url-join

Weekly Downloads

6,361,286

Version

5.0.0

License

MIT

Unpacked Size

4.74 kB

Total Files

5

Last publish

Collaborators

  • jkoops
  • jfromaniello