Socket
Socket
Sign inDemoInstall

feelin

Package Overview
Dependencies
3
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    feelin

A FEEL parser and interpreter


Version published
Weekly downloads
14K
increased by6.54%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

3.1.0

  • FIX: properly handle unary test against 0 (#50)
  • DEPS: update to luxon@3.4.0
  • DEPS: update to lezer-feel@1.2.8

Readme

Source

feelin

CI

A DMN FEEL parser and interpreter written in JavaScript. :arrow_right: Try it out.

Usage

import {
  unaryTest,
  evaluate
} from 'feelin';

unaryTest('1', { '?': 1 }); // true
unaryTest('[1..end]', { '?': 1, end: 10 }); // true

evaluate("Mike's dauther.name", {
  'Mike\'s dauther.name': 'Lisa'
}); // "Lisa"

evaluate('for a in [1, 2, 3] return a * 2'); // [ 2, 4, 6 ]

evaluate('every rate in rates() satisfies rate < 10', {
  rates() {
    return [ 10, 20 ];
  }
}); // false

Features

  • Recognizes full FEEL grammar
  • Context sensitive (incl. names with spaces)
  • Recovers on errors
  • Temporal types and operations
  • Built-in FEEL functions
  • Full DMN TCK compliance

Build and Run

# build the library and run all tests
npm run all

# spin up for local development
npm run dev

# execute FEEL tests in DMN TCK
npm run tck

License

MIT

FAQs

Last updated on 19 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc