json-spider

0.0.11 • Public • Published

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'
  }
}))

Readme

Keywords

none

Package Sidebar

Install

npm i json-spider

Weekly Downloads

3

Version

0.0.11

License

MIT

Unpacked Size

90.9 kB

Total Files

30

Last publish

Collaborators

  • vkruglikov