t00-multiuser/server/objects/Config.ts

9 lines
240 B
TypeScript
Raw Normal View History

2024-04-18 23:18:49 +01:00
import { readFileSync } from "fs";
const config = JSON.parse(readFileSync("./config.json").toString());
export default class Config {
public constructor() { throw new Error("Static Class"); }
public static port:number = config.port;
}