First Commit

This commit is contained in:
2025-12-01 20:07:25 +09:00
commit 5ee207c79f
9 changed files with 340 additions and 0 deletions
+15
View File
@@ -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,
};