Skip to content

Commit c6e1983

Browse files
author
Cache Hamm
committed
add isomorphic information to readme
1 parent 59319c2 commit c6e1983

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ A rules engine expressed in JSON
1616
* Full support for ```ALL``` and ```ANY``` boolean operators, including recursive nesting
1717
* Fast by default, faster with configuration; priority levels and cache settings for fine tuning performance
1818
* Secure; no use of eval()
19-
* Lightweight & extendable; less than 500 lines of javascript w/few dependencies
19+
* Isomorphic; runs in node and browser
20+
* Lightweight & extendable; 24kb gzipped w/few dependencies
2021

2122
## Installation
2223

@@ -204,9 +205,17 @@ _Why aren't "fact" methods persistable?_ This is by design, for several reasons
204205

205206
To see what the engine is doing under the hood, debug output can be turned on via:
206207

208+
#### Node
209+
207210
```bash
208211
DEBUG=json-rules-engine
209212
```
210213

214+
#### Browser
215+
```js
216+
// set debug flag in local storage & refresh page to see console output
217+
localStorage.debug = 'json-rules-engine'
218+
```
219+
211220
## License
212221
[ISC](./LICENSE)

0 commit comments

Comments
 (0)