diff options
Diffstat (limited to 'src/PursLoader/Path.js')
-rw-r--r-- | src/PursLoader/Path.js | 24 |
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 | |||
5 | var path = require('path'); | ||
6 | |||
7 | function relative(from) { | ||
8 | return function(to){ | ||
9 | return path.relative(from, to); | ||
10 | }; | ||
11 | } | ||
12 | exports.relative = relative; | ||
13 | |||
14 | |||
15 | function joinPath(a) { | ||
16 | return function(b) { | ||
17 | return path.join(a, b); | ||
18 | }; | ||
19 | } | ||
20 | exports.joinPath = joinPath; | ||
21 | |||
22 | exports.resolve = path.resolve; | ||
23 | |||
24 | exports.dirname = path.dirname; | ||