Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azz/simple-search-parser

Simple text search parser
https://github.com/azz/simple-search-parser

Last synced: 2 days ago
JSON representation

Simple text search parser

Awesome Lists containing this project

README

        

# simple search parser

Parses expressions like:

* "Cars or Boats"
* "Donald and not Trump"
* "Snakes and Planes"
* "Cars or Boats and not Snakes"

And returns a function that matches strings on the given expression.

## install

```bash
npm install simple-search-parser
```

## usage

```js
const parse = require('simple-search-parser');

const match = parse('Cars or Boats');

match('I like cars!'); // ==> true
```