<commit_before># log-comments
Convert JavaScript comments in logs, warnings or errors

## Getting Started
Install the module with: `npm install log-comments`

## Documentation
This tool should help in some rare situations, where you want your app to log for debugging purpose, but only
in testing or in production environment, so you don't want be distracted by a bloat of logs when you are developing.
Just put one of these three

- <-{l}
- <-{w}
- <-{e}

strings at the end of your comment and the comment will be wrapped
respectively with console.log(), console.warn(), console.error();

## Options
 --in-place, -i:   overwrite existing file with the new one
 --directory, -d:  specify a directory, all .js files inside directory will be parsed and elaborated
 --help, -h:       print help

## Examples
###code
// This will be a log <-{l}
// This will be a warn <-{w}
// This will be an error <-{e}

### cli
log-comments [OPTIONS] [FILE]<commit_msg>modified README.md<commit_after># log-comments
Convert JavaScript comments in logs, warnings or errors

## Getting Started
Install the module with: `npm install log-comments`

## Documentation
This tool should help in some rare situations, where you want your app to log for debugging purpose, but only
in testing or in production environment, so you don't want be distracted by a bloat of logs when you are developing.
Just put one of these three

- <-{l}
- <-{w}
- <-{e}

strings at the end of your comment and the comment will be wrapped
respectively with console.log(), console.warn(), console.error();

## Options
 --in-place, -i:   overwrite existing file with the new one
 --directory, -d:  specify a directory, all .js files inside directory will be parsed and elaborated
 --help, -h:       print help

## Examples
###code
// This will be a log <-{l}
// This will be a warn <-{w}
// This will be an error <-{e}  

### cli
log-comments [OPTIONS] [FILE]
{'fraction_non_alphanumeric': 0.10204081632653061, 'fraction_numerical': 0.0, 'mean_word_length': 3.6520681265206814, 'pattern_counts': {'":': 0, '<': 15, '<?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': '1104600', 'n_tokens_mistral': 553, 'n_tokens_neox': 530, 'n_words': 282}