Socket
Book a DemoInstallSign in
Socket

@bufbuild/cel-spec

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bufbuild/cel-spec

CEL definitions and test data

0.3.0
latest
Source
npmnpm
Version published
Weekly downloads
26K
14.64%
Maintainers
7
Weekly downloads
 
Created
Source

@bufbuild/cel-spec

This package provides CEL definitions and test data from https://github.com/google/cel-spec v0.24.0.

CEL uses Protocol Buffer definitions for parsed expressions. For example, the message cel.expr.ParsedExpr provides an abstract representation of a parsed CEL expression. The message types and schemas can be imported from @bufbuild/cel-spec:

import { ParsedExpr } from "@bufbuild/cel-spec/cel/expr/syntax_pb.js";

CEL's conformance test suite also uses Protocol Buffers to define test cases. All messages from the cel.expr.conformance namespace are exported from this package as well, and the function getSimpleTestFiles provides conformance test data:

import { getSimpleTestFiles } from "@bufbuild/cel-spec/testdata/simple.js";
import { getTestRegistry } from "@bufbuild/cel-spec/testdata/registry.js";
import type { SimpleTestFile } from "@bufbuild/cel-spec/cel/expr/conformance/test/simple_pb.js";

const files: SimpleTestFile[] = getSimpleTestFiles();

In addition to CEL's conformance test data, this package also exports parser tests extracted from github.com/google/cel-go:

import { parserTests } from "@bufbuild/cel-spec/testdata/parser.js";
import { parserTests as parserComprehensionsTests } from "@bufbuild/cel-spec/testdata/parser-comprehensions.js";

Keywords

javascript

FAQs

Package last updated on 28 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.