<commit_before>OData query string parser for node.js based on [pegjs](http://pegjs.majda.cz/).

## Installation

```
npm install odata-parser
```

## Usage

```javascript
var parser = require("odata-parser");

var ast = parser.parse("$top=10&$skip=5&$select")

util.inspect(ast)
```

will result in:

```javascript
{ 
  '$top': 10,
  '$skip': 5,
  '$select': [ 'foo' ] 
}
```

Filters like:

```javascript
parser.parse("$filter=Name eq 'John' and LastName lt 'Doe'")
```<commit_msg>fixed minor issue in a README example<commit_after>OData query string parser for node.js based on [pegjs](http://pegjs.majda.cz/).

## Installation

```
npm install odata-parser
```

## Usage

```javascript
var parser = require("odata-parser");

var ast = parser.parse("$top=10&$skip=5&$select=foo")

util.inspect(ast)
```

will result in:

```javascript
{ 
  '$top': 10,
  '$skip': 5,
  '$select': [ 'foo' ] 
}
```

Filters like:

```javascript
parser.parse("$filter=Name eq 'John' and LastName lt 'Doe'")
```
{'fraction_non_alphanumeric': 0.20262096774193547, 'fraction_numerical': 0.012096774193548387, 'mean_word_length': 4.674285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2783386', 'n_tokens_mistral': 398, 'n_tokens_neox': 363, 'n_words': 90}