Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Sierociński committed Mar 21, 2020
1 parent 66c5e8a commit 4ccf58c
Show file tree
Hide file tree
Showing 17 changed files with 2,612 additions and 813 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

## Info

This is **not** a "safe JavaScript eval". This library only mimics `eval()` functionality to some point.
It always returns the value of given expression. You always need to provide context in which it will be executed (context **must be** an Object).

Pure JavaScript! No dependencies! ^^,
* This is **not** a "safe JavaScript eval"!
* This library only mimics `eval()` functionality to some point.
* It always returns the value of given expression. You always need to provide context in which it will be executed (context **must be** an Object).
* Pure JavaScript! No dependencies! ^^,
* Minified version is only ~16KB

### What's working

Expand Down Expand Up @@ -53,13 +54,19 @@ Pure JavaScript! No dependencies! ^^,
* grouping (paranthesis)
* calling methods
* support nested methods (e.g. `foo(1, bar(item.a, item.b))`)
* accessing allowed global Object:
* `Date`
* `Math`
* `Number`
* `String`
* `Array`
* `Object`
* mixing above

### TODO

* one-argument operators:
* `new` (I don't know if it's good idea?)
* accessing allowed global Objects such as `Date`, `Math`, `Number`, `String`, `Array` and `Object`

## Usage

Expand Down
Loading

0 comments on commit 4ccf58c

Please sign in to comment.