get-link
Returns an absolute URL relative to another URL. Not vulnerable to Denial-of-Service attacks.
Installation
$ npm install get-link
Usage
getLink(base: string, link:string): string|false
; ;// => http://example.com/foo/bar ;// => http://example.com/foo.php ;// => http://example.com/foo.html ;// => http://example.com/some/styles ;// => http://example.com ;// => http://example.com ;// => http://example.com ;// => false
Tests
$ npm test