Skip to content

Instantly share code, notes, and snippets.

@Rolinh Rolinh/url.js
Last active Oct 4, 2016

Embed
What would you like to do?
url resolve bug?
> var url = require("url");
undefined
> url.resolve("https://foo.tld", "bar");
'https://foo.tld/bar'
> url.resolve("wss://foo.tld", "bar");
'wss://bar'
> url.resolve("ftps://foo.tld", "bar");
'ftps://bar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.