Package Exports
- formula
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (formula) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Best function and expression library for JSON.
Install
npm install --save formulaGeneral 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"