<commit_before># angular-window-storage

Angular module to ease the access of localStorage, sessionStorage and cookie.

### What does it does, is it or me?

It allows an easy interface for who wants to use [web storage](https://en.wikipedia.org/wiki/Web_storage).<br/>
It allows an easy interface for who watns to use [cookies](https://en.wikipedia.org/wiki/HTTP_cookie).<br/>
It allows you to default to cookies if the browser doesn't support web storage without of any other aspect.<br/>
It allows you to not worry about controlling anything about web storage or cookies, AND <br/>
It allows you to worry about controlling everything about the web storage and cookies.<br/>
<br/>
There is a slight change, that it probably does everything you need for your management of web storage and cookies...<br/>
<br/>
Oh and web storage with time to live.<br/>
<br/>
[Table of contents](#table-of-contents)

## Getting Started

### Installing
**npm**
```
npm install angular-window-storage
```
### Include it 
```html
...
    <script src="path/to/angularJs/angular.min.js"></script>
    <script src="node_modules/angular-local-storage/dist/angular-window-storage.min.js"></script>
...
```

## Usage

### Require WindowStorageModule and Inject the windowStorageService

```javascript
angular.module('yourLegendaryApp', ['WindowStorageModule'])
  .controller('youAwesomeCtrl', ['windowStorageService', function(windowStorageService){
    // Code here...
  }]);
```
That's it you are ready to go, but if in the need of configuration ...

### Configure the provider<commit_msg>updated to install from bower<commit_after># angular-window-storage

Angular module to ease the access of localStorage, sessionStorage and cookie.

### What does it does, is it or me?

It allows an easy interface for who wants to use [web storage](https://en.wikipedia.org/wiki/Web_storage).<br/>
It allows an easy interface for who watns to use [cookies](https://en.wikipedia.org/wiki/HTTP_cookie).<br/>
It allows you to default to cookies if the browser doesn't support web storage without of any other aspect.<br/>
It allows you to not worry about controlling anything about web storage or cookies, AND <br/>
It allows you to worry about controlling everything about the web storage and cookies.<br/>
<br/>
There is a slight change, that it probably does everything you need for your management of web storage and cookies...<br/>
<br/>
Oh and web storage with time to live.<br/>
<br/>
[Table of contents](#table-of-contents)

## Getting Started

### Installing

**npm**
```
npm install angular-window-storage
```

**bower*
```
bower install angular-window-storage
```

### Include it 

```html
...
    <script src="path/to/angularJs/angular.min.js"></script>
    <script src="node_modules/angular-local-storage/dist/angular-window-storage.min.js"></script>
...
```
or

```html
...
    <script src="bower_components/angular/angular.min.js"></script>
    <script src="bower_components/angular-window-storage/build/angular-window-storage.min.js"></script>
...
```

## Usage

### Require WindowStorageModule and Inject the windowStorageService

```javascript
angular.module('yourLegendaryApp', ['WindowStorageModule'])
  .controller('youAwesomeCtrl', ['windowStorageService', function(windowStorageService){
    // Code here...
  }]);
```
That's it you are ready to go, but if in the need of configuration ...

### Configure the provider
{'fraction_non_alphanumeric': 0.12992357436801882, 'fraction_numerical': 0.0, 'mean_word_length': 4.471061093247588, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 4, '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': '1932643', 'n_tokens_mistral': 972, 'n_tokens_neox': 936, 'n_words': 359}