Commit 9e56d090 authored by nanahira's avatar nanahira

default config in

parent ad37ca6f
host: 'localhost'
port: 3000
import yaml from 'yaml';
import * as fs from 'fs';
export interface Config {
host: string;
port: number;
}
export async function loadConfig(): Promise<Config> {
return yaml.parse(await fs.promises.readFile('./config.yaml', 'utf-8'));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment