Formula compiler and function library for JSON spreadsheet-like expressions. Current stable version is 3.18.0, with frequent releases (multiple per month). Key differentiators: supports JSONPath-based access, spreadsheet functions (SUM, VLOOKUP, HLOOKUP, CLEAN), and runs in Node.js and browser via UMD/ESM. Ships TypeScript types.
npm install formulaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of run() for evaluating expressions and compile() for reusable expression compilation.
Use import syntax or dynamic import(). If using Node.js without --experimental-modules (pre-v12.17), upgrade Node.js.
Replace VLOOKUP_OLD with VLOOKUP; see migration guide.
Always ensure data is JSON or a plain object literal.
Check documentation for expression syntax; avoid assuming return type.
Replace ADD, SUB with +, - or sum().
Use == for equality comparison inside expression, or wrap in run('expr = value', data) for assignment expression.Use import { run } from 'formula' or use dynamic import().Run npm install formula and ensure node_modules is present.
Verify expression syntax; use compile() to get detailed error message.
No dependency data recorded yet.