nurlize refers to this npm module, nurlize.
The function it creates is called urlize.
npm install nurlize
var urlize = ;var base = ;// ''var bop = base// ''
urlize(base, [...]) -> url
Normalize uri components. Allows programmatically constructing urls given a base URL.
url.urlize([...]) -> url
The url returned has a function called urlize which does the same thing but with the previous value as the base URL.
Inputs expressed as relative urls this way will always resolve to an absolute
url relative to that base url. Results curried using
urlize to use that url as the new base.
var urlize = ;if !moduleparentvar base = ;console;var bop = baseconsole;console;console;var baz = bopconsole;var foo = baz;console;var rebase = foo;console;var rehost = foo;console;
base http://example.com/basebop http://example.com/basefoo/bar/baz/bopbop http://example.com/baz http://example.com/path/bazz/new/basefoo http://example.com/path/indexrebase http://example.com/.rehost https://rehost.io/another/base