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

@ruleenginejs/rollup-plugin-rule

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ruleenginejs/rollup-plugin-rule

Rollup plugin for compile rule files

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

@ruleenginejs/rollup-plugin-rule

Compile rule files to javascript.

Installation

npm install -D @ruleenginejs/rollup-plugin-rule

Add Runtime

npm install @ruleenginejs/runtime

Usage

// rollup.config.js
import rule from '@ruleenginejs/rollup-plugin-rule';

export default {
  input: './main.js',
  plugins: [
    rule()
  ]
}
// main.js
import rule from "./bar.rule";

rule.execute();

Options

NameTypeDefaultDescription
checkSchema{Boolean}trueEnables/disables the validation scheme for the rule files
runtimeModule{String}'@ruleenginejs/runtime'Runtime module name
moduleBaseDir{String}undefinedBase path for import modules in rule files
esModule{Boolean}trueEnable/disable ES modules syntax

License

Licensed under the MIT License.

Keywords

ruleengine

FAQs

Package last updated on 12 Sep 2022

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