<commit_before># Mint

JavaScript helpful functions

[![GitHub Wiki](https://img.shields.io/badge/project-wiki-ff69b4.svg)](https://github.com/Sufflavus/Mint/wiki)

## Setup & Dependencies
1. Add a file [mint-utils.js](https://github.com/Sufflavus/Mint/blob/master/src/mint-utils.js) (does not have any dependencies) on the page.

```html
<head>

</head>
<body>

    <script src="../src/mint-utils.js"></script>
</body>
```

## Browsers support
Functionality is tested in Chrome >= 46, Opera >= 33.0, Firefox >= 31.0, IE >= 11

## Tests
This library is delivered with Jasmine tests. To run tests open [SpecRunner.html](https://github.com/Sufflavus/Mint/blob/master/tests/SpecRunner.html) in your favorite browser.

## List of functions

1. Mint.utils.createGuid()
1. Mint.utils.getRandomInt(min, max)
1. Mint.utils.isArray(value)
1. Mint.utils.isFunction(value)
1. Mint.utils.isString(value)
1. Mint.utils.isInteger(value)
1. Mint.utils.isFloat(value)
1. Mint.utils.trimString(value)<commit_msg>+ Code Climate badge<commit_after># Mint

JavaScript helpful functions

[![Code Climate](https://codeclimate.com/github/Sufflavus/Mint/badges/gpa.svg)](https://codeclimate.com/github/Sufflavus/Mint) [![GitHub Wiki](https://img.shields.io/badge/project-wiki-ff69b4.svg)](https://github.com/Sufflavus/Mint/wiki)

## Setup & Dependencies
1. Add a file [mint-utils.js](https://github.com/Sufflavus/Mint/blob/master/src/mint-utils.js) (does not have any dependencies) on the page.

```html
<head>

</head>
<body>

    <script src="../src/mint-utils.js"></script>
</body>
```

## Browsers support
Functionality is tested in Chrome >= 46, Opera >= 33.0, Firefox >= 31.0, IE >= 11

## Tests
This library is delivered with Jasmine tests. To run tests open [SpecRunner.html](https://github.com/Sufflavus/Mint/blob/master/tests/SpecRunner.html) in your favorite browser.

## List of functions

1. Mint.utils.createGuid()
1. Mint.utils.getRandomInt(min, max)
1. Mint.utils.isArray(value)
1. Mint.utils.isFunction(value)
1. Mint.utils.isString(value)
1. Mint.utils.isInteger(value)
1. Mint.utils.isFloat(value)
1. Mint.utils.trimString(value)
{'fraction_non_alphanumeric': 0.166195856873823, 'fraction_numerical': 0.02071563088512241, 'mean_word_length': 4.5483028720626635, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, 'https://': 10, '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': '1579167', 'n_tokens_mistral': 815, 'n_tokens_neox': 753, 'n_words': 164}