simple-search-parser

0.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i simple-search-parser

      Weekly Downloads

      2

      Version

      0.0.0

      License

      MIT

      Last publish

      Collaborators

      • azz