fauxql

0.0.1 • Public • Published

fauxql

A SQL-based parser

Installation

npm install --save fauxql

Usage

var parser = require('fauxql');

console.log(JSON.stringify(parser.parse("hello='world' OR foo='bar'"), null, '  '));

Output

{
  "conditions": [
    {
      "left": "hello",
      "op": "Equal",
      "right": "world"
    },
    {
      "joiner": "Or",
      "expression": {
        "left": "foo",
        "op": "Equal",
        "right": "bar"
      }
    }
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i fauxql

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • cexbbartolome