UNPKG

@speckle/shared

Version:

Shared code between various Speckle JS packages

15 lines 507 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getModuleDirectory = void 0; const url_1 = require("url"); const path_1 = require("path"); /** * Feed in import.meta and get the module's filesystem location */ const getModuleDirectory = (meta) => { const __filename = (0, url_1.fileURLToPath)(meta.url); const __dirname = (0, path_1.dirname)(__filename); return __dirname; }; exports.getModuleDirectory = getModuleDirectory; //# sourceMappingURL=node.js.map