self-link
v1.0.1
Published
Generate a link to a path on the running web application
Downloads
12
Readme
self-link 
Generate a link to a path on the running web application
Install
$ npm install --save self-linkUsage
var selfLink = require('self-link')
selfLink('/foo')
//=> https://www.my-current-host.domain/fooAPI
selfLink(path) -> string
path
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.
License
MIT © Ben Drucker
