Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

244 B
Raw Blame
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");
};