all repos — archive/homestead @ 2ea9c80f1599398e122e3531c6e9be6b091e60af

My future indieweb platform

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