First Commit
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { dirname } from "node:path";
|
||||
const getFilename = (moduleUrl) => {
|
||||
return fileURLToPath(moduleUrl);
|
||||
};
|
||||
const getDirname = (moduleUrl) => {
|
||||
return dirname(getFilename(moduleUrl));
|
||||
};
|
||||
export { getFilename, getDirname, };
|
||||
Reference in New Issue
Block a user