Convert a Jexl Abstract Syntax Tree (AST) back to a string expression.
NPM:
npm install --save jexl-to-string
Yarn:
yarn add jexl-to-string
import { jexlExpressionStringFromAst } from "jexl-to-string";
import { Jexl } from "jexl";
const jexl = new Jexl();
const compiledExpression = jexl.compile(input);
const newExpression = jexlExpressionStringFromAst(
jexl._grammar,
compiledExpression._getAst()
);