diff options
| author | Ritesh Ghosh <[email protected]> | 2024-12-17 12:49:14 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2024-12-17 12:49:14 +0530 |
| commit | 54fe5389e13c3ae62a27c414af03cc6d5a260837 (patch) | |
| tree | 4eec61b49488ad73fc4d652c4f99b07467d28fde | |
| parent | 1f474352d69bc295c4f8bb5d293940d49e1191ca (diff) | |
| download | aniwatch-api-54fe5389e13c3ae62a27c414af03cc6d5a260837.tar.xz aniwatch-api-54fe5389e13c3ae62a27c414af03cc6d5a260837.zip | |
feat: add global constants
| -rw-r--r-- | src/globals.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/globals.ts b/src/globals.ts new file mode 100644 index 0000000..0515128 --- /dev/null +++ b/src/globals.ts @@ -0,0 +1,5 @@ +import path from "path"; +import { fileURLToPath } from "url"; + +export const __filename = fileURLToPath(import.meta.url); +export const __dirname = path.dirname(__filename); |
