Documentation
¶
Rendered for js/wasm
Overview ¶
The wasm package provides a WebAssembly module that can be used to format CEL (Common Expression Language) programs in a canonical format. It exposes two functions to JavaScript -- celFmt and celModuleBuildMetadata.
celFmt ¶
The celFmt function formats a given CEL program to canonical format. It requires one argument, which must be a string. The function returns an object with either a 'formatted' attribute containing the formatted CEL program or an 'error' attribute containing the error message.
celModuleBuildMetadata ¶
The celModuleBuildMetadata function returns an object containing build and dependency metadata. This is for diagnostic purposes.
Click to show internal directories.
Click to hide internal directories.