Created
December 2, 2022 10:05
-
-
Save nbogie/ccbc465395d2cc2bc0d60b67300c47fe to your computer and use it in GitHub Desktop.
JavaScript (not TypeScript) starter for advent of code solutions in node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs/promises'); | |
async function readFileAndSolveProblem() { | |
const inputRaw = await fs.readFile("./inputs/inputDay1A.txt", { encoding: 'utf8' }) | |
const inputLines = inputRaw.split("\n"); | |
console.log({ inputLines }) | |
//TODO: solve the problem here, based on inputLines | |
} | |
readFileAndSolveProblem() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment