aboutsummaryrefslogtreecommitdiff
path: root/node_modules/relateurl/lib/relate/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/relateurl/lib/relate/index.js')
-rw-r--r--node_modules/relateurl/lib/relate/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/relateurl/lib/relate/index.js b/node_modules/relateurl/lib/relate/index.js
new file mode 100644
index 000000000..f90838181
--- /dev/null
+++ b/node_modules/relateurl/lib/relate/index.js
@@ -0,0 +1,18 @@
+"use strict";
+
+var absolutize = require("./absolutize");
+var relativize = require("./relativize");
+
+
+
+function relateUrl(siteUrlObj, urlObj, options)
+{
+ absolutize(urlObj, siteUrlObj, options);
+ relativize(urlObj, siteUrlObj, options);
+
+ return urlObj;
+}
+
+
+
+module.exports = relateUrl;