<commit_before># iLocalStorage

Provides an abstraction on top of the native localstorage
implementations in the browsers. The goal is to handle the differences
in implementations (which is really insignificant if existing at all)
and especially the differences in error scenarios.

## Enhanced feature set

Besides the normal localstorage feature set, an extended set i
provided, that allows you to store any kind of data in localstorage,
and not just strings.

With native localStorage this would be the result:

```javascript
localStorage.setItem('foo', { bar: 'baz' });
localStorage.getItem('foo');
// => "[object Object]"
```

Transforming the input data to JSON before saving it, allows us to<commit_msg>add additional information to readme<commit_after># iLocalStorage

[![Build Status](https://travis-ci.org/gustavnikolaj/ilocalstorage.svg?branch=master)](https://travis-ci.org/gustavnikolaj/ilocalstorage)

Provides an abstraction on top of the native localstorage
implementations in the browsers. The goal is to handle the differences
in implementations (which is really insignificant if existing at all)
and especially the differences in error scenarios.

## Installation

The package is available on [npm](https://www.npmjs.org/package/ilocalstorage).

```
$ npm install ilocalstorage
```

## Enhanced feature set

Besides the normal localstorage feature set, an extended set i
provided, that allows you to store any kind of data in localstorage,
and not just strings.

With native localStorage this would be the result:

```javascript
localStorage.setItem('foo', { bar: 'baz' });
localStorage.getItem('foo');
// => "[object Object]"
```

Transforming the input data to JSON before saving it, allows us to
{'fraction_non_alphanumeric': 0.08328479906814211, 'fraction_numerical': 0.0, 'mean_word_length': 5.339483394833948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, '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': '2691343', 'n_tokens_mistral': 475, 'n_tokens_neox': 443, 'n_words': 205}