5 lines
114 B
JavaScript
5 lines
114 B
JavaScript
const { URL } = require("url");
|
|
|
|
module.exports = function(url, base) {
|
|
return (new URL(url, base)).toString()
|
|
}; |