@speckle/shared
Version:
Shared code between various Speckle JS packages
11 lines • 335 B
JavaScript
import { fileURLToPath } from 'url';
import { dirname } from 'path';
/**
* Feed in import.meta and get the module's filesystem location
*/
export const getModuleDirectory = (meta) => {
const __filename = fileURLToPath(meta.url);
const __dirname = dirname(__filename);
return __dirname;
};
//# sourceMappingURL=node.js.map