Contains NodeJS solutions for https://adventofcode.com problems by year/day.
- Clone the repo
- Install dependencies with
yarn
- Run a specific day's puzzle with
yarn start 2018:1:2
to run the second problem of the first day of 2018.- The script can also assume the current year and day if desired so
yarn start 1:2
is equivalent toyarn start currentYear:1:2
andyarn start 2
is equivalent toyarn start currentYear:currentDay:2
- The script can also modify the input file name if the day's puzzle is configured to support it. Running
yarn start 2 test
will set theINPUT
environment variable totest.txt
and will run thecurrentYear/currentDay/index-2.ts
script file. That file should referenceprocess.env.INPUT
to load the correct file.
- The script can also assume the current year and day if desired so