Skip to content

Repository files navigation

Basho Eval

This is the parser and evaluator used in the basho project. For documentation see https://www.github.com/jeswin/basho.

It exports the PipelineError class and the evaluate() function.

Usage looks like this:

it(`Passes an object to a shell command`,async()=>{constoutput=awaitevaluate(["{ name: 'kai' }","-e","echo ${x.name}"]);(awaittoResult(output)).should.deepEqual({mustPrint: true,result: ["kai"]});});

See the tests for more examples.

About

The parser and evaluator for basho

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages