An parser generating evaluating functions for Accumulo security expressions.
import { parse } from 'ts-accumulo-security';
const expression = parse('(A && B) | C');
const result = expression.evaluate({
labels: new Set(['A', 'B']
)});
Parses the given expression and returns an Evalfn
object.
Throws an error if the expression is invalid.
An object containing a field labels
of type Set<string>
with the authorized labels.
A function that evaluates the expression against the given context.
bun install
bun test
bun build
npm publish
MIT (c) 2023 - Lars Wilhelmsen. See LICENSE for details.