Have you tried this way?
const dir = path.join(process.cwd(), "path_which_you_want"); const content = fs.readFileSync(dir);