mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-23 02:46:09 -07:00
10 lines
219 B
JavaScript
10 lines
219 B
JavaScript
|
var url = require("url")
|
||
|
|
||
|
function resolveUrl(/* ...urls */) {
|
||
|
return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) {
|
||
|
return url.resolve(resolved, nextUrl)
|
||
|
})
|
||
|
}
|
||
|
|
||
|
module.exports = resolveUrl
|