AdventOfCode/JS/template/solution_a.mjs

18 lines
342 B
JavaScript
Raw Normal View History

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