Generate a link to a path on the running web application
$ npm install --save self-link
var selfLink = require('self-link')
selfLink('/foo')
//=> https://www.my-current-host.domain/foo
Required
Type: string
The path for the generated link. The path will be appending to the current protocol + host. In Node, the path will be /
-prefixed and then returned.
MIT © Ben Drucker