New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ruleenginejs/ruleengine-runtime

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@ruleenginejs/ruleengine-runtime

Rule Engine Runtime

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ruleengine-runtime

Installation

npm install @ruleenginejs/ruleengine-runtime

Usage

const {
  Pipeline,
  StartStep,
  EndStep,
  SingleStep,
  CompositeStep
} = require("@ruleenginejs/ruleengine-runtime");

const pipeline = new Pipeline();
const start = new StartStep();
const end = new EndStep();
const step = new SingleStep({
  handler: (context, next) => {
    next();
  }
});

start.connectTo(step);
step.connectTo(end);

pipeline.add(start, end, step);

const context = {};

await pipeline.execute(context);

Documentation

Step handlers

handler: (context, next) => {
  next();
}
handler: (context, port, next) => {
  next();
}
handler: (context, port, props, next) => {
  next();
}
handler: (err, context, port, props, next) => {
  next();
}

Pipeline events

  • execute_start
  • execute_error
  • execute_end
  • step_begin
  • step_end
  • step_error

License

Licensed under the MIT License.

FAQs

Package last updated on 30 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts