aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PursLoader/Loader.js
blob: 45e9c2fbb24a29bb8fc2fdb973c31d294df3362d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'use strict'

// module PursLoader.Loader

var path = require('path');

var cwd = process.cwd();

function relative(from) {
  return function(to){
    return path.relative(from, to);
  };
}

function joinPath(a) {
  return function(b) {
    return path.join(a, b);
  };
}

exports.cwd = cwd;

exports.relative = relative;

exports.joinPath = joinPath;

exports.resolve = path.resolve;

exports.dirname = path.dirname;