Resolve a possibly relative URL agains a source URL
npm install resolve-relative-urlresolve-relative-url
====================




#### Introduction:
Resolve a possibly relative URL agains a source URL.
If the URL is not relative, return it unchanged.
---------------------------------------
Resolve a possibly relative URL
__Arguments__
* link - A possibly relative URL.
* source - Source URL.
__Example__
``js
var resolveRelative = require('resolve-relative-url');
var resolvedURL = resolveRelative('/banner.img', 'http://www.somedomain.com');
// http://www.somedomain.com/banner.img
var resolvedURL = resolveRelative('https://www.otherdomain.com/banner.img', 'http://www.somedomain.com');
// https://www.otherdomain.com/banner.img
var resolvedURL = resolveRelative('', 'http://www.somedomain.com');
// https://www.somedomain.com
``