Advent of code 2021 in TypeScript
- Clone this github repository.
git clone https://github.com/Auxority/adventofcode2021
- Install npm modules.
npm install
-
Open an incognito browser window and visit Advent of Code.
-
Login using your account or create an account.
-
Visit this page in that same browser window.
-
Press f12 to open your browser console.
-
Head over to the
Application
tab of your browser console. -
Expand cookies, and copy the session value. Paste this session value in your .env file.
Modify index.ts to your needs, or create a .ts file for each day, like I do.
And run your code using the following command:
npm start