1.0.3 • Published 6 years ago

salesforce-formula-parser v1.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

SalesforceFormulaParser

Parse Salesforce Formula and, Build AST in JavaScript

Usage

$ npm install salesforce-formula-parser
const parse = require('salesforce-formula-parser')
parse('IF(TRUE, "foo", IF(FALSE, "bar", "baz"))')

// => { type: 'function',
//      name: 'IF',
//      arguments:
//       [ { type: 'boolean', value: true },
//         { type: 'string', value: 'foo' },
//         { type: 'function',
//           name: 'IF',
//           arguments:
//            [ { type: 'boolean', value: false },
//              { type: 'string', value: 'bar' },
//              { type: 'string', value: 'baz' } ] } ] }
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago