| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 59319c2 commit c6e1983
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,8 @@ A rules engine expressed in JSON | |||
| 16 | 16 | * Full support for ```ALL``` and ```ANY``` boolean operators, including recursive nesting | |
| 17 | 17 | * Fast by default, faster with configuration; priority levels and cache settings for fine tuning performance | |
| 18 | 18 | * 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 | ||
| 20 | 21 | ||
| 21 | 22 | ## Installation | |
| 22 | 23 | ||
@@ -204,9 +205,17 @@ _Why aren't "fact" methods persistable?_ This is by design, for several reasons | |||
| 204 | 205 | ||
| 205 | 206 | To see what the engine is doing under the hood, debug output can be turned on via: | |
| 206 | 207 | ||
| 208 | + #### Node | ||
| 209 | + | ||
| 207 | 210 | ```bash | |
| 208 | 211 | DEBUG=json-rules-engine | |
| 209 | 212 | ``` | |
| 210 | 213 | ||
| 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 | + | ||
| 211 | 220 | ## License | |
| 212 | 221 | [ISC](./LICENSE) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments