Skip to content

Repository files navigation

Circle CInpm 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:

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

About

Formula language for JavaScript

Topics

Resources

Stars

45 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages