all repos — homestead @ 7345705a8beb99c3a57815fddc5f28cc45f2bb79

Code for my website

Merge homestead repository

Alan Pearce
commit

7345705a8beb99c3a57815fddc5f28cc45f2bb79

parent

6d0d09fd6c8653f90c2fce4f8fa9c23d0ff991e2

1 file changed, 9 insertions(+), 0 deletions(-)

changed files
A src/config.ts
@@ -0,0 +1,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")); +}