Skip to content

kjellivar/advent-of-code

Repository files navigation

Advent of code 🎄

*******************************************************************************
* ============================================          + | +                 *
* ============================================         *-|//-*                *
* ||| .   .         . |    .       .    . |||        > +--+--+ <              *
* |||   .     .   .   |  .    .     . .   |||          *-//|-*                *
* ||| .  .  . .  .  . | .  .     .   .   /|||           + | +                 *
* |||. Season's Greetings!     .      . / |||                                 *
* |||\.   .    .      |     .      /\  /. |||    + | +           Happy        *
* ||| \  . /\  . .    |.    /\.   /  \/.  |||   *-|//-*        Holidays!      *
* |||  \. /. \   ./\  |   ./  \ ./ .  \ . ||| > +--+--+ <                     *
* ||| . \/.   \/\/  \ |   / .  \/ .    .  |||   *-//|-*         And Have A    *
* |||=====================================|||    + | +           Happy New    *
* ||| .  .\     *  \ .|\/ .  .  .\  .  .. |||        |------------|     Year! *
* ||| .    \.  ***  . | \.   .    \.    .*|||        |            |           *
* |||   .  .  *****.  | .\   .  .  \    / |||        |------------|           *
* ||| .   .  *******. |  . .  . *   \.  / |||                                 *
* ||| .   . ********* |  .     ***  .  /__|||    ======================       *
* |||  .     .  * .   |    .  *****   .   |||   ======************======      *
* |||      .   .    . |  .   ******* . .  |||   ======************======      *
* |||  . @______ .  . |   . *********   . |||   ======***      ***======      *
* |||   ._+___+_.     |  . *********** .  |||   ======**        **======      *
* ||| .      .  .  .  | .       *      .  |||   ======**________**======      *
* |||_________________|___________________|||   ======__|______|__======      *
*******************************************************************************

Running:

$ npm install
$ npm start

To create files for a new day, run:

$ npm run new --date=<year>-<day>

Example for creating a new js file and input txt for 2022 day 4:

$ npm run new --date=2022-04