9 lines
314 B
TypeScript
9 lines
314 B
TypeScript
import { platform } from "node:process";
|
|
import Logging, { TimeFormat } from "@proxnet/undead-logging";
|
|
|
|
const log = new Logging("Path");
|
|
|
|
export const RootPath = Deno.mainModule.substring(platform == 'win32' ? 8 : 7, Deno.mainModule.length - 11);
|
|
|
|
log.timeFormat = TimeFormat.Unix;
|
|
log.i(`RootPath: ${RootPath}`); |