@dillonkearns/elm-graphql
Version:
<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">
19 lines (14 loc) • 401 B
JavaScript
;
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;
};