jexl-to-string
TypeScript icon, indicating that this package has built-in type declarations

2.3.4 • Public • Published

jexl-to-string

Convert a Jexl Abstract Syntax Tree (AST) back to a string expression.

Installation

NPM:

npm install --save jexl-to-string

Yarn:

yarn add jexl-to-string

Example

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()
);

Readme

Keywords

none

Package Sidebar

Install

npm i jexl-to-string

Weekly Downloads

7

Version

2.3.4

License

MIT

Unpacked Size

18.1 kB

Total Files

12

Last publish

Collaborators

  • chetbox