This repository contains my solutions for Advent of Code 2025 implemented as ES modules.
Project: Solutions for days 1–12 (one file per day).
Requirements:
- Node.js 22+ (or any Node that supports ES modules and top-level await)
Run a single day
Place the puzzle input in the inputs/ directory (for example inputs/day1.txt). Run a solution with:
./day1.mjsReplace day1.mjs with the day you want to run.
Run all days (simple loop)
for d in {1..9}; do "./day${d}.mjs"; doneFile structure
- day1.mjs — Day 1 solution
- day2.mjs — Day 2 solution
- day3.mjs - Day 3 solution
- day4.mjs - Day 4 solution
- day5.mjs - Day 5 solution
- day6.mjs - Day 6 solution
- day7.mjs - Day 7 solution
- day8.mjs - Day 8 solution
- day9.mjs - Day 9 solution
- day10.mjs - Day 10 solution
- day11.mjs - Day 11 solution
- day12.mjs - Day 12 solution
- inputs/ — puzzle input files (e.g., inputs/day1.txt)
Add a new day
- Add
day10.mjsimplementing the solution (see previous days for basic setup) - Add the corresponding input file at
inputs/day10.txt. - Run with
chmod +x day10.mjs. - Run with
./day10.mjsornode day10.mjs.
License
No license specified. Use at your own discretion.