My JavaScript / ES2021+ solutions for Advent of Code.
Note: Make sure to run all commands in this README from this js
-folder.
Install Node.js 18 or higher for your platform.
Install dependencies through npm:
npm install
To run all solutions for the current edition:
npm start
To run solutions for specific days, pass one or more days as arguments:
npm start 1 4 9
To run solutions for a different edition, specify the year:
npm start 2017
npm start 2017 1 4 9
To run a combination of solutions from different editions, mix and match years and days, reading from left to right.
Example to run 2017 day 1 and 4, 2018 all days, and 2019 day 5:
npm start 2017 1 4 2018 2019 5
To generate and display a progress overview, run:
npm run progress
To monitor code changes and re-run solutions during development:
npm run start:dev 2018 6
To bootstrap an empty solution for a given year and day, run:
npm run bootstrap 2019 20
Bootstrapping solutions for multiple days is not supported.
To run tests for utilities:
npm run test