formula
TypeScript icon, indicating that this package has built-in type declarations

3.18.0 • Public • Published

Circle CI npm version

Best function and expression library for JSON.

Install

npm install --save formula

General Usage

import { run } from "formula";

// jsonpath + spreadsheet-like expression system eats json for lunch.
run("$.a.b = 1", '{ "a": { "b": 1 } }')

// sum, vlookup, hlookup and friends.
run("sum(a, b, c) = 1+2+3", { a: 1, b: 2, c: 3 });

Browser ready

Add to the browser with:

<script type="text/javascript" src="https://unpkg.com/formula@3.16.0/lib/formula.min.js"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.18.0
    644
    • latest

Version History

Package Sidebar

Install

npm i formula

Weekly Downloads

587

Version

3.18.0

License

MIT

Unpacked Size

162 kB

Total Files

9

Last publish

Collaborators

  • jcfisher007