AdventOfCode/JS/template/solution_a.mjs
Tobias Berger f678f49ada
JavaScript Day 18
Signed-off-by: Tobias Berger <tobi.berger13@gmail.com>
2022-12-01 13:26:35 +01:00

21 lines
395 B
JavaScript

import fs from "fs";
/**
* Main function for Part 1
*
* @param {string} data - Puzzle input as a single string.
*/
async function main(data) {
return;
}
fs.readFile("input", (err, data) => {
if (err) throw err;
console.time("Part 1");
main(data.toString())
.then((...args) => {
console.timeEnd("Part 1");
console.log(...args);
})
.catch(console.error);
});