This repository has been archived on 2021-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
RealtimeDB-OLD/src/config.ts

16 lines
364 B
TypeScript
Raw Normal View History

2019-09-18 19:54:28 +00:00
import * as ini from "ini";
import * as fs from "fs";
import Logging from "@hibas123/nodelogging";
interface IConfig {
general: {
port: string;
admin: string;
access_log: boolean;
dev: boolean
}
}
const config = ini.parse(fs.readFileSync("config.ini").toString()) as IConfig;
Logging.debug("Config:", config);
export default config;