Skip to content

Instantly share code, notes, and snippets.

@bobrik
Created May 15, 2013 11:14
Show Gist options
  • Save bobrik/5583253 to your computer and use it in GitHub Desktop.
Save bobrik/5583253 to your computer and use it in GitHub Desktop.
% node
> url = require("url")
> url.format({protocol: "http:", host: "google.com", port: 123})
'http://google.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment