full-url
full-url is a function that returns the full URL of a request, including the scheme and host.
Install
npm install full-url
Example
node
var server = createServervar url =
browser(ify)
var url =var path = '[wherever]' || '/path/to/resource'// => http://whenev.er/[wherever]