all repos — homestead @ 7345705a8beb99c3a57815fddc5f28cc45f2bb79

Code for my website

src/config.ts (view raw)

1
2
3
4
5
6
7
8
9
import path from "node:path";
import fs from "node:fs";
import toml from "toml";

export default function readConfig(base: string) {
  const filename = path.join(base, "config.toml");

  return toml.parse(fs.readFileSync(filename, "utf-8"));
}