Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: filtrex
node v14.20.1
endpoint
share
tweet
const { compileExpression } = require("filtrex@3.0.0-rc11"); const options = { constants: { a: "a_const " } } const data = { a: "a_data ", b: "b_data " } // single-quotes give access to data const expr = `'a' + a + 'b' + b` compileExpression(expr, options)(data) // → "a_data a_const b_data b_data"
Created from: https://npm.runkit.com/filtrex
Loading…
Clone and edit this document