About node's url package.
url
url.format
http
https
/foo/bar/bin
localhost
1337
{ foo: 'bar' }
const url = require('url')