An open API service indexing awesome lists of open source software.

https://github.com/eight04/expression-eval-bundle

This repository bundles expression-eval and jsep to a single file.
https://github.com/eight04/expression-eval-bundle

browser eval expression-evaluator javascript parser rollup

Last synced: 10 months ago
JSON representation

This repository bundles expression-eval and jsep to a single file.

Awesome Lists containing this project

README

          

This repository bundles [expression-eval](https://github.com/donmccurdy/expression-eval) and [jsep](https://github.com/soney/jsep) to a single file. You can find the bundle under `dist/` folder.

Usage:

```js
const render = expressionEval.compile("[a + 1, b.slice(-2), c.toUpperCase()]");
render({a: 1, b: "foo", c: "bar"});
// [ 2, "oo", "BAR" ]
```

[Live demo](https://jsbin.com/wokulacatu/edit?js,console)