mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 23:33:38 -05:00
19 lines
401 B
JavaScript
19 lines
401 B
JavaScript
'use strict';
|
|
|
|
exports.path = require('path').dirname(require.main.filename);
|
|
|
|
exports.resolve = function(pathToModule) {
|
|
return exports.path + pathToModule;
|
|
};
|
|
|
|
exports.require = function(pathToModule) {
|
|
return require(exports.resolve(pathToModule));
|
|
};
|
|
|
|
exports.toString = function() {
|
|
return exports.path;
|
|
};
|
|
|
|
exports.setPath = function(explicitlySetPath) {
|
|
exports.path = explicitlySetPath;
|
|
}; |