4 ms·
We built a rust version of this that provides a Python package via CFFI and a node package via WASM, because we found that the different implementations for dif
by mplanchard 5y ago
We built a rust version of this that provides a Python package via CFFI and a node package via WASM, because we found that the different implementations for different languages were pretty buggy and would sometimes resolve expressions differently. Also the original project in JS seems to be largely unmaintained. The rust version goes to great lengths to reimplement weird JS typecasting so as to be fully compatible with the original.
https://github.com/Bestowinc/json-logic-rs https://github.com/Bestowinc/json-logic-rs
I am currently working on an extension to add functions and more strongly typed operators to avoid the hassle of JS’ type conversion. That extension will probably be released as a separate package, because I am no longer with Bestow.