@factoryfour/jexl
v1.1.4
Published
Factory Four Jexl Implementation
Downloads
114
Maintainers
Keywords
Readme
jexl
This packages is FactoryFour's implementation of its internal jexl use cases.
Semantic Release
This repo has semantic release, and so whenever anything is merged into the main branch, the version is updated and the package is automatically published. The type of version change is based on the commit message and is auto generated. Make sure to use conventional commit messages to trigger semantic release as commit-analyzer
requires that. Use the !
operator to denote a breaking change when updating this package so semantic release can make a major version change.
Exports
There are three things exported from this package. evaluateBoolean
and evaluateString
are exported to use any of the default jexl transforms we use throughout FactoryFour. Instead of having to redefine these transforms we can just use these evaluate functions to get access to all of these.
Transforms we support in this package
- date
- longISODate
- round
- floor
- ceil
- length
- count
- join
- removeDuplicates
- mapToProperty
- clock
- toFixed
- abs
- sum
The entire jexl
object is also exported in the case we want to add custom/additional transforms on top of whatever is implemented within this package.