Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.
import { promises as fs } from "node:fs"; import path from "node:path"; export const readFileFromRoot = (relativePath: string) => { const absolutePath = path.join(process.cwd(), relativePath); return fs.readFile(absolutePath, "utf-8"); };