crsanti / advent-of-code-javascript-boilerplate

A simple boilerplate to solve https://adventofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent Of Code

This is a boilerplate to solve Advent Of Code exercises using JavaScript.

How to use it

In order to run a specific day and part just use:

npm start day<number> [part]

Examples:

To run day 5, part 2:

npm start day5 2

To run day 7, part 1:

npm start day7 1

or

npm start day7

How to add days

Just create a module in ./src/day<number>/day<number>.js that exports two functions:

exports.run1 = () => {
  // Code to solve Part One
}

exports.run2 = () => {
  // Code to solve Part Two
}

You may want to also add ./src/day<number>/day<number>.md with the description.


Happy coding~🎄!

About

A simple boilerplate to solve https://adventofcode.com

License:MIT License


Languages

Language:JavaScript 100.0%