Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nested-rules-engine

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nested-rules-engine - npm Package Compare versions

Comparing version 1.0.0-beta4 to 1.0.0-beta5

2

package.json
{
"name": "nested-rules-engine",
"version": "1.0.0-beta4",
"version": "1.0.0-beta5",
"repository": "github:ayonious/nested-rules-engine",

@@ -5,0 +5,0 @@ "description": "Nested Conditional Rules Engine",

@@ -79,23 +79,22 @@ # Conditionally Nested Rules Engine

1. `variables` Collection of values on which rule engine will execute
* `variables` Collection of values on which rule engine will execute
You can change these collection of variables (Add/Edit/Delte them) as you traverse the decision tree of rules.
2. `functions` Collection of functions that decide which way the tree should be traversed.
* `functions` Collection of functions that decide which way the tree should be traversed.
* In case the function indicates a final decision in tree (leaf of decision tree): Output can be anything that you want to see as `result`
* In case the function is makes an intermediate decision (branch of decision tree):
if output is `true`: this means this branch should be traversed
else: the function will be executed
* In case the function indicates a final decision in tree (leaf of decision tree): Output can be anything that you want to see as `result`
* In case the function is makes an intermediate decision (branch of decision tree):
* if output is `true`: this means this branch should be traversed
* else: the function will be executed
3. `rules` Decision Tree that will be traversed by this Rule Engine
* `rules` Decision Tree that will be traversed by this Rule Engine
4. `options`
* verbose(boolean): Makes Sure you get enough logs while engine goes through all decision tree
* multiple(boolean): You can run multiple Decision Trees based on same inputs. Input sets are shared between each tree
* `options` there are different options that you can provide to customize the execution nature
* verbose (boolean): Makes Sure you get enough logs while engine goes through all decision tree
* multiple (boolean): You can run multiple Decision Trees based on same inputs. Input sets are shared between each tree
### Outputs
`result`: Result of the engine execution. format of Result will be defined by you through `functions`
* `result`: Result of the engine execution. format of Result will be defined by you through `functions`
* `logs`: Detailed logs while engine got executed (by default its disabled)
`logs`: Detailed logs while engine got executed (by default its disabled)
## Hard Examples

@@ -102,0 +101,0 @@ 1. Example with verbose output, multiple executions [Find Here] (https://github.com/ayonious/nested-rules-engine/blob/master/test/multirun-verbose-example.js)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc