1.0.2 • Published 11 months ago

simple-evaluator v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Simple expression Evaluator

How to use

import evaluate from 'simple-evaluator'

evaluate('7 + 3 * 2') // 13

// with context
const context = { foo: 5, bar: [1, 2, 3]}

evaluate('foo < bar[0] + bar[1] + bar[2]', context) // (5 < 6) true
1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago