Skip to content

vkruglikov/json-spider

Repository files navigation

NPM

Json-Spider

Constant expression

// Will output 1

console.log(calculateExpression({
    type: 'CONSTANT',
    value: 'test',
    valueType: 'STRING'
}));

Division expression

// Will output 10

console.log(calculateExpression({
  type: 'EXP_DIVISION',
  left: {
      type: 'CONSTANT',
      value: 100,
      valueType: 'NUMBER'
  },
  right: {
      type: 'CONSTANT',
      value: 10,
      valueType: 'NUMBER'
  }
}))

About

JsonSpider weaves logic from json

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published