all repos — homestead @ a95e2842c84b9dba1b2b78cb184139d080f8b5a9

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"));
}