jsdmn
v0.1.0
Published
DMN 1.3 interpreter for JavaScript
Readme
jsdmn
Evaluate DMN 1.3 decisions both in NodeJS and in browser.
Goal
This project is built for learning, so don't expect production-readiness soon (or anytime, really). Nevertheless, the end goal is to pass the dmntck test suite.
Usage
import { Engine } from 'jsdmn';
const engine = new Engine();
await engine.load(dmnXML);
const result = await engine.evaluateDecision('Decision', { input: 4 });
console.log(result) // prints resultCredits
This library is built upon two amazing projects:
- feelin - JavaScript FEEL interpreter
- dmn-moddle - DMN parser
License
Use under the terms of the MIT license.
