Files
geekgeekrun/packages/utils/legacy-path.mjs
2024-02-11 23:43:10 +08:00

3 lines
182 B
JavaScript

import * as url from 'url';
export const get__filename = () => url.fileURLToPath(import.meta.url);
export const get__dirname = () => url.fileURLToPath(new URL('.', import.meta.url));