Socket
Socket
Sign inDemoInstall

urljoin

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urljoin

Join the urls like joining the paths


Version published
Weekly downloads
30K
decreased by-3.25%
Maintainers
1
Weekly downloads
 
Created
Source

urljoin

Join the urls like joining the paths

usage

var urljoin = require('urljoin');

//http://yanni4night.com/static/index/main.css
urljoin("http://yanni4night.com", 'static/css', '../index', 'main.css');
//http://yanni4night.com/static/css/main.css
urljoin("http://yanni4night.com/", '/static/css/', '/main.css');
//http://yanni4night.com/static/css/main.css?aa=60
urljoin("http://yanni4night.com?aa=60", 'static/css', '', 'main.css');
//http://yanni4night.com/static/css/main.css?aa=60
urljoin("http://yanni4night.com", 'static/css', '', 'main.css?aa=60');
///static/css/search/main.css?aa=60&bb=70&cc=80&dd=90
urljoin("/?aa=60", 'static?bb=70', 'css?cc=80', 'main.css?dd=90'));
//static/css/main.css?aa=60
urljoin('static/css','main.css','?aa=60');
//http://yanni4night.com/static/build
urljoin('http://yanni4night.com/static','http://google.com/build')
  • Only the protocol/port/host will be saved
  • Get parameters will be all saved

author

  • yanni4night@gmail.com

Keywords

FAQs

Package last updated on 19 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc