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