<commit_before># concatr

Concats files and either serves them on localhost, or outputs a compiled file.

# Usage

Compile an input file to concatr.html:

```concatr build FILENAME```

Serve an input file on localhost:

```concatr serve FILENAME```

In the file you're parsing, instances of `@include(PATH)` will be replaced with either contents of a file, or the contents of all files in a folder *(alphabetically)*.

# To do:

- Make `concatr serve` watch for changes and update live.
- Have concatr parse included files for @include tags.
- Let the user select output file name.<commit_msg>Add installation instructions<commit_after># concatr

Concats files and either serves them on localhost, or outputs a compiled file.

# Installing

```npm install -g concatr```

# Usage

Compile an input file to concatr.html:

```concatr build FILENAME```

Serve an input file on localhost:

```concatr serve FILENAME```

In the file you're parsing, instances of `@include(PATH)` will be replaced with either contents of a file, or the contents of all files in a folder *(alphabetically)*.

# To do:

- Make `concatr serve` watch for changes and update live.
- Have concatr parse included files for @include tags.
- Let the user select output file name.
{'fraction_non_alphanumeric': 0.08025682182985554, 'fraction_numerical': 0.0, 'mean_word_length': 4.421739130434783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3560290', 'n_tokens_mistral': 372, 'n_tokens_neox': 345, 'n_words': 180}