@factoryfour/jexl
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @factoryfour/jexl

Weekly Downloads

14

Version

1.1.4

License

ISC

Unpacked Size

15 kB

Total Files

16

Last publish

Collaborators

  • trumandeyoung
  • ebetancourt
  • cneme20
  • sebastian.vecchio
  • zwarren
  • jluttrell
  • luis.isasi
  • xom-sreserviceuser
  • jfbrennan
  • matthewzhaocc1
  • jmiller-xom
  • bisurgixometry
  • mhalbe
  • xom-mtan
  • gabrielpasquantonio
  • joacogaona
  • aarontropy
  • camnkim
  • xomgc3
  • mike.kmiec
  • joshpoolexometry
  • sshilal1
  • nicoevergara
  • aaronivanamaro
  • alanzi
  • criley-xom
  • lhendrix
  • mattleibel
  • mnlerner
  • ses13
  • alexjmathews
  • corycho
  • f4-travis
  • cmoetell
  • avipparla
  • vsp20
  • jthai006
  • evrim.persembe