Sha256: 5a889b700b51d4a2b111ea64986141c6fa02fd80542dd42afe114c7ffb527c6a

Contents?: true

Size: 295 Bytes

Versions: 27

Compression:

Stored size: 295 Bytes

Contents

// Copyright 2014 Simon Lydell
// X11 (“MIT”) Licensed. (See LICENSE.)

var url = require("url")

function resolveUrl(/* ...urls */) {
  return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) {
    return url.resolve(resolved, nextUrl)
  })
}

module.exports = resolveUrl

Version data entries

27 entries across 27 versions & 8 rubygems

Version Path
lux_assets-0.2.9 ./node_modules/source-map-resolve/lib/resolve-url.js
lux_assets-0.2.4 ./node_modules/source-map-resolve/lib/resolve-url.js
lux_assets-0.2.2 ./node_modules/source-map-resolve/lib/resolve-url.js
lux_assets-0.2.1 ./node_modules/source-map-resolve/lib/resolve-url.js
locomotivecms-3.4.0 app/javascript/node_modules/source-map-resolve/lib/resolve-url.js
cortex-0.1.3 spec/dummy/node_modules/source-map-resolve/lib/resolve-url.js
dragonfly_puppeteer-0.1.0 node_modules/source-map-resolve/lib/resolve-url.js