twifeur/utils.ts
2024-05-21 18:49:16 +02:00

7 lines
202 B
TypeScript

import { dirname } from "$std/path/dirname.ts";
export function project_root_dir() {
const this_url = new URL(import.meta.url);
const this_dir = dirname(this_url.pathname);
return this_dir + "/";
}