Advent of Code
Usage
yarn install
yarn solve 2018 1 # Solve day 1 of year 2018
This prints out answers to both parts - one per line.
Style
I have optimised for maintainability first. Although this is not a useful property since they never have to be modified, usually this is not the case so I am using this as practise.
Just for fun, I have used no libraries to solve these (except for testing, io and of course typescript - writing those would be very time consuming). I have, however, extracted a shared library of code to use between puzzles.