<commit_before>> [<img src="https://upload.wikimedia.org/wikipedia/fr/c/c8/Twitter_Bird.svg" width="32">](https://twitter.com/n457_media) Following [@n457_media](https://twitter.com/n457_media) on Twitter is **the best way** to keep you updated on my projects, including LightRange.js !

<br><br>

# LightRange.js
#### v.2.2.0

A **simple** and lightweight **selection, range and caret information** library in **native JavaScript**, with an additional selection **save & restore** system.

<p align="center">
  http://n457.github.io/LightRange.js/<br>
  <br>
  <img src="screenshot.png" alt="LightRange.js demo site screenshot">
</p>



### Usage

LightRange.js is written in native JavaScript, so it **doesn't need any dependency**.
Just include [LightRange.min.js](LightRange.min.js) in `<head></head>` or just before `</body>` (**recommended**).

**Important :** [src/LightRange.ES6.js](src/LightRange.ES6.js) is the source code of the library, written in **ES6** and should be used directly for production in **very specific cases**. ES6 is a very recent JavaScript syntax, not supported by old browsers. The use of the minimized & regular JavaScript version [LightRange.min.js](LightRange.min.js) **is recommended**.

```html
  <script src="/your-custom-path/LightRange.min.js"></script>
  <script src="/another-path/your-script.js"></script>
</body>
```
<commit_msg>updated main readme : Twitter message<commit_after>> [<img src="https://upload.wikimedia.org/wikipedia/fr/c/c8/Twitter_Bird.svg" width="32">](https://twitter.com/n457_media) Following [@n457_media](https://twitter.com/n457_media) on Twitter is **the best way** to keep you updated on my projects, including LightRange.js !

<br>

# LightRange.js
#### v.2.2.0

A **simple** and lightweight **selection, range and caret information** library in **native JavaScript**, with an additional selection **save & restore** system.

<p align="center">
  http://n457.github.io/LightRange.js/<br>
  <br>
  <img src="screenshot.png" alt="LightRange.js demo site screenshot">
</p>



### Usage

LightRange.js is written in native JavaScript, so it **doesn't need any dependency**.
Just include [LightRange.min.js](LightRange.min.js) in `<head></head>` or just before `</body>` (**recommended**).

**Important :** [src/LightRange.ES6.js](src/LightRange.ES6.js) is the source code of the library, written in **ES6** and should be used directly for production in **very specific cases**. ES6 is a very recent JavaScript syntax, not supported by old browsers. The use of the minimized & regular JavaScript version [LightRange.min.js](LightRange.min.js) **is recommended**.

```html
  <script src="/your-custom-path/LightRange.min.js"></script>
  <script src="/another-path/your-script.js"></script>
</body>
```

{'fraction_non_alphanumeric': 0.16377440347071584, 'fraction_numerical': 0.015907447577729574, 'mean_word_length': 4.989177489177489, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 36, 'https://': 6, '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': '158817', 'n_tokens_mistral': 895, 'n_tokens_neox': 836, 'n_words': 264}