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.
- Host: GitHub
- URL: https://github.com/eight04/expression-eval-bundle
- Owner: eight04
- Created: 2017-12-27T14:34:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-27T15:21:07.000Z (over 8 years ago)
- Last Synced: 2024-12-26T14:11:07.263Z (over 1 year ago)
- Topics: browser, eval, expression-evaluator, javascript, parser, rollup
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)