@specialblend/json-logic-ex
v0.0.2
Published
JsonLogic Extended
Downloads
3
Maintainers
Readme
json-logic-ex
JsonLogic Extended
Added features:
- TypeScript definitions
- RegEx support
Future features:
- JSON Shape Matching
RegEx matching example
import jsonLogicEx from '@specialblend/json-logic-ex'
const data = {
foo: 'this is bar',
}
const ex = {
matchesRegEx: ['bar', { var: 'foo' }],
}
jsonLogicEx.apply(ex, data) // => true