# salesforce-formula-parser

> Parse Salesforce Formula and, Build AST in JavaScript

Latest version **1.0.3** (published 2018-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install salesforce-formula-parser
pnpm add salesforce-formula-parser
yarn add salesforce-formula-parser
bun add salesforce-formula-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-08-14 |
| First published | 2018-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 74.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tzmfreedom |
| Maintainers | tzmfreedom |

## Links

- npm: https://www.npmjs.com/package/salesforce-formula-parser
- npm.io page: https://npm.io/package/salesforce-formula-parser

## Dependencies (1)

- [antlr4](https://npm.io/package/antlr4.md) ^4.7.1

## Recent versions

- 1.0.3 (latest) — 2018-08-14
- 1.0.2 — 2018-08-08
- 1.0.1 — 2018-08-07
- 1.0.0 — 2018-08-07

## README

# SalesforceFormulaParser

Parse Salesforce Formula and, Build AST in JavaScript

## Usage

```bash
$ npm install salesforce-formula-parser
```

```JavaScript
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' } ] } ] }
```

---
_Source: https://npm.io/package/salesforce-formula-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
