Advent of Code 2024 solutions in TypeScript using Bun.
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 |
||||||
2 |
3 |
4 |
5 |
|||
Set up your session token:
- Get your session token from Advent of Code (check your browser cookies)
- Create a
.env
file in the root directory - Add your session token:
SESSION=your_session_token_here
To set up a new day's challenge:
bun run setup <day>
To run solutions:
bun run run <day> # Run with puzzle input
bun run run <day> -s # Run with test input (smol.txt)
To submit solutions:
bun run submit1 <day> # Submit part 1 solution
bun run submit2 <day> # Submit part 2 solution