{"id":23060412,"url":"https://github.com/brandonhowe/aoc-2022-ts","last_synced_at":"2025-04-03T07:15:55.113Z","repository":{"id":64160084,"uuid":"572944336","full_name":"BrandonHowe/aoc-2022-ts","owner":"BrandonHowe","description":"Advent of Code 2022 in TS ","archived":false,"fork":false,"pushed_at":"2022-12-25T16:52:57.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T20:47:44.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/BrandonHowe.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}},"created_at":"2022-12-01T11:17:23.000Z","updated_at":"2022-12-01T11:17:44.000Z","dependencies_parsed_at":"2023-01-15T01:00:18.482Z","dependency_job_id":null,"html_url":"https://github.com/BrandonHowe/aoc-2022-ts","commit_stats":null,"previous_names":["brandonhowe/aoc-2022-ts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonHowe%2Faoc-2022-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonHowe%2Faoc-2022-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonHowe%2Faoc-2022-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonHowe%2Faoc-2022-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrandonHowe","download_url":"https://codeload.github.com/BrandonHowe/aoc-2022-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246952274,"owners_count":20859812,"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-12-16T03:12:24.208Z","updated_at":"2025-04-03T07:15:55.092Z","avatar_url":"https://github.com/BrandonHowe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code Template TS\n\n[![forthebadge](https://forthebadge.com/images/badges/powered-by-water.svg)](https://forthebadge.com)\n\nThis is a template for Advent of Code, written in TypeScript.\n\n## How to use\n\nFor each day, navigate to the respective folder in `src`.\n* Place your input for each day in `input.txt`.\n* Place your code in `index.ts`, between lines 10 and 12.\n\nThere are 4 different functions that parse your input:\n* `readInputRaw` - reads the input raw, does not modify it\n* `readInputSplit` - reads the input and splits it by line\n* `readInputSplitNum` - reads the input and splits it by line, then converts every line to a number\n* `readInputGrid` - reads the input and splits it by line, then splits each one by character to make a 2D grid\n\nIf you want to display a grid, there are 2 different functions. Each takes in a grid (a 2D array) and an optional replacer. Both function identically without the replacer, but the implementations of the replacer are different.\n* `displayGridObjConfig` - takes a key/value pair and maps each value in the grid that matches the key to the value\n* `displayGridFuncConfig` - takes a function that maps a grid value to a string, and executes it on each value (if the function returns nothing for a particular value, it is unmodified)\n\nThere are scripts to run each day with `ts-node`. Each script name is \"day\" followed by the number. For example, Day 18's puzzle executed via npm would look like `npm run day18`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonhowe%2Faoc-2022-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonhowe%2Faoc-2022-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonhowe%2Faoc-2022-ts/lists"}