0.1.7 • Published 1 year ago

aoctemplate v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Advent of Code

  • A Template generator for Advent of Code hackathon :technologist:.
  • It will automatically generate the input.txt file and solution.js file with the template code so you can directly start writing solution :writing_hand:. You don't need to write the same code daily then import file and run solution on it, i handeled it for you :sunglasses:.
  • Just write your solution in solution.js file and run it using command aocrun with the character by which you want to split the filelines and it will run it :rocket:.

NPM node-current

Installation

It requires global scope because i wanted to make it a CLI command so that it would be easier to run it anywhere on your machine.

npm install -g aoctemplate
yarn add aoctemplate --global

Usage

So there are :two: commands one for template generation and other for running that template after you write your solution ofcourse.

aoc <FOLDER_NAME>
aocrun <SEPARATOR_CHARACTER>

Examples

The command aoc will generate two files input.txt for pasting your puzzle input and solution.js where you will write your puzzle solution.

aoc 'day_six'

The command aocrun will parse and run on the inputs of input.txt file with the character separator which you will provide and will return the solution of your solution function from solution.js file.

aocrun '\n'

Contributing

See CONTRIBUTING.md.

Bugs and Issues

If you encounter any bugs :beetle: or issues :dart:, feel free to open an issue at github or email :email::mailbox_with_no_mail: me on devduttchudasama1339@gmail.com. I will always like to hear from you :deaf_man:.

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago