Auxority / adventofcode2021

Advent of code 2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2021

Advent of code 2021 in TypeScript

Installation

  1. Clone this github repository.
git clone https://github.com/Auxority/adventofcode2021
  1. Install npm modules.
npm install
  1. Open an incognito browser window and visit Advent of Code.

  2. Login using your account or create an account.

  3. Visit this page in that same browser window.

  4. Press f12 to open your browser console.

  5. Head over to the Application tab of your browser console.

  6. Expand cookies, and copy the session value. Paste this session value in your .env file.

Usage

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

About

Advent of code 2021


Languages

Language:TypeScript 99.8%Language:Shell 0.2%