resolve-url.js 219 B

123456789
  1. var url = require("url")
  2. function resolveUrl(/* ...urls */) {
  3. return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) {
  4. return url.resolve(resolved, nextUrl)
  5. })
  6. }
  7. module.exports = resolveUrl