/adventofcode2021

https://adventofcode.com/2021

Primary LanguageTypeScript

adventofcode2021

https://adventofcode.com/2021

Example Usage

set up
$ npm install
run all days
$ npm start
run the latest day
$ npm start -- -- -l
run the example for a specific part of a specific day
$ npm start -- -- -d 1 -p 2 -e
help output
$ npm start -- -- --help

index.ts run
index.ts run -e
index.ts run -d [day]
index.ts run -d [day] -e
index.ts run -d [day] -p [part]
index.ts run -d [day] -p [part] -e
index.ts run -d [day] -p [part] -e [ex]
index.ts run -l
index.ts run -l -e
index.ts run -l -e [ex]

Options:
  -d, --day      Run a day in the advent of code.
                               [number] [choices: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  -p, --part     Run part 1 or part 2 of a day.         [number] [choices: 1, 2]
  -l, --latest   Run latest day.
  -e, --example  Run example input (usually 1 or 2) rather than real input for
                 the given part/day.                                    [number]
      --help     Show help                                             [boolean]