chromegg / cel-js Goto Github PK
View Code? Open in Web Editor NEWcel-js is a Common Expression Language (CEL) evaluator for JavaScript
License: MIT License
cel-js is a Common Expression Language (CEL) evaluator for JavaScript
License: MIT License
https://github.com/google/cel-spec/blob/master/doc/langdef.md
COMMENT ::= '//' ~NEWLINE* NEWLINE
In CEL the uint type is written in the form of 1u
, this is not currently supported by cel-js.
The package should implement a gRPC server that conforms with the documentation on, so the conformance could be tested independently.
https://github.com/google/cel-spec/blob/master/doc/langdef.md
The following identifiers are reserved to allow easier embedding of CEL into a host language.
as break const continue else for function if import let loop package
namespace return var void while
This is my subject list of features that are bare minimum for v0.1.0
- MVP.
2 || 4
)foo.bar
)-123
, !true
)Hi, I am trying to run tsc to typecheck but I'm met with an error.
> tsc && tsc-alias
../node_modules/.pnpm/[email protected]/node_modules/cel-js/dist/errors/CelTypeError.d.ts:1:28 - error TS2307: Cannot find module '../helper.js' or its corresponding type declarations.
1 import { Operations } from '../helper.js';
it('should create a nested map', () => {
const expr = '{"a": 1, "b": {"c": 2}}'
// it explodes with error `invalid_argument: [object Object]`๐
const result = evaluate(expr)
expect(result).toStrictEqual({ a: 1, b: { c: 2 } })
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.