{"id":18756233,"url":"https://github.com/simonberner/advent-of-code-2023","last_synced_at":"2025-06-27T16:31:41.950Z","repository":{"id":215598155,"uuid":"723794959","full_name":"simonberner/advent-of-code-2023","owner":"simonberner","description":"Advent of Code is an Advent calendar of small programming puzzles. ✨ (Work in progress)","archived":false,"fork":false,"pushed_at":"2024-07-29T07:41:55.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T13:56:03.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://adventofcode.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonberner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-26T19:28:24.000Z","updated_at":"2024-07-29T07:41:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f8e0789-f4e6-4492-b6e5-18f8a000e8ac","html_url":"https://github.com/simonberner/advent-of-code-2023","commit_stats":null,"previous_names":["simonberner/advent-of-code-2023"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonberner/advent-of-code-2023","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Fadvent-of-code-2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Fadvent-of-code-2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Fadvent-of-code-2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Fadvent-of-code-2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonberner","download_url":"https://codeload.github.com/simonberner/advent-of-code-2023/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonberner%2Fadvent-of-code-2023/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262293024,"owners_count":23288646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T17:35:43.696Z","updated_at":"2025-06-27T16:31:41.914Z","avatar_url":"https://github.com/simonberner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨🎄 Advent of Code 2023 🎄✨\nThe original puzzle of the year is back! This time I try to solve the puzzles in JavaScript.\n\n## Website\n[Advent of Code](https://adventofcode.com/)\n\n## Solutions\nIn this repository you can find my solutions for the puzzles. Each day's solution is located in its own directory.\n\nIn each directory you will find:\n\n- `README.md`: The puzzle description (Part 1\u00262)\n- `input.txt`: My personal puzzle input\n- `PuzzleDay\u003cday\u003e.js`: My solution code (e.g. PuzzleDay2.js)\n- `puzzle.js`: Code for execution (to get the solution)\n- `puzzle.test.js`: Jest-Tests for part 1 and part 2 of the puzzle, using the example in the description\n\n## Execution\n### Solution Code\n- Use `npm start \u003cday\u003e` to get the solutions for a specific day: e.g. `npm start 01` to get the results for the first day.\n### Jest-Tests\n- Terminal: Use `npm test \u003cday\u003e` to run the tests for a specific day: e.g. `npm test 01` to run the tests for the first day.\n- VSCode: If you are using VSCode as IDE, you can install the Jest extension from Orta and run the tests with that.\n- WebStorm: If you are using WebStorm as IDE, add `--experimental-vm-modules node_modules/jest/bin/jest.js jest --verbose` to the 'Node options' of the Jest-Tests run configuration and run them with that.\n\n## Notes\n### Driven by Tests (TDD)\nI am using TDD for solving each puzzle. This means:\n1. I first write one or more failing test/s\n2. Then I implement the \"simplest\" possible solution code till the test/s passes\n3. Finally I refactor the solution code (till the test/s passes again)\n### Testing with Jest\n#### ECMAScript Modules\n- Using ECMAScript modules in Jest is still experimental!\n- Consider [the following](https://jestjs.io/docs/ecmascript-modules) when running Jest in combination with JavaScript modules.\n#### Script: `test:watch`\nThe `--watch` option is used to enable Jest's watch mode. When you run Jest with the `--watch` flag, it sets up a persistent process that watches for changes in your project files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonberner%2Fadvent-of-code-2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonberner%2Fadvent-of-code-2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonberner%2Fadvent-of-code-2023/lists"}