wasm

command
v0.0.0-...-fb199e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL