%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
Join all arguments together and normalize the resulting url. ## Install ~~~ npm install url-join ~~~ ## Usage ~~~javascript var urljoin = require('url-join'); var fullUrl = urljoin('http://www.google.com', 'a', '/b/cd', '?foo=123'); console.log(fullUrl); ~~~ Prints: ~~~ 'http://www.google.com/a/b/cd?foo=123' ~~~ ## Browser and AMD It also works in the browser, you can either include ```lib/url-join.js``` in your page: ~~~html <script src="url-join.js"></script> <script type="text/javascript"> urljoin('http://blabla.com', 'foo?a=1') </script> ~~~ Or using an AMD module system like requirejs: ~~~javascript define(['path/url-join.js'], function (urljoin) { urljoin('http://blabla.com', 'foo?a=1'); }); ~~~ ## License MIT