<commit_before># schema-ramp

Ramp up a JS object into a JSON Schema by converting a JS Object to JSON Schema

## Install

#### Browser

```html
<script src="https://raw.githubusercontent.com/yieme/schema-ramp/master/schema-ramp.js" type="text/javascript"></script>
```

#### Node.js

```sh
npm install schema-ramp
```

```js
var ramp = require('schema-ramp')
```



## Usage

#### example/data.json

```js
{
  "address": {
    "streetAddress": "123 Somewhere Ave",
    "city": "Boise",
    "zip": 83702
  },
  "phoneNumber": [
    {
      "location": "home",
      "number": "800 555-1212"
    }
  ]
}<commit_msg>clarify description<commit_after># schema-ramp

Ramp up a JS object into a [JSON Schema](http://json-schema.org)

Like a moving truck ramp helps you move things onto a truck,
[schema-ramp](http://github.com/yieme/schema-ramp)
helps you move forward with using [JSON Schema](http://json-schema.org) with your data by helping convert a Plain Old JavaScript Object (POJO) into a [JSON Schema](http://json-schema.org)

## Install

#### Browser

```html
<script src="https://raw.githubusercontent.com/yieme/schema-ramp/master/schema-ramp.js" type="text/javascript"></script>
```

#### Node.js

```sh
npm install schema-ramp
```

```js
var ramp = require('schema-ramp')
```

## Usage

#### example/data.json

```js
{
  "address": {
    "streetAddress": "123 Somewhere Ave",
    "city": "Boise",
    "zip": 83702
  },
  "phoneNumber": [
    {
      "location": "home",
      "number": "800 555-1212"
    }
  ]
}
{'fraction_non_alphanumeric': 0.1831357048748353, 'fraction_numerical': 0.023715415019762844, 'mean_word_length': 3.617021276595745, 'pattern_counts': {'":': 14, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '5574369', 'n_tokens_mistral': 575, 'n_tokens_neox': 526, 'n_words': 134}