Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabiankaegy/advent-of-code-2021
https://github.com/fabiankaegy/advent-of-code-2021
advent-of-code advent-of-code-2021
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fabiankaegy/advent-of-code-2021
- Owner: fabiankaegy
- Created: 2021-12-02T05:56:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T07:58:41.000Z (about 3 years ago)
- Last Synced: 2024-11-11T16:27:56.174Z (3 months ago)
- Topics: advent-of-code, advent-of-code-2021
- Language: JavaScript
- Homepage: https://adventofcode.com/2021
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Advent of Code 2021
Very sloppy implementations of the 2021 Advent of Code challenges written in vanilla JavaScript. In order to run the scripts I use [Quokka JS](https://quokkajs.com) to live eveluate it straigth in VSCode.
## Using Inputs
There is a helper in the repo that automatocally 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' );
```