aoc-input-loader

Loads input data from Advent of Code

Usage no npm install needed!

<script type="module">
  import aocInputLoader from 'https://cdn.skypack.dev/aoc-input-loader';
</script>

README

Advent of Code Input Loader

Loads Advent of Code input data for a specified day and year.

Install

npm install aoc-input-loader

Use

const inputLoader = require('aoc-input-loader');

inputLoader(year, day, sessionCookie).then(data => {
    console.log(data);
});