package
Boolean, Logical, And OR NOT Expression Parser
npm install bexpGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
7.2 kB
Includes dependencies.
$ npm install bexpconst BexpParser = require("bexp");
const options = { allowMathOperators : true};
const bexpParser = new BexpParser("a and b or c but !d", options);
bexpParser.test("a")
bexpParser.test(["a","b"])Supported expressions example
Note:
not then it is considered as ANDbut is an alias of and.Boolean Expressions
const BexpParser = require("bexp");
const bexpParser = new BexpParser();
bexpParser.evaluate("True and false or true but !N")Supported expressions example
Note:
not then it is considered as ANDbut is an alias of and.Use it to evaluate which functional test has to be run when tag expression is given
Or to build advanced mongodb search queries