9 lines
No EOL
240 B
TypeScript
9 lines
No EOL
240 B
TypeScript
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;
|
|
} |