To install dependencies:
bun installThis script can auto-download the puzzle input for you on runtime:
- Login on https://adventofcode.com/auth/login
- After login, open the devtools in your browser
- Go to your cookies
- Copy the value of the
sessioncookie - Create a
.envfile in the project - Add
SESSION=<cookie value>to.env
To run all puzzles:
bun run index.tsTo run a specific puzzle:
bun run days/<day>/index.tsThis project was created using bun init in bun v1.0.14. Bun is a fast all-in-one JavaScript runtime.