filtrex
filtrex copied to clipboard
A simple, safe, JavaScript Filter Expression compiler for end-users
Add an `async` flag to the options of `compileExpression`, which will automatically await all promises inside the expression. See [#26 on the old repo](https://github.com/joewalnes/filtrex/pull/26) for discussion.
Hi folks, We are happily using filtrex for quite some time but we see some of our clients complain that the filtrex code is unsecure becuse it uses `new Function`....
Most errors are now i18n-friendly (see #35), however errors produced by Jison are not. Investigate the possibility to modify Jison, so that it produces better errors.
The [examples](https://github.com/m93a/filtrex/tree/main/example) section hasn't changed much since v0. Make it fresh and cool.
The core engine should be able to compare numbers, alphabetical strings (with natural sorting) and arrays (element by element, lexicographically, useful for multisort), so that filtrex can be used for...
Let people willing to contribute know some basics facts about this repo
Make this: ``` a^2 + 2 a b + b^2 ``` parse as this: ``` a**2 + 2*a*b + b**2 ``` The implicit multiplication operator can be overloaded (see #30)...
The Jison parser generator makes it hard to write advanced language features (like implicit multiplication, see #39). Maybe, migrating to a modern PEG parser would be worth it. [Peggy](https://github.com/peggyjs/peggy) looks...