@specialblend/json-logic-ex
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i @specialblend/json-logic-ex

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

2.95 kB

Total Files

6

Last publish

Collaborators

  • __specialblend__