11 lines
225 B
JavaScript
Executable File
11 lines
225 B
JavaScript
Executable File
const path = require('path');
|
|
|
|
const ROOT = path.resolve(__dirname, '.');
|
|
|
|
function root(args) {
|
|
args = Array.prototype.slice.call(arguments, 0);
|
|
return path.join.apply(path, [ROOT].concat(args));
|
|
}
|
|
|
|
exports.root = root;
|