<commit_before># isServiceUp
A simple script to read if a service is up or down and notify you when the service is up<commit_msg>add instructions to readme<commit_after># isServiceUp
A simple script to read if a service is up or down and notify you when the service is up

## clone the repo
```
git clone https://github.com/stevenharradine/isServiceUp.git
cd isServiceUp
```

## install node dependancies
```
npm install
```

## set up your config file to send emails and who to notify (TODO: make external list like gmail-invoker)
```
module.exports.EMAIL_USER     = 'youremail';
module.exports.EMAIL_PASSWORD = '<PASSWORD>';

module.exports.ToEmail        = 'youremail';
```

## run the program selecting which service to check
```
node isServiceUp {{ parser_name }}
```
Example
```
node isServiceUp github
```
{'fraction_non_alphanumeric': 0.09975369458128079, 'fraction_numerical': 0.0, 'mean_word_length': 4.568493150684931, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '1902394', 'n_tokens_mistral': 249, 'n_tokens_neox': 236, 'n_words': 98}