Primo committ Notevole
This commit is contained in:
10
helpers.js
Normal file
10
helpers.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user