/formula

Pure function library for modern JavaScripters

Primary LanguageJavaScriptMIT LicenseMIT

Circle CI

Formula expressions and functions for JavaScript.

Install

npm install --save formula

General Usage

import { run } from "formula";
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.8.1/lib/formula.min.js"