Socket
Socket
Sign inDemoInstall

feelin

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feelin

A FEEL parser and interpreter


Version published
Weekly downloads
16K
increased by27.94%
Maintainers
1
Weekly downloads
 
Created
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

# execute FEEL tests in DMN TCK
npm run tck
  • lezer-feel - FEEL language definition for the Lezer parser system
  • feel-playground - Interactive playground to learn the FEEL language

License

MIT

FAQs

Package last updated on 24 May 2023

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

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