aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PursLoader/Path.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/PursLoader/Path.js')
-rw-r--r--src/PursLoader/Path.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/PursLoader/Path.js b/src/PursLoader/Path.js
new file mode 100644
index 0000000..878f256
--- /dev/null
+++ b/src/PursLoader/Path.js
@@ -0,0 +1,24 @@
1'use strict'
2
3// module PursLoader.Path
4
5var path = require('path');
6
7function relative(from) {
8 return function(to){
9 return path.relative(from, to);
10 };
11}
12exports.relative = relative;
13
14
15function joinPath(a) {
16 return function(b) {
17 return path.join(a, b);
18 };
19}
20exports.joinPath = joinPath;
21
22exports.resolve = path.resolve;
23
24exports.dirname = path.dirname;