<commit_before>Reflib-CLI
==========
Command line interface for [Reflib](https://github.com/hash-bang/Reflib-Node).


	Usage: app [file...]
	
	Options:
	
	  -h, --help                     output usage information
	  -V, --version                  output the version number
	  -c, --count                    Dont output refs, just output the count
	  -q, --query [expression...]    Query by HanSON expression (loose JSON parsing)
	  -v, --verbose                  Be verbose (also prints a running total if -c is specified)
	  --no-color                     Disable coloring
<commit_msg>Added feature list to dox<commit_after>Reflib-CLI
==========
Command line interface for [Reflib](https://github.com/hash-bang/Reflib-Node).


Features
--------
**Count the references in a library (and check they are valid)**

```
reflib LibraryIn.xml -c
```


**Convert between formats**

```
reflib LibraryIn.xml -o json >LibraryOut.json
```


**Deduplicate libraries**

```
reflib LibraryIn.xml -x --dedupe >LibraryOut.xml
```


**Query using JSON expressions**

```
reflib LibraryIn.xml -q '{year: "2008"}'
```


Usage
-----


  Usage: app [file...]

  Options:

    -h, --help                   output usage information
    -V, --version                output the version number
    -c, --count                  Dont output refs, just output the count (sets `-o count`)
    -j, --json                   Output valid JSON (sets `-o json`)
    -x, --xml                    Output EndNote XML file (sets `-o endnotexml`)
    -o, --output [mode]          Output file format (js, json, endnotexml, count)
    -q, --query [expression...]  Query by HanSON expression (loose JSON parsing)
    -v, --verbose                Be verbose (also prints a running total if -c is specified)
    --dedupe [action]            Deduplicate the library via the sra-dedupe NPM module. Actions are 'remove' (default), 'count' or 'mark' (to set the caption to "DUPE")
    --no-color                   Force disable color
    --no-progress                Disable progress bars


{'fraction_non_alphanumeric': 0.13124387855044076, 'fraction_numerical': 0.0019588638589618022, 'mean_word_length': 1.986842105263158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '6355539', 'n_tokens_mistral': 625, 'n_tokens_neox': 560, 'n_words': 214}