AdventOfCode2024/index.tmpl.ts

14 lines
277 B
TypeScript

import fs from "node:fs";
const data = fs.readFileSync("./inputs/input", "utf8");
console.log(
"part one:",
data.split("\n").slice(0, -1) // remove empty trailing newline
);
console.log(
"part two:",
data.split("\n").slice(0, -1) // remove empty trailing newline
);