<commit_before># Schema-Inspector

Schema-Inspector is a powerful tool to sanitize and validate JS objects.
It's disigned to work both client-side and server-side and to be scalable with allowing asynchronous and synchronous calls.
Demonstration & documentation: http://atinux.github.io/schema-inspector/

## Installation

### Node.js
<pre>npm install schema-inspector</pre>

### Browser
Download [async.js](https://raw.github.com/caolan/async/master/lib/async.js) and [schema-inspetor.js](https://raw.github.com/Atinux/schema-inspector/master/lib/schema-inspector.js) and use it like this:
```html
<script type="text/javascript" src="async.js"></script>
<script type="text/javascript" src="schema-inspector.js"></script>
```

## Usage

### Synchronous call

```javascript
var inspector = require('schema-inspector');

var schema = {
	type: 'object',<commit_msg>Add \n<commit_after># Schema-Inspector

Schema-Inspector is a powerful tool to sanitize and validate JS objects.
It's disigned to work both client-side and server-side and to be scalable with allowing asynchronous and synchronous calls.

Demonstration & documentation: http://atinux.github.io/schema-inspector/

## Installation

### Node.js
<pre>npm install schema-inspector</pre>

### Browser
Download [async.js](https://raw.github.com/caolan/async/master/lib/async.js) and [schema-inspetor.js](https://raw.github.com/Atinux/schema-inspector/master/lib/schema-inspector.js) and use it like this:
```html
<script type="text/javascript" src="async.js"></script>
<script type="text/javascript" src="schema-inspector.js"></script>
```

## Usage

### Synchronous call

```javascript
var inspector = require('schema-inspector');

var schema = {
	type: 'object',
{'fraction_non_alphanumeric': 0.14726426076833526, 'fraction_numerical': 0.0, 'mean_word_length': 5.319852941176471, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6826168', 'n_tokens_mistral': 562, 'n_tokens_neox': 519, 'n_words': 134}