Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabiankaegy/advent-of-code-2022


https://github.com/fabiankaegy/advent-of-code-2022

advent-of-code advent-of-code-2022

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# Advent of Code 2022

Very sloppy implementations of the 2021 Advent of Code challenges written in vanilla JavaScript. To run the scripts I use [Quokka JS](https://quokkajs.com) to evaluate the code inline in VSCode.

## Using Inputs

There is a helper in the repo that automatically parses the daily input into an array of strings representing the individual lines.

```js
const getInputValues = require('./helper/get-input-values');

// replace 'x' with the name of the .txt file located in the `input` folder
const input = await getInputValues( 'x' );
```