Licence
MIT
Version
0.0.0
Deps
0
Vulns
0
Weekly
0
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
npm install simple-search-parser
usage
const parse = require('simple-search-parser');
const match = parse('Cars or Boats');
match('I like cars!'); // ==> true