Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 941 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 941 Bytes

aoc

codecov GitHub Workflow Status

Advent of Code Solutions in Typescript

I'm new to Typescript so I'm using it for this to learn.

Structure is based on alan-seymour/aoc-ts

Usage

# run using ts-node
$ npm run solve-ts

# run using node
# build project before running
$ npm run build-ts
# run file
$ npm run solve

Options

-d, --day   Run solution for specific day
-p, --part  Run specific part of solution (defaults to 1)
-t, --time  Measure the time it takes to solve

Examples

# Run 202001 part 1
$ npm run solve-ts -- -d 202001

# Run part 2 of 202001 with output time taken
$ npm run solve-ts -- -d 202001 -p 2 -t